[FEATURE] Code tab in Claude desktop app should support independent Bedrock authentication (like VS Code extension)
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
The Claude desktop app's Code tab does not support Amazon Bedrock authentication.
Even when ~/.claude/settings.json correctly sets CLAUDE_CODE_USE_BEDROCK=1,
the Code tab is overridden by the OAuth token cached in%APPDATA%\Roaming\Claude\config.json, causing all Code tab requests to targethttps://api.anthropic.com instead of Bedrock.
Environment
- Desktop app: v1.1.5368.0 (MSIX)
- Code tab binary:
%APPDATA%\Roaming\Claude\claude-code\2.1.63\claude.exe - Platform: Windows 11 Enterprise
- Auth target: Amazon Bedrock (us-west-2, profile: ai-bedrock)
Current Behavior
The Code tab reads ~/.claude/settings.json for model and env settings, but
also reads config.json for the OAuth token cache. When an OAuth token is
present, it takes precedence over CLAUDE_CODE_USE_BEDROCK=1, and the Code tab
sends:
- Auth: Bearer <oauth_token> -> https://api.anthropic.com
- Model:
claude-sonnet-4-6(short-form, invalid for Bedrock)
This results in:
API Error (claude-sonnet-4-6): 400 The provided model identifier is invalid.
Expected Behavior
The Code tab should support a Bedrock authentication path equivalent to what the
VS Code extension provides via claudeCode.environmentVariables in VS Code'ssettings.json. Specifically:
- When
CLAUDE_CODE_USE_BEDROCK=1is set (in~/.claude/settings.jsonenv block
or equivalent), the Code tab should bypass the OAuth token and use Bedrock
credentials (AWS profile/region).
- The Code tab binary should respect the same env configuration that governs the
CLI -- the OAuth token should not silently override it.
Workaround (Current)
The only current workaround is to manually remove the oauth:tokenCache key from%APPDATA%\Roaming\Claude\config.json. This forces the Code tab to fall back to
Bedrock but causes the Chat tab to lose its session and prompt for re-login.
This is not a sustainable solution for enterprise environments where Bedrock is the
required authentication method.
Requested Feature
- Honor
CLAUDE_CODE_USE_BEDROCK=1in the Code tab regardless of OAuth token
presence in config.json.
- OR: Add a
codeTab.environmentVariablesconfig inclaude_desktop_config.json
(analogous to VS Code's claudeCode.environmentVariables) so enterprise users
can configure Bedrock independently for the Code tab without affecting the Chat tab.
Impact
Affects enterprise/corporate users required to use Amazon Bedrock -- cannot use
the Code tab at all if an OAuth token exists from a prior personal login.
Proposed Solution
Honor CLAUDE_CODE_USE_BEDROCK=1 in the Code tab regardless of OAuth token
presence in config.json.
OR: Add a codeTab.environmentVariables config in claude_desktop_config.json
(analogous to VS Code's claudeCode.environmentVariables) so enterprise users
can configure Bedrock independently for the Code tab without affecting the Chat tab.
Alternative Solutions
_No response_
Priority
High - Significant impact on productivity
Feature Category
Configuration and settings
Use Case Example
_No response_
Additional Context
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗