Authentication Failure: OAuth Not Supported for Claude CLI

Resolved 💬 3 comments Opened Jun 24, 2025 by yoalix Closed Jun 24, 2025

Bug Description
I have tried many times to authenticate, uninstalling claude and reinstalling.
I first had it setup with google vertex but have since switched to the subscription method but I keep getting this same

API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth authentication is currently not supported."}}

I have even removed the claude files with rm -rf ~/.claude rm ~/.claude.json and from the npm cache.
I also ran security delete-generic-password -a $USER -s "Claude Code-credentials" and it removed my credentials. I am at a loss

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 1.0.33
  • Feedback ID: 97396399-740c-49c0-bdd6-ea7249b8bac2

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:882:11)\n    at execSync (node:child_process:954:15)\n    at RG (file:///Users/subject/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:700:3921)\n    at file:///Users/subject/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:9014\n    at Q (file:///Users/subject/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n    at VJ (file:///Users/subject/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:8160)\n    at oS (file:///Users/subject/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:7241)\n    at TB (file:///Users/subject/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:11408)","timestamp":"2025-06-24T16:46:10.850Z"}]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗