[BUG] Error: Claude Code process exited with code 1.Use bedrock API
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
I am using the API provided by AWS Bedrock and encountering the following error when using the Claude Code plugin in VS Code: Error: Claude Code process exited with code 1. I have tried rolling back the version, but the issue remains unresolved.
What Should Happen?
In normal circumstances, this error should not occur.
Error Messages/Logs
Error: Claude Code process exited with code 1
Steps to Reproduce
Claude code version: 2.0.31
VS code version: 1.105.1
setting.json:
{"claudeCode.environmentVariables": [
{ "name": "CLAUDE_CODE_USE_BEDROCK", "value": "1" }, // Switch to Bedrock
{ "name": "AWS_REGION", "value": "us-east-1" }, // Replace with the region where you have Claude enabled//
{ "name": "AWS_PROFILE", "value": "default" }, // If using aws credentials, you can remove the comment and replace with your profile
{ "name": "AWS_BEARER_TOKEN_BEDROCK", "value": "***************" }, // Change Value to your API KEY// (Optional) Explicitly specify the Bedrock Inference Profile / model to use
{ "name": "ANTHROPIC_MODEL", "value": "us.anthropic.claude-sonnet-4-20250514-v1:0" },// (Optional) Maximum output token limit to prevent long responses from being truncated
{ "name": "CLAUDE_CODE_MAX_OUTPUT_TOKENS", "value": "4096" }],
}
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.31
Platform
AWS Bedrock
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_
This issue has 10 comments on GitHub. Read the full discussion on GitHub ↗