Authentication issues on Linux
Issues the maintainers labelled both platform:linux and area:auth.
372 issues · 79 open · 293 resolved (79%) · first seen May 8, 2025
Is this getting better or worse?
This class of problem is holding steady. 83 new reports in the last 90 days vs 71 in the 90 before — +17%. The open backlog peaked at 79 in 2026-10 and sits at 79 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
223 of these reports name the Claude Code build they were running, spanning 129 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.296
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 293 closures. Of the 293 closures with a recorded reason, 25% were closed as completed and 221 as not-planned or duplicate. The most recent completed fix landed in 2026-10.
Workarounds reported by the community
102 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 1–100
Ranked by community engagement (reactions weighted over comments). Listing the top 300 of 372 matches; the statistics above cover all 372.
- [Feature Request] Support for OpenCode and Max plan
- Claude Code cannot connect to GitHub's remote MCP server using OAuth authentication
- [BUG] login with pasting auth code doesn't work
- [BUG] OAuth error: timeout of 15000ms exceeded
- Support device-code authentication flow (RFC 8628) for Pro/Max subscription users in headless environments
- [BUG] CLI login fails to allow pasting the code from the browser when terminal paste bracketing is enabled
- [BUG] Unable to access Claude Code after successful OAuth login with Google account
- [BUG] OAuth redirect_uri uses localhost instead of 127.0.0.1, violating RFC 8252 Section 7.3
- [BUG] Freshly installed Claude Code ignores settings.json
- OAuth error: Request failed with status code 500
- Long Context Beta Not Available for Current Subscription
- [BUG] claude setup-token/CLAUDE_CODE_OAUTH_TOKEN is not enough to authenticate claude
- [BUG] Can't paste auth token into the CLI app, so can't auth.
- [BUG] Claude account /login OAuth loop — state parameter dropped after "sign in again to continue" redirect
- [Bug] Anthropic API Error: OAuth token missing user:profile scope
- [BUG] awsAuthRefresh is not working properly after upgrade to claude code 2.0
- [Bug] `/usage` command inaccessible despite active subscription
- [BUG] OAuth Authentication Succeeds but MCP Reconnection Fails - Requires Restart
- Cannot paste OAuth code into auth prompt (bracketed paste not handled)
- [BUG] Claude Pro users are not currently able to use Opus in Claude Code
- Fullscreen (alternate-screen) mode breaks terminal copy — can't select/copy login URL
- [BUG] Bug: Extra Usage charged despite available plan capacity + false rate limit errors in Claude Code
- [BUG] Extension 2.1.207 breaks Bedrock SSO auth (UnauthorizedException: Session token not found or invalid) — 2.1.206 works
- I keep getting 401 errors about Oauth authentication after...
- API Error: 401 {"type":"error","error":{"type":"authenticati...
- [BUG] Cannot paste OAuth auth code in v2.1.107 (regression from v2.1.104)
- [Bug] /usage endpoint returns subscription-only error despite active subscription
- [BUG] Claude auth 15s timeout too short--authorization page takes >15s to even load
- [BUG] I cannot uninstall Claude Code because I do not have an active paid account.
- [BUG] Claude using AWS provided inference profiles when application inference profiles are set
- How to avoid re-authenticating in docker container?
- [BUG] /install-github-app does not allow to authenticate when running from container
- i keep having this error when i ran Claude code today.\
- [BUG] `claude` on Mac deletes the `.credentials.json` file that `claude` on Linux uses
- ⎿ API Error: 401
- [BUG] OAuth refresh returns 400 after early 401 before local expiresAt; concurrent sessions forced to /login
- [Bug] Team Billing: Frequent Unexpected Usage Limit Resets
- [BUG] Claude Code uses API billing despite forceLoginMethod: claudeai setting
- Bug Report
- [BUG] HTTP/SSE MCP Transport Ignores Authentication Headers
- [BUG] Linux Desktop: session_stale_relogin (elevated_auth) forces ~daily re-login; sign-in demanded twice during Cowork folder-access grants
- /usage command fails for Claude Max accounts
- Gateway model discovery silently fails when auth comes from apiKeyHelper
- [BUG] `ANTHROPIC_BASE_URL` ignored during setup
- [BUG] Bedrock Bearer Token (ABSK) authentication broken in v2.1.94
- OAuth login fails from Hetzner VPS — Cloudflare JS challenge blocks token exchange
- [BUG] remote-control does not work with setup-token (needs user:sessions:claude_code scope)
- [BUG] VS Code extension ignores third-party provider environment variables during authentication check
- OAuth refresh token not used when credentials are copied to remote/headless machines
- Login prompt does not accept paste input on Linux/Ubuntu terminals
- [BUG] NO_PROXY stopped working in 2.1.23
- Systematic Service Failures - $440 Refund Request After Month of Critical Bugs (WSL2)
- Remote Control not enabled on Max plan account
- [BUG] Invalid OAuth Request: Unknown scope: org%3Acreate_api_key
- Fable 5.1 unreachable in Claude Code despite unused plan-included Fable allocation; credit-block dialog shows "not included in plan" copy with no affirmative action
- OAuth callback fails in devcontainers: server binds to IPv6 (::1) but VS Code port forwarding connects via IPv4
- [BUG] OAuth login fails with ERR_INVALID_IP_ADDRESS behind corporate proxy (regression since 2.0.37)
- relogin many time but : "API Error: 401...
- [BUG] "/usage command not working despite active Pro subscription"
- [BUG] Desktop app's self-generated .desktop entry breaks its own claude:// login handoff on Ubuntu — GIO refuses to load it
- [BUG] 2.1.19x native CLI: OAuth login fails CERT_HAS_EXPIRED on claude.com / platform.claude.com (no proxy) — bundled Bun 1.4.0 regression vs 1.3.14
- [BUG] New Claude Code sessions hang indefinitely - existing sessions work fine
- [BUG] MCP need logo_uri, client_uri, tos_uri must be parsable
- Bug: Multi-Session Hang - Only Latest CLI Session Works (WSL2 + OAuth)
- [BUG] WebFetch tool returns 401 OAuth error after successful login
- [Bug] Anthropic API Error: Tool Call Parsing Failure
- OAuth login on headless EC2: code paste broken after recent update
- [BUG] Claude Code hangs silently with corrupted config instead of showing clear error
- VS Code extension ignores proxy settings from ~/.claude/settings.json and environment variables
- Hosted Microsoft 365 MCP server OAuth fails: duplicate prompt param + unregistered redirect URIs
- OAuth authentication fails in headless/Docker environments: "Redirect URI not supported by client"
- [BUG] Use API key over the Claude Code Max Plan when API config is set to false in headless mode
- [BUG] Remote Control daemon dies with 403 "no longer a member of the organization" while idle — Max plan personal Gmail, no client-side action
- OAuth authorization URL not wrapped in OSC 8 hyperlink, causing truncation in terminal emulators
- claude_design built-in MCP server always 404s: /v1/design/mcp uses login-OAT, not the designOauth token from /design login (v2.1.181)
- claude -p with OAuth (no API key) bills as API usage, not Max subscription
- OAuth login broken for remote/headless server setups
- [BUG] I end up in an authentication loop
- OAuth expiration causes retry storm consuming 100% session usage (3.75M wasted tokens)
- [BUG] claude on Mac deletes the .credentials.json file that claude on Linux uses
- I am getting a 401 error with the message Invalid OAuth token.
- [BUG] Asked to authenticate gmail server by /mcp but that option is not listed
- OAuth Authentication Broken in WSL2 - Cannot Login or Use API
- [BUG] cloning git repositories with a FIDO2 SSH key no longer work when adding marketplaces or plugins from v2.0.15 and up
- [BUG] OAuth login paste input completely broken after upgrading to 2.1.105 over SSH
- Support API key authentication for interactive mode on headless systems
- [BUG] OAuth error: Request failed with status code 500
- Usage Quota Not Resetting at Scheduled Time for Max Customer
- [BUG] Headless session start reports already-authorized claude.ai connectors as requiring authentication; tool calls then succeed
- [BUG]Cannot authenticate Claude Code on headless remote server (VPS)
- [BUG] Cloudflare WAF blocks OAuth token refresh from headless Linux servers — permanent lockout after ~1 hour
- [BUG] VS Code Extension Authentication Completely Broken on Linux aarch64
- [BUG] `CLAUDE_CODE_OAUTH_TOKEN` is shadowed by a stale `~/.claude/.credentials.json` (precedence reversed in 2.1.x) → `/login`
- Paste into login OAuth code field is broken (works fine in main chat prompt, same terminal)
- VSCode extension ignores per-workspace auth when using CLAUDE_CONFIG_DIR
- [Bug] Remote Control unavailable for Claude Max subscriber despite eligibility
- [BUG] setup-token OAuth PKCE sends lowercase s256 instead of S256 on Termux
- [BUG] Authentication fails with 403 error when using Claude extension via SSH remote connection
- [BUG] Official Greptile plugin fails with "Cannot POST /register" error
- [FEATURE] Warn when CLAUDE_CODE_OAUTH_TOKEN env var overrides credentials file