Search the documentation
6 pages for subagentpromptcachettl.
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
…CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL` environment variable, or the [`subagentPromptCacheTtl`](/docs/en/settings-reference#subagentpromptcachettl) setting Setting `promptCacheTtl` to `1h` keeps the 1…
Orchestrate teams of Claude Code sessions
Claude Code CLI · in the page
agent-teams
…lt, including 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 highe…
Claude Code changelog
Claude Code CLI · in the page
changelog
…d 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 main conversation while…
How Claude Code uses prompt caching
Claude Code CLI · in the page
prompt-caching
…environment variable](/docs/en/env-vars) * **Everything else**: the [`subagentPromptCacheTtl`](/docs/en/settings-reference#subagentpromptcachettl) setting, or the `CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TT…
Claude Code settings reference
Claude Code CLI · in the page
settings-reference
…| Plugins and skills | Managed | | [`subagentPromptCacheTtl`](#subagentpromptcachettl) | Choose the [prompt cache lifetime]…
Orchestrate subagents at scale with dynamic workflows
Claude Code CLI · in the page
workflows
…lt, including 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 highe…