Source Intelligence
Sweep 28 Aug 2026 ยท 00:00Z Build v2.1.250 478 read Stable v2.1.236 Latest v2.1.250 Next v2.1.250 Feeds RSS JSON llms.txt

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

Search the documentation

3 pages for claude_code_prompt_cache_ttl.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Track cost and usage Claude Code CLI · in the page agent-sdk/cost-tracking …recedence over `ENABLE_PROMPT_CACHING_1H`: * Main conversation: the `CLAUDE_CODE_PROMPT_CACHE_TTL` [environment variable](/docs/en/env-vars), or the [`promptCacheTtl`](/docs/en/settings-reference#pro… How Claude Code uses prompt caching Claude Code CLI · in the page prompt-caching …cheTtl`](/docs/en/settings-reference#promptcachettl) setting, or the `CLAUDE_CODE_PROMPT_CACHE_TTL` [environment variable](/docs/en/env-vars) * **Everything else**: the [`subagentPromptCacheTtl`](/doc… Claude Code settings reference Claude Code CLI · in the page settings-reference …5M`](/docs/en/env-vars) takes precedence over everything else, then [`CLAUDE_CODE_PROMPT_CACHE_TTL`](/docs/en/env-vars), then this key, and last [`ENABLE_PROMPT_CACHING_1H`](/docs/en/env-vars) This e…