You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consumer subscription accounts such as Claude Pro use OAuth tokens, but mocactl Add Credential refuses to accept them, saying api.anthropic.com reads API keys from x-api-key: choose kind api-key
Note that getting the Anthropic OAuth token can be tricky on macOS. https://code.claude.com/docs/en/authentication documents the CLAUDE_CODE_OAUTH_TOKEN env var and setting, and the ~/.claude/.credentials.json file, but on the Mac that file isn't used for keyboard (non-SSH) users. The OAuth key is stored in the keychain, and many web sites suggest using security find-generic-password -s 'Claude Code-credentials' -w to extract it. On my machine I had two keys,
Claude Code-credentials-854ee35a
Claude Code-credentials-28e0d61e
... and I had to list system keychain entries to find those.
Activity
feat(credentials): accept Anthropic OAuth tokens for inference