Custom Bedrock models not discoverable in /model command list

Open 💬 5 comments Opened Oct 23, 2025 by johnyzed

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 haiku successfully 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

  1. Define custom models via environment variables in ~/.claude/settings.json
  2. Restart Claude Code
  3. Run /model to view the model list
  4. Notice that custom models are not displayed in the list
  5. Run /model sonnet - successfully switches to the custom model
  6. 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.

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗