Answer: To disable prompt caching, set one of the environment variables to `1`, such as `DISABLE_PROMPT_CACHING` to disable for all models, or the model-specific variables like `DISABLE_PROMPT_CACHING_HAIKU`, `DISABLE_PROMPT_CACHING_SONNET`, `DISABLE_PROMPT_CACHING_OPUS`, or `DISABLE_PROMPT_CACHING_FABLE`. Status: Check failed Entry: tool/claude-code/settings/disable-prompt-caching Revision: 1 Digest: sha256:3e8911aaf58c91de (changes whenever the content changes) Timeline: Created: 2026-11-13T02:28:05Z Last changed: 2026-11-13T02:28:05Z Last verified: 2026-11-13T02:28:05Z Last attempt: 2026-11-20T12:24:16Z (failed) Next check: 2026-11-20T13:24:16Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Disable all models variable | DISABLE_PROMPT_CACHING | [1] | 2026-11-13 Value to set | 1 | [1] | 2026-11-13 Haiku variable | DISABLE_PROMPT_CACHING_HAIKU | [1] | 2026-11-13 Sonnet variable | DISABLE_PROMPT_CACHING_SONNET | [1] | 2026-11-13 Opus variable | DISABLE_PROMPT_CACHING_OPUS | [1] | 2026-11-13 Fable variable | DISABLE_PROMPT_CACHING_FABLE | [1] | 2026-11-13 Minimum version for main conversation coverage | v2.1.283 | [1] | 2026-11-13 Sources: [1] Anthropic. "How Claude Code uses prompt caching". https://code.claude.com/docs/en/prompt-caching.md Role: primary. Accessed: 2026-11-13T02:28:05Z Quote: "| `DISABLE_PROMPT_CACHING` | Disable for all models |" (Supports: Disable all models variable) Quote: "set one of these environment variables to `1`" (Supports: Value to set) Quote: "| `DISABLE_PROMPT_CACHING_HAIKU` | Disable for the default Haiku model |" (Supports: Haiku variable) Quote: "| `DISABLE_PROMPT_CACHING_SONNET` | Disable for the default Sonnet model |" (Supports: Sonnet variable) Quote: "| `DISABLE_PROMPT_CACHING_OPUS` | Disable for the default Opus model |" (Supports: Opus variable) Quote: "| `DISABLE_PROMPT_CACHING_FABLE` | Disable for Fable only |" (Supports: Fable variable) Quote: "Covering the main conversation requires Claude Code v2.1.283 or later." (Supports: Minimum version for main conversation coverage) Published: 2026-11-13T02:21:45Z Snapshot SHA-256: 8bf3e27bcc4f70e5c5e783bf18b697eee375c34e9d29b0c6e39bbfddf81e80a4 (captured 2026-11-13T02:28:05Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-13T02:28:05Z. No independent second source is configured for this entry Last successful check: 2026-11-13T02:28:05Z Last attempt: 2026-11-20T12:24:16Z (failed) Notes and limitations: Extracted automatically from a single official source (section "Disable prompt caching"). Related: https://latestn.com/tool/claude-code/settings/disable-prompt-suggestions How do I turn prompt suggestions off in Claude Code? https://latestn.com/tool/claude-code/settings/disable-remove-hooks How do I disable or remove hooks in Claude Code? https://latestn.com/tool/claude-code/settings/disable-scheduled-tasks How do I disable session-scoped scheduled tasks in Claude Code? https://latestn.com/tool/claude-code/settings/disable-cross-session-messaging How do I turn off cross-session messaging in Claude Code? https://latestn.com/tool/claude-code/settings/disable-plugin-suggestions How do I turn off plugin suggestions in Claude Code cloud sessions? https://latestn.com/tool/claude-code/settings/disable-pre-release-capabilities How do I disable pre-release capabilities in Claude Code when using a gateway? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:05:27Z | check-failed | Extraction did not pass verification: answer contains `, such as `, which does not appear in the source | — 2026-11-13T02:28:05Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/settings/disable-prompt-caching/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/settings/disable-prompt-caching POST: https://latestn.com/dispute/tool/claude-code/settings/disable-prompt-caching with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/settings/disable-prompt-caching?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I disable prompt caching in Claude Code? Revision 1, last verified 2026-11-13T02:28:05Z. https://latestn.com/tool/claude-code/settings/disable-prompt-caching (accessed 2026-11-21T10:00:16Z). @misc{LatestN_tool_claude_code_settings_disable_prompt_caching_r1, title = {How do I disable prompt caching in Claude Code?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/settings/disable-prompt-caching}}, note = {Revision 1; digest sha256:3e8911aaf58c91de; last verified 2026-11-13T02:28:05Z; accessed 2026-11-21T10:00:16Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/settings/disable-prompt-caching