Skip to content

Claude Code using Vertex fails on model selectionΒ #5751

@konstantinosbotonakis

Description

@konstantinosbotonakis

App Version

3.23.12

API Provider

Anthropic

Model Used

All models

Roo Code Task Links (Optional)

No response

πŸ” Steps to Reproduce

Login to claude using Google Vertex AI
Set env vars:

export CLAUDE_CODE_USE_VERTEX=1

export CLOUD_ML_REGION={your region}

export ANTHROPIC_VERTEX_PROJECT_ID={your project id}

Choose any model and then send any prompt.

Reply:

{"error":{"code":404,"message":"Publisher Model projects/{project_id}/locations/{region}/publishers/anthropic/models/claude-sonnet-4-20250514 not found.","status":"NOT_FOUND"}}

Setting model via ANTHROPIC_MODEL const.

export ANTHROPIC_MODEL='claude-sonnet-4@20250514'

Still same error.

πŸ’₯ Outcome Summary

Expected to select the model requested and not throw the error.

Suggested solution:
Have the model selector accepting custom values.

πŸ“„ Relevant Logs or Errors (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions