Preflight Checklist
What's Wrong?
I am using claude code through Vertex AI. I ran into this problem: #11678 (comment) and found the solution to my issue by setting the environment variable CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS to 1 and everything works as expected. (specifically, in my command line, I run export CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1)
When I add the following env property in my settings.json file:
{
"env": {
"CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1"
}
}
this has no effect unless I set the value in the command line environment. I have specifically tested this by unsetting the environment variable and opened new terminal windows.
What Should Happen?
When settings the value in the settings.json file, I would expect it to have the same effect as changing in the command line environment.
Error Messages/Logs
API Error: 400 Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'Unexpected value(s) `tool-examples-2025-10-29` for the `anthropic-beta` header. Please
consult our documentation at docs.anthropic.com or try again without the header.'}, 'request_id': '[...]'}
Steps to Reproduce
- Configure claude code to work with Vertex AI (not setting the
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS flag).
- Fire up claude code and try any message: "Hello!"
- Expect to get an error
API Error: 400 Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error'
- Modify the
settings.json by adding the following line to the env section: "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1"
- Open
claude in the cli and try "Hello!" again.
Expected: Error will be resolved as documented.
Actual: 400 error code response persists.
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.0.36
Claude Code Version
2.0.46
Platform
Google Vertex AI
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
This is related to this: #11678
Preflight Checklist
What's Wrong?
I am using claude code through Vertex AI. I ran into this problem: #11678 (comment) and found the solution to my issue by setting the environment variable
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETASto 1 and everything works as expected. (specifically, in my command line, I runexport CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1)When I add the following env property in my
settings.jsonfile:this has no effect unless I set the value in the command line environment. I have specifically tested this by unsetting the environment variable and opened new terminal windows.
What Should Happen?
When settings the value in the settings.json file, I would expect it to have the same effect as changing in the command line environment.
Error Messages/Logs
API Error: 400 Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'Unexpected value(s) `tool-examples-2025-10-29` for the `anthropic-beta` header. Please consult our documentation at docs.anthropic.com or try again without the header.'}, 'request_id': '[...]'}Steps to Reproduce
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETASflag).API Error: 400 Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error'settings.jsonby adding the following line to theenvsection:"CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1"claudein the cli and try "Hello!" again.Expected: Error will be resolved as documented.
Actual: 400 error code response persists.
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.0.36
Claude Code Version
2.0.46
Platform
Google Vertex AI
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
This is related to this: #11678