Authentication issues on Linux — page 2
Issues the maintainers labelled both platform:linux and area:auth.
326 issues · 64 open · 262 resolved (80%) · first seen May 8, 2025
Is this getting better or worse?
This class of problem is holding steady. 81 new reports in the last 90 days vs 98 in the 90 before — -17%. The open backlog peaked at 64 in 2026-08 and sits at 64 today.
Derived by counting each matching issue from its creation date until it closed. First-party
computation over the anthropics/claude-code tracker — the trend is not published
anywhere upstream.
Which builds report this
184 of these reports name the Claude Code build they were running, spanning 103 releases. Heaviest reporters:
- Claude Code v2.0.76
- Claude Code v2.1.105
- Claude Code v2.1.63
- Claude Code v2.1.177
- Claude Code v2.1.104
- Claude Code v2.1.20
- Claude Code v2.1.1
- Claude Code v2.1.233
Report volume, not a defect count: an issue can mention a build without that build having caused the failure. Versions come from the version string in the bug-report template, matched against real published tags.
Do these get fixed?
Median time to close is 33 days across 262 closures. Of the 262 closures with a recorded reason, 26% were closed as completed and 194 as not-planned or duplicate. The most recent completed fix landed in 2026-08.
Workarounds reported by the community
87 of these issues post a workaround someone says worked. The highest-engagement ones:
- [Feature Request] Support for OpenCode and Max plan
- …oday. I will hapily return if Anthropic reverses the block, in the meantime I'm researching other models. <img width="575" height="872" alt="Image" src=" /
Found in the thread of #17118 · resolved - Claude Code cannot connect to GitHub's remote MCP server using OAuth authentication
- Current workaround for me was using a Personal Access Token and adding the MCP as follows:
Found in the thread of #3433 · still open - [BUG] login with pasting auth code doesn't work
- …6 64 GNU/Linux) Able to type in the field but cannot paste. Workaround for login if your are using tmux: tmux send-keys -t vwt-ssd:5 'claude' C-m ... some operation and url pop-up .... ... use url get the auth code ... t…
Found in the thread of #47669 · resolved - [BUG] OAuth error: timeout of 15000ms exceeded
- …an log in via claude.ai web browser ✅ - in CLI fails with ❌ Workaround confirmed working for Linux/nvm users: After patching, completes successfully. This confirms the issue is not specific to Windows — it affects Linux…
Found in the thread of #33213 · still open - Support device-code authentication flow (RFC 8628) for Pro/Max subscription users in headless environments
- …on any browser, anywhere. Alternative Solutions Currently I work around this by temporarily installing a minimal GUI + browser on the headless VM, completing OAuth in the browser, then purging the GUI packages. Auth pers…
Found in the description of #22992 · still open
Excerpts are quoted from the linked issue so you can judge relevance before opening it. Threads that only ask for a workaround, or report that there is none, are excluded. These are community suggestions, not official guidance from Anthropic — read the full thread before applying one.
Matching issues 101–200
Ranked by community engagement (reactions weighted over comments). Listing the top 300 of 326 matches; the statistics above cover all 326.
- [BUG] Linux Desktop: session_stale_relogin (elevated_auth) forces ~daily re-login; sign-in demanded twice during Cowork folder-access grants
- [BUG] `CLAUDE_CODE_OAUTH_TOKEN` is shadowed by a stale `~/.claude/.credentials.json` (precedence reversed in 2.1.x) → `/login`
- [BUG] forceLoginOrgUUID is incompatible with setup-token OAuth tokens — breaks all unattended/CI usage
- [BUG] Aws Auth Refresh broken on versions >0.92
- [BUG] Paste auth code does not work on v2.1.107 when running claude code in a VM from Mac
- [BUG] OAuth token exchange fails on ARM64 (Raspberry Pi)
- [BUG] OAuth token expires excessively — multiple times per day
- claude auth login does not show prompt for authorization code in Docker containers
- Silent model downgrade from Opus to Sonnet after re-authentication (Max subscriber)
- [BUG] OAuth authentication is currently not supported
- [BUG] Long delay for initial commend behind firewall
- [BUG] OAuth login flow gives no feedback when manual code paste is required — "if prompted" misleads users
- [BUG] Model discovery incompatible with hybrid claude.ai/gateway authentication
- OAuth refresh corrupts credentials state during transient upstream 5xx → persistent 401 loop across sessions
- [BUG] org:create_api_key scope silently dropped from OAuth grant — Remote Control permanently broken on Max subscription
- [BUG] mTLS client certificates broken in v2.1.23+ (works in v2.1.22)
- [BUG] infinite login loop with /extra-usage
- [BUG] Claude Code does not respect Anthropic retention policy setting
- OAuth Authentication Not Supported for Claude Code CLI
- [BUG] Claude Pro authentication not persisting on Linux
- User Cloud Settings Persistently Resetting Unexpectedly
- [BUG] I can't generate an API Key for Claude Code anymore
- Claude not respecting BROWSER= env on login?
- [BUG] Login failure
- [BUG] MCP OAuth fails: Protected Resource domain mismatch when server uses different public URL vs internal resource URL (Asana MCP V2)
- [BUG] Pro login loads 2.9M tokens in "System tools" — makes Claude Code unusable
- [BUG] OAuth input prompt fails to accept pasted text in SSH session (Ubuntu 24.04)
- [Bug] Claude Code not recognizing plan upgrade, continues using previous session limit
- [BUG] "API Error: Rate limit reached" is actually a stale auth issue - persists for hours past reset, fixed instantly by re-login
- API Error: Rate limit reached immediately despite Pro subscription - rateLimitTier showing as default_claude_ai
- [BUG] Remote control not enabled when authenticating with CLAUDE_CODE_OAUTH_TOKEN
- Silent exit (code 0) on non-git directories on RHEL 8
- [Bug] Excessive re-authentication required - token/session expiration too frequent
- [Bug] 401 Unauthorized error persists after successful login and Max plan upgrade
- [BUG] Authentication with "GOOGLE_APPLICATION_CREDENTIALS" does not seem to work
- [BUG] Usage limit discrepancy between VS Code extension and CLI on same Max account
- [Bug] Persistent Authentication Logout and Excessive Permission Prompts
- [BUG] /install-github-app claims `gh` is not authenticated when it is
- API Error: 401 {"type":"error","error":{"type":"authenticat...
- [BUG] Claude Code loses authentication when I update configuration
- [BUG] Authentication Key Lost on Claude Code Updates
- [BUG] claude blocks on startup due to ignoring proxy settings
- [BUG] Bedrock Application Inference Profile ARN SigV4 signing broken (claude-agent-sdk 0.2.93–0.2.96)
- Remote Control: 'not yet enabled for your account' on Max 5x plan
- OAuth Pro subscription breaks when ANTHROPIC_AUTH_TOKEN/ANTHROPIC_BASE_URL set in env — users workaround via OpenRouter
- [BUG] VS Code extension host crashes when OAuth /api/oauth/claude_cli/client_data returns 429 — no backoff, kills all extensions
- [BUG] VSCode Remote SSH: "enabledPlatforms" TypeError causes initialization failure and session issues
- Performance: Excessive file I/O - Changelog read 18x/sec, uncached OAuth, subprocess overhead
- [BUG] Claude Code HTTP MCP Transport - Connection Failure
- [BUG] Regression - Azure Foundry auth failing since 2.0.70
- [Bug] Infinite loop with empty Bash consuming tokens but not doing anything
- [BUG] Claude code default permissions broken with `:` in file path
- [BUG] slash commands `/install-github-apps` fails because of an error
- [BUG] Max user getting Pro notification
- [BUG] Slow response times with sso login - 1.0.56+
- Cannot run /login
- [BUG] claude auth startup spins at 100% CPU indefinitely with no timeout (Bun runtime) — `--version` unaffected, CLAUDE_CODE_OAUTH_TOKEN suspected trigger
- Slack MCP plugin OAuth fails with "Please specify client_id" despite client_id being sent correctly
- [BUG] `Failed to authenticate. API Error: 401 Invalid authentication credentials` and THEN: `Claude configuration file at /Users/<user>/.claude.json is corrupted: Unexpected end of JSON input` when tried to do `claude -p`
- [BUG] VS Code extension prompts re-login on every PC restart when access token is expired at startup
- [BUG] Cannot convert to subscription from token based billing
- [BUG] "claude auth status" says logged in but "claude" wants to login again
- Your organization has disabled Claude subscription access for Claude Code · Use an Anthropic API key instead, or ask your admin to enable access
- [BUG] `claude auth login` hangs after opening browser, while plain `claude` prompts for pasted auth code
- /status corrupts OAuth session on narrow terminals — Max switches to Claude API, model downgrade, and 401 errors
- [BUG] 401 Authentication Error — OAuth token rejected on all servers despite valid Max 20x subscription
- [BUG] Credentials can be created but cannot be used by Claude Code client
- [BUG] OAuth token refresh uses HTTP GET instead of CONNECT tunnel — breaks forward proxy environments
- [BUG] 401 authentication error
- [BUG] VSCode extension throws invalid_request_error despite valid credentials
- [BUG] /extra-usage command broke web access - forced into account creation flow
- [BUG] API ERROR 401 after login on Ubuntu
- [BUG] 10-12% usage spike when switching accounts and continuing task
- [BUG] env variables not taking effect after the first query
- [Bug] Token consumption without output generation during task execution
- [BUG] Claude Code for VSCode Does Not Send user.account_uuid When Metrics Are Enabled
- Not able to chat with agent in claude code it is throwing...
- Claude Code on WSL - Error: SELF_SIGNED_CERT_IN_CHAIN
- Node.js Memory Allocation Failure During File Writing
- [BUG]
- [BUG] Cowork forces a full account logout (auth_kind=session_stale_relogin) roughly every 24-48h on Linux desktop
- [BUG] "your organization has disabled claude subscription access for claude code usee an anthropic api key instead, or ask your admin to enable access"
- [BUG] Full screen mode is absolute shit
- [BUG] OAuth login/refresh fails with UNABLE_TO_GET_ISSUER_CERT on platform.claude.com's new Let's Encrypt (ISRG Root X2 cross-signed) chain
- [BUG] Pro plan + usage credits enabled, Claude Code still capped at 200K instead of 1M (Opus 4.8)
- [BUG] Claude Code remote HTTP MCP OAuth is not viable for plugin-installed MCP servers on remote/SSH machines, especially with Google OAuth redirect constraints
- [BUG] Invalid Oath - Claude Code
- [BUG] No logout mechanism in VSCodium extension — credentials irrecoverable without CLI
- [BUG] Claude Desktop and Claude Code CLI never re-register MCP tools after OAuth 2.1 handshake on a remote HTTP server
- Remote Control "not yet enabled" on Max plan — v2.1.126 (Arch Linux)
- [BUG] Authentication token header is failing again for AWS Bedrock
- [BUG] Re-authenticate menu crashes with JSON parse error on bearer-only MCP servers in v2.1.120 (not covered by #52158 fix)
- There's an issue with the selected model (claude-haiku-4-5-20251001). It may not exist or you may not have access to it. Run /model to pick a different model.
- [BUG] Paste (Ctrl+V / Shift+Insert) not working in auth prompt over SSH
- Claude Code OAuth flow broken over SSH — cannot paste auth code
- OAuth token expires frequently despite refresh_token present
- [BUG] CLAUDE_CONFIG_DIR does not isolate credentials on Linux/WSL2 (no Keychain)
- [BUG] "Third-party apps now draw from your extra usage" error despite using claude code as expressly allowed.
- [BUG] OAuth token refresh race condition when running multiple Claude Code agents in parallel
- [BUG] OAuth login fails: Unknown scope user:mcp_servers