{"name":"DISABLE_PROMPT_CACHING","slug":"disable-prompt-caching","family":"env","title":"Environment variables","noun":"environment variable","description":"Parallel workflow agents stagger their first call to share cache; tune with an env var.","description_source":"entry","described_by":{"version":"2.1.229","anchor":"sibling-workflow-agents-stagger-their-first-request-to-warm-"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":149,"mined_builds":149,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.238","anchor":"model-and-effort-switch-warning-now-checks-whether-the-cache","heading":"Model and effort switch warning now checks whether the cache is actually warm","line":"The warm-cache warning when switching model or effort only appears when a warm cache actually exists.","released_at":"2026-08-20 18:01:54","reason":"found in this entry's text"},{"version":"2.1.229","anchor":"sibling-workflow-agents-stagger-their-first-request-to-warm-","heading":"Sibling workflow agents stagger their first request to warm the cache","line":"Parallel workflow agents stagger their first call to share cache; tune with an env var.","released_at":"2026-08-12 19:28:48","reason":"named in this entry, found in this entry's text"},{"version":"1.0.113","anchor":"per-model-prompt-caching-control","heading":"Per-Model Prompt Caching Control","line":null,"released_at":"2025-09-13 02:24:02","reason":"found in this entry's text"},{"version":"0.2.80","anchor":"improvements","heading":"Improvements","line":null,"released_at":"2025-04-24 16:07:52","reason":"found in this entry's text"},{"version":"0.2.56","anchor":"new-features","heading":"New Features","line":null,"released_at":"2025-03-27 22:25:37","reason":"found in this entry's text"}],"entries_total":5,"docs":[{"source":"claude-code","path":"amazon-bedrock","title":"Claude Code on Amazon Bedrock","documented":false},{"source":"claude-code","path":"changelog","title":"Claude Code changelog","documented":false},{"source":"claude-code","path":"google-vertex-ai","title":"Claude Code on Google Cloud's Agent Platform","documented":false},{"source":"claude-code","path":"model-config","title":"Model configuration","documented":false},{"source":"claude-code","path":"plugins\/mods\/api","title":"Use the mods API","documented":false},{"source":"claude-code","path":"prompt-caching","title":"How Claude Code uses prompt caching","documented":false},{"source":"claude-code","path":"server-managed-settings","title":"Configure server-managed settings","documented":false}],"docs_total":7,"gates":[],"related":[{"name":"DISABLE_PROMPT_CACHING_FABLE","slug":"disable-prompt-caching-fable","description":"When true, Claude Code's prompt-caching check returns false for any model whose ID contains `claude-fable-` or that matches `ANTHROPIC_DEFAULT_FABLE_MODEL`. That check decides whether a request uses prompt caching when the caller does not set `enablePromptCaching` itself, and also gates some other cache-dependent behaviour."},{"name":"DISABLE_PROMPT_CACHING_HAIKU","slug":"disable-prompt-caching-haiku","description":"`DISABLE_PROMPT_CACHING_HAIKU` now also turns off caching for any request whose model resolves to the configured Haiku model"},{"name":"DISABLE_PROMPT_CACHING_MYTHOS","slug":"disable-prompt-caching-mythos","description":"When true, Claude Code's prompt-caching check returns false for any model whose ID contains `claude-mythos-`. That check decides whether a request uses prompt caching when the caller does not set `enablePromptCaching` itself, and also gates some other cache-dependent behaviour."},{"name":"DISABLE_PROMPT_CACHING_OPUS","slug":"disable-prompt-caching-opus","description":"When true, Claude Code's prompt-caching check returns false for the resolved Opus model (`ANTHROPIC_DEFAULT_OPUS_MODEL` when set, otherwise the default Opus model). That check decides whether a request uses prompt caching when the caller does not set `enablePromptCaching` itself, and also gates some other cache-dependent behaviour."},{"name":"DISABLE_PROMPT_CACHING_SONNET","slug":"disable-prompt-caching-sonnet","description":"When true (`1`, `true`, `yes` or `on`), prompt caching is off by default for requests whose model equals the default Sonnet model (`ANTHROPIC_DEFAULT_SONNET_MODEL` when set, otherwise the built-in Sonnet default). While it is set, a startup warning reads `Prompt caching off (...), requests will be slower and cost more`."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/disable-prompt-caching","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}