Save keeps failing and asks for the API endpoint - cc-switch
Quick fix
Upgrade to cc-switch v3.11.0 or later. It natively supports AWS Bedrock and no longer requires an API endpoint or API Key.
Symptom
Section titled “Symptom”保存一直提示报错,让我填写 api 端点。Saving keeps showing an error and asks me to fill in the API endpoint.
In early cc-switch versions, adding a provider through custom configuration forced validation of required fields such as API endpoint and API Key. AWS Bedrock mode usually relies on AWS CLI credentials or environment variables such as CLAUDE_CODE_USE_BEDROCK and does not need a traditional API endpoint. This caused Bedrock configuration to fail save validation. The issue was fixed in v3.11.0 by adding native AWS Bedrock provider support.
Upgrade cc-switch to v3.11.0 or later. v3.12.0 also adds Bedrock Request Optimizer.
In cc-switch, select the native AWS Bedrock Provider. This mode supports AKSK authentication and does not require an API endpoint.
If configuring manually, ensure the Claude Code configuration includes the environment variables required for Bedrock.
// settings.json{"env": {"CLAUDE_CODE_USE_BEDROCK": 1,"AWS_REGION": "us-east-1"}}
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 1 real issues
- If Bedrock mode is detected, can other required fields be skipped?
- Yes. In v3.11.0 and later, cc-switch natively supports the AWS Bedrock provider with AKSK authentication and no longer requires an API endpoint or API Key.
- I entered a random endpoint, and now it says a custom access key is required. What should I do?
- Old versions forced validation of all required fields. Upgrade to v3.11.0 or later and use the native AWS Bedrock provider configuration to skip these checks.
- We use Bedrock Converse API behind Kong for compliance. Can custom provider support be added for Bedrock API?
- Native Bedrock support is already available. For complex cases with custom proxies or custom authentication field names, the developers welcome PRs to add custom Bedrock API format support.
Related problems
Section titled “Related problems”This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.