The messages
OAuth error: timeout of 15000ms exceeded
OAuth error: Request failed with status code 500
Login OAuth error: Request failed with status code 500 Press Enter to retry.
When it's an Anthropic incident
On April 6, 2026 the tracker filled with both errors within hours — #44271 ("OAuth login fails with 500 error and 15s timeout", 47 comments), #44280, #44266, #44289, #44725 — from Windows, macOS and Linux users alike. When you see that pattern (many people, same hour, both errors), nothing local will fix it: check status.claude.com and retry later, or use the API-key route below.
When it's your network
- DNS. In #33238
auth.anthropic.comreturned "non-existent domain" from the user's resolver *and* 8.8.8.8 in one region; later comments reported the same from Spain. Test withnslookup auth.anthropic.com; try another resolver (1.1.1.1) or a different network. - Proxies, VPNs, IPv6-only networks. The 15 s timeout is short for slow or proxied paths — Anthropic's own docs issue #55194 asked for exactly this guidance. Set
HTTPS_PROXYcorrectly, or try without the VPN. - The Claude in Chrome extension. #44301: the extension rewrote the OAuth
redirect_uri, so the browser step completed but the CLI waited until timeout. Disable it for the login, or log in from another browser. - Headless machines / SSH. No browser to complete the flow. Use
claude setup-tokenon a machine where login works, or an API key.
Skip OAuth: use an API key
OAuth is only needed for Claude Pro/Max subscription use. With an API key in the environment, Claude Code goes straight to the API and never shows the login screen — which is also the fastest way around an auth outage:
export ANTHROPIC_BASE_URL=https://aiprimetech.io
export ANTHROPIC_API_KEY=your_gateway_key
claude # no /login, no OAuth
An Anthropic console key works the same way without ANTHROPIC_BASE_URL. Remember that an API key in the environment wins over a subscription login — unset it when you want to go back to Pro/Max. /status shows which one is active.
Frequently asked questions
How do I fix 'OAuth error: timeout of 15000ms exceeded' in Claude Code?
Retry; check DNS for auth.anthropic.com; disable VPN/proxy and the Claude in Chrome extension; if Anthropic's auth is having an incident, wait or use an API key so Claude Code skips OAuth.
What does 'OAuth error: Request failed with status code 500' mean?
Anthropic's auth server errored during login. It is server-side — retry later or use an API key.
Can I use Claude Code without logging in?
Yes. Set ANTHROPIC_API_KEY (and ANTHROPIC_BASE_URL for a gateway) and Claude Code runs without the OAuth login.
Run Claude Code on the gateway
Same models, two environment variables, credits at 7.69× face value — or a flat-rate unlimited plan.
Get an API key See unlimited plansAI Prime Tech is an independent API gateway and is not affiliated with, endorsed by, or sponsored by Anthropic. “Claude” and “Claude Code” are trademarks of Anthropic. Claude Code features described here follow Anthropic’s public documentation at the time of writing and change frequently; prices and model lists on this page are read from this gateway’s live settings.