Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.
This repository was archived by the owner on May 15, 2026. It is now read-only.

[BUG] How to use Anthropic after Claude code move #10939

Description

@yunhailuo

Problem (one or two sentences)

I've been using Anthropic provider and something seem to change recently and it stopped working. I suspect this might be related to Claude code removal so the title. I've been using this API with Claude code using ANTHROPIC_BASE_URL and ANTHROPIC_CUSTOM_HEADERS and it's still working fine.

Context (who is affected and when)

I've been seeing this error since 1/23/2026 when using Anthropic provider and chat with message like "hello"

Reproduction steps

...
        "apiConfigs": {
            "default": {
                "rateLimitSeconds": 0,
                "enableReasoningEffort": true,
                "apiModelId": "claude-sonnet-4-5",
                "apiKey": "x-portkey-metadata: {<...>,\"tool\":\"claude\"}",
                "anthropicBaseUrl": "<my gateway url>",
                "anthropicUseAuthToken": true,
                "apiProvider": "anthropic",
                "id": "isxmazmi7g"
            },
...

Then chat in Roo like "hello"

Expected result

Get response like "Hello! How can I help you today?"

Actual result

Provider Error · 403 Unauthorized. Your API key is valid, but the provider refused to complete this request.

Variations tried (optional)

When I try to test curl in terminal, it seems working fine:

❯ curl -H 'content-type: application/json' -H 'x-portkey-metadata: {<...>,"tool":"claude"}' 'http://localhost:8080/v1/messages' -d '{"model":"claude-sonnet-4-5-20250929","messages":[{"role":"user","content":[{"type":"text","text":"hello"}]}],"max_tokens":1024}'
{"id":"portkey-<uuid>","model":"us.anthropic.claude-sonnet-4-5-20250929-v1:0","type":"message","role":"assistant","content":[{"type":"text","text":"Hello! How can I help you today?"}],"stop_reason":"end_turn","usage":{"cache_read_input_tokens":0,"cache_creation_input_tokens":0,"input_tokens":8,"output_tokens":12}}

App Version

3.43.0

API Provider (optional)

Anthropic

Model Used (optional)

claude-sonnet-4-5

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

# Detailed error info

// Please share this file with Roo Code Support (support@roocode.com) to diagnose the issue faster
// Just make sure you're OK sharing the contents of the conversation below.

{
  "error": {
    "timestamp": "2026-01-24T17:24:01.146Z",
    "version": "3.43.0",
    "provider": "anthropic",
    "model": "claude-sonnet-4-5",
    "details": "403\n403 Portkey Error: Forbidden!. Error Code: 033"
  },
  "history": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "<user_message>\nhello\n</user_message>"
        },
        {
          "type": "text",
          "text": "<environment_details>\n# VSCode Visible Files\n\n\n# VSCode Open Tabs\n\n\n# Current Time\nCurrent time in ISO 8601 UTC format: 2026-01-24T17:23:55.512Z\nUser time zone: America/Los_Angeles, UTC-8:00\n\n# Current Cost\n$0.00\n\n# Current Mode\n<slug>ask</slug>\n<name>❓ Ask</name>\n<model>claude-sonnet-4-5</model>\n<tool_format>native</tool_format>\n\n\n# Current Workspace Directory (/Users/<my ID>/Desktop) Files\n(Desktop files not shown automatically. Use list_files to explore if needed.)\nYou have not created a todo list yet. Create one with `update_todo_list` if your task is complicated or involves multiple steps.\n</environment_details>"
        }
      ],
      "ts": 1769275435513
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions