Search the documentation
6 pages for promptcachettl.
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
…PROMPT_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…
Orchestrate teams of Claude Code sessions
Claude Code CLI · in the page
agent-teams
…uding 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.…
Claude Code changelog
Claude Code CLI · in the page
changelog
…Bedrock ids), appended to or replacing the built-in lineup * Added `promptCacheTtl` and `subagentPromptCacheTtl` settings so API-key and cloud-provider users can keep a 1-hour prompt cache on the ma…
How Claude Code uses prompt caching
Claude Code CLI · in the page
prompt-caching
…Claude Code ignores any other value. * **Main conversation**: the [`promptCacheTtl`](/docs/en/settings-reference#promptcachettl) setting, or the `CLAUDE_CODE_PROMPT_CACHE_TTL` [environment variable]…
Claude Code settings reference
Claude Code CLI · in the page
settings-reference
…| Agents, sessions, and worktrees | User or managed | | [`promptCacheTtl`](#promptcachettl) | Choose the [prompt cache lifetime]…
Orchestrate subagents at scale with dynamic workflows
Claude Code CLI · in the page
workflows
…uding 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.…