[BUG] Bedrock documentation does not list the ability to 'DISABLE_PROMPT_CACHING'
Resolved 💬 2 comments Opened Jul 1, 2025 by Ipswitch Closed Jul 11, 2025
Environment
- Platform (select one):
- [ ] Anthropic API
- [x] AWS Bedrock
- [ ] Google Vertex AI
- [] Other: <!-- specify -->
- Claude CLI version: v1.0.35
- Operating System: Ubuntu
- Terminal: Claude Code
Bug Description
The Claude Code Environment Variables documentation does not list the ability to 'DISABLE_PROMPT_CACHING'.
Steps to Reproduce
- Configure the claude app to use aws bedrock
...
"CLAUDE_CODE_USE_BEDROCK":"1",
"ANTHROPIC_MODEL": "anthropic.claude-3-5-sonnet-20240620-v1:0",
- Provide credentials to an AWS Gov Cloud region (caching is unavailable in these regions)
- Prompt claude to 'say hi'
Expected Behavior
The app says hi.
Actual Behavior
The claude code cli attempts to use caching and returns:
API Error: 400 You invoked an unsupported model or your request did not allow prompt caching. See the documentation for more information.
Additional Context
I'd searched issues and found that 1293 has DISABLE_PROMPT_CACHING in the command. When I searched the documentation the DISABLE_PROMPT_CACHING was only present in a Google Vertex AI integration page. Adding
"DISABLE_PROMPT_CACHING" : "1" to the settings.json resolved the problem.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗