Authentication issues on Linux
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 1–100
Ranked by community engagement (reactions weighted over comments). Listing the top 300 of 326 matches; the statistics above cover all 326.
- [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] Freshly installed Claude Code ignores settings.json
- [BUG] OAuth redirect_uri uses localhost instead of 127.0.0.1, violating RFC 8252 Section 7.3
- 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] awsAuthRefresh is not working properly after upgrade to claude code 2.0
- [Bug] `/usage` command inaccessible despite active subscription
- [Bug] Anthropic API Error: OAuth token missing user:profile scope
- [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
- [BUG] Bug: Extra Usage charged despite available plan capacity + false rate limit errors in Claude Code
- I keep getting 401 errors about Oauth authentication after...
- [BUG] Extension 2.1.207 breaks Bedrock SSO auth (UnauthorizedException: Session token not found or invalid) — 2.1.206 works
- Fullscreen (alternate-screen) mode breaks terminal copy — can't select/copy login URL
- 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] Claude using AWS provided inference profiles when application inference profiles are set
- How to avoid re-authenticating in docker container?
- [BUG] I cannot uninstall Claude Code because I do not have an active paid account.
- [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] Team Billing: Frequent Unexpected Usage Limit Resets
- [BUG] OAuth refresh returns 400 after early 401 before local expiresAt; concurrent sessions forced to /login
- [BUG] Claude Code uses API billing despite forceLoginMethod: claudeai setting
- Bug Report
- [BUG] HTTP/SSE MCP Transport Ignores Authentication Headers
- /usage command fails for Claude Max accounts
- [BUG] `ANTHROPIC_BASE_URL` ignored during setup
- Gateway model discovery silently fails when auth comes from apiKeyHelper
- [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
- 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] 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
- 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
- [Bug] Anthropic API Error: Tool Call Parsing Failure
- 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 -p with OAuth (no API key) bills as API usage, not Max subscription
- claude_design built-in MCP server always 404s: /v1/design/mcp uses login-OAT, not the designOauth token from /design login (v2.1.181)
- 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.
- VSCode extension ignores per-workspace auth when using CLAUDE_CONFIG_DIR
- 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] Asked to authenticate gmail server by /mcp but that option is not listed
- [BUG] VS Code Extension Authentication Completely Broken on Linux aarch64
- [BUG]Cannot authenticate Claude Code on headless remote server (VPS)
- Paste into login OAuth code field is broken (works fine in main chat prompt, same terminal)
- [BUG] Cloudflare WAF blocks OAuth token refresh from headless Linux servers — permanent lockout after ~1 hour
- [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
- [BUG] Claude Code OAuth authentication fails in proxy environment (Remote Development)
- [BUG] AWS_PROFILE in settings.json not working
- Cannot --resume. OAuth authentication errors contaminating session files.
- [BUG] API Error (request timed out) in Claude Code in vscode
- [BUG] Claude Code doesn't inherit refreshed AWS credentials from SAML-to in GitHub Codespaces, causing 403 "security token expired" errors every 30 minutes