Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

8 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 …`1h` there while your Claude subscription is using usage credits 5. `ENABLE_PROMPT_CACHING_1H=1`, which requests one hour for both buckets 6. The [default for the request's bucket](#which-ttl-each-re… All settings 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… Week 16 · April 13–17, 2026 Claude Code CLI · in the page whats-new/2026-w16 …compaction by exiting with code 2 or returning `{"decision":"block"}``ENABLE_PROMPT_CACHING_1H` opts API key, Amazon Bedrock, Google Cloud's Agent Platform, and Microsoft Foundry users into 1-hour pro…
Feedback