Search the documentation
7 pages for enable_prompt_caching_1h.
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
…full input price. To request a 1-hour TTL on cache writes, set the [`ENABLE_PROMPT_CACHING_1H`](/docs/en/env-vars) environment variable. You can export it in your shell or container environment, or p…
Claude Code on Amazon Bedrock
Claude Code CLI · in the page
amazon-bedrock
…uest 1-hour prompt cache TTL instead of the 5-minute default # export ENABLE_PROMPT_CACHING_1H=1 ``` The 1-hour cache TTL is billed at a higher rate than the 5-minute default. See [cache lifetime](/d…
Claude Code on Claude Platform on AWS
Claude Code CLI · in the page
claude-platform-on-aws
…. To request a 1-hour cache TTL instead of the 5-minute default, set `ENABLE_PROMPT_CACHING_1H=1`. The API bills 1-hour cache writes at a higher rate. See [prompt caching pricing](https://platform.cla…
Claude Code on Google Cloud's Agent Platform
Claude Code CLI · in the page
google-vertex-ai
…. To request a 1-hour cache TTL instead of the 5-minute default, set `ENABLE_PROMPT_CACHING_1H=1`; cache writes with a 1-hour TTL are billed at a higher rate. To set different TTLs for your main conve…
Claude Code on Microsoft Foundry
Claude Code CLI · in the page
microsoft-foundry
…1-hour TTL are billed at a higher rate: ```bash theme={null} export ENABLE_PROMPT_CACHING_1H=1 ``` To set different TTLs for your main conversation and for the requests Claude Code makes outside it…
How Claude Code uses prompt caching
Claude Code CLI · in the page
prompt-caching
…kets 2. The bucket's environment variable 3. The bucket's setting 4. `ENABLE_PROMPT_CACHING_1H=1`, which requests one hour for both buckets 5. The [default for the request's bucket](#which-ttl-each-re…
Claude Code settings reference
Claude Code CLI · in the page
settings-reference
…CODE_PROMPT_CACHE_TTL`](/docs/en/env-vars), then this key, and last [`ENABLE_PROMPT_CACHING_1H`](/docs/en/env-vars) This example keeps the main conversation on the one-hour lifetime and leaves subage…