Search the documentation
6 pages for cachettl.
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
…_CACHE_TTL` [environment variable](/docs/en/env-vars), or the [`promptCacheTtl`](/docs/en/settings-reference#promptcachettl) setting * Everything else: the `CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL` envi…
Orchestrate teams of Claude Code sessions
Claude Code CLI · in the page
agent-teams
…on a Claude subscription. To keep it for an hour, set [`subagentPromptCacheTtl`](/docs/en/settings-reference#subagentpromptcachettl) to `1h`. The API bills 1-hour cache writes at a higher rate. ## Us…
Claude Code changelog
Claude Code CLI · in the page
changelog
…gnores user, project and local settings files * Added `experimental.cacheTtl` (`"5m"` or `"1h"`) to agent frontmatter: a per-agent prompt cache TTL used when no subagent TTL setting is configured…
How Claude Code uses prompt caching
Claude Code CLI · in the page
prompt-caching
…e Code ignores any other value. * **Main conversation**: the [`promptCacheTtl`](/docs/en/settings-reference#promptcachettl) setting, or the `CLAUDE_CODE_PROMPT_CACHE_TTL` [environment variable](/docs…
Claude Code settings reference
Claude Code CLI · in the page
settings-reference
…nts, sessions, and worktrees | User or managed | | [`promptCacheTtl`](#promptcachettl) | Choose the [prompt cache lifetime](/docs…
Orchestrate subagents at scale with dynamic workflows
Claude Code CLI · in the page
workflows
…on a Claude subscription. To keep it for an hour, set [`subagentPromptCacheTtl`](/docs/en/settings-reference#subagentpromptcachettl) to `1h`. The API bills 1-hour cache writes at a higher rate. When…