Troubleshooting

← Back to homepage

Claude Code auth conflict

If Claude Code shows the warning:

Auth conflict: Both a token (ANTHROPIC_AUTH_TOKEN) and an API key (/login managed key) are set.

This means you previously logged in via Anthropic Console. Log out to resolve the conflict:

claude auth logout

Tips