Skip to content

No longer possible to select the Anthropic model used by Claude Code #127

@ashlineldridge

Description

@ashlineldridge

It appears there may have been changes in claude-code-acp that are preventing the Anthropic model being selected either using either the ANTHROPIC_MODEL environment variable or via ~/.claude/settings.json. I am able to control the default model used by Claude using either of these approaches when invoking claude directly. However, when invoking claude via agent-shell and claude-code-acp these methods of setting the model are no longer respected and the default model (currently Sonnet 4.5) is always selected.

Some points of note:

  • Please support model selection. I need sonnet[1m] zed-industries/claude-code-acp#30 suggests that model selection is supported in claude-code-acp and Zed
  • I am using Claude models via Vertex (i.e. CLAUDE_CODE_USE_VERTEX=1) though I suspect this regression would still be present when using Anthropic API's directly
  • If I override CLAUDE_CODE_EXECUTABLE and dump the environment I can see that ANTHROPIC_MODEL and other vars are correctly set but not being respected by claude when invoked via ACP
  • I'm raising this issue here rather than at claude-code-acp as the issue linked above suggests this is working in Zed which makes me think changes chould be required in agent-shell so figured I check here first
  • If changes are required to agent-shell I'm happy to raise a PR and if changes are required to agent-shell-acp I can raise an issue there

Versions:

Checklist

  • I've read the README's Issues section.
  • For requesting new agent support, I'm including a link to the ACP-capable agent or related ACP package.
  • For issues, I'm including ACP traffic (as per README).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions