ENABLE_PROMPT_CACHING_1H
Updated by Alex Sorokoletov
ENABLE_PROMPT_CACHING_1H is a Claude Code environment variable. Its release history is not tracked here. It is listed in the official reference.
| Status | Present in v2.1.294 |
|---|---|
| Category | Feature toggles |
| Official docs | Listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export ENABLE_PROMPT_CACHING_1H=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"ENABLE_PROMPT_CACHING_1H": "<value>"
}
}Release notes that mention it
- Claude Code v2.1.114 — Native Binary Launcher, /fewer-permission-prompts, and 20 New Environment Variables
- Claude Code v2.1.108 — 4 New Environment Variables: REPL Variants, Skill Discovery, and the Limits Reckoning
- Claude Code Version Tracker: Undocumented Env Vars, Feature Gates & Models
- claude-code-env-vars-v2-1-245
Related variables
CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION: Enables a prompt suggestion feature in the Claude Code UI.DISABLE_PROMPT_CACHING: Prompt caching globally.FORCE_PROMPT_CACHING_5MCLAUDE_CODE_DISABLE_CFC_PROMPTCLAUDE_CODE_DISABLE_SUBSTITUTION_RM_PROMPTCLAUDE_CODE_ENABLE_AWAY_SUMMARY: Enables generation of a summary when the user returns after being away from an active session.CLAUDE_CODE_ENABLE_CFC: Enable Claude for Chrome browser automation.CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING: Enable file checkpointing in SDK mode.
Frequently asked questions
Which Claude Code version has ENABLE_PROMPT_CACHING_1H?
Its release history is not tracked here.
How do I set ENABLE_PROMPT_CACHING_1H?
Export it before starting Claude Code (export ENABLE_PROMPT_CACHING_1H=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.