Custom Bedrock models not discoverable in /model command list
Description
Custom Bedrock inference profile models defined in ~/.claude/settings.json environment variables work when explicitly invoked (e.g., /model sonnet), but they do not appear in the /model command's interactive model list.
Current Behavior
- Models are configured globally via environment variables in
~/.claude/settings.json:
``json``
{
"env": {
"ANTHROPIC_MODEL": "arn:aws:bedrock:us-west-2:...:application-inference-profile/rrjhxbsk14o0",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "arn:aws:bedrock:us-west-2:...:application-inference-profile/rrjhxbsk14o0",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "arn:aws:bedrock:us-west-2:...:application-inference-profile/5ikipd8fzffx",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "arn:aws:bedrock:us-west-2:...:application-inference-profile/4b25vfl56msg"
}
}
- Running
/model sonnet,/model opus, and/model haikusuccessfully switches to these models - However, running
/model(without arguments) to list available models does not show these custom models
Expected Behavior
The /model command should discover and display custom models defined through environment variables or the settings file, allowing users to see all available models including their custom Bedrock inference profiles.
Steps to Reproduce
- Define custom models via environment variables in
~/.claude/settings.json - Restart Claude Code
- Run
/modelto view the model list - Notice that custom models are not displayed in the list
- Run
/model sonnet- successfully switches to the custom model - Run
/model opus- successfully switches to the custom model
Environment
- Claude Code version: 2.0.22
- Platform: macOS
- Bedrock inference profiles configured with custom ARNs
Desired Outcome
Custom models should be discoverable in the /model command list so users can see all available options when listing models, not just when they already know the alias to use.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗