Skip to content

Not logged in · Please run /login - Claude Code

Quick fix

Move PROXY_MANAGED in ~/.claude.json from the rejected approval list to the approved list, then use routing again.

Error output
Not logged in · Please run /login

In routing mode, cc-switch sets ANTHROPIC_API_KEY to PROXY_MANAGED. If this placeholder key is on Claude Code's rejected approval list, it can log out the session and show this error.

The issue also occurred with routing enabled and automatic failover disabled. It was triggered when switching to opencode go's deepseek-v4-flash without selecting 1M; other models did not reproduce it. A comment also reported that baseurl forwarding did not work when routing was enabled and an API that did not require routing was selected, but no confirmed fix was provided.

  1. Edit ~/.claude.json. Move PROXY_MANAGED from customApiKeyResponses.rejected to customApiKeyResponses.approved.

    ~/.claude.json
    "customApiKeyResponses": {
    "rejected": ["PROXY_MANAGED"]
    "approved": ["PROXY_MANAGED"],
    "rejected": []
    }
  2. Use Claude Code routing again.

ToolClaude Code
Version3.20.0(受影响)
PlatformsmacOS

(No FAQ yet)

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.