Authentication Failure: Persistent Offline State After Login

Resolved 💬 3 comments Opened Jul 24, 2025 by pcshrosbree Closed Aug 19, 2025

Bug Description
When I run Claude Code and login (using /login, then authorizing in a browser) and then submit a prompt Claude Code says it is offline, and I keep getting errors like "API Error (Request timed out.) · Retrying in 1 seconds… (attempt 1/10)". There is no connectivity problem as submitting prompts to Claude form the same machine (this machine) works perfectly.

I run /logout to sign out
Close Claude Code entirely
Restart with claude and complete authentication again

This doesn't work, so I clean stored authentication with:
rm -rf ~/.config/claude-code/auth.json

I get the same behavior.

❯ claude doctor
Claude CLI Diagnostic
Currently running: npm-local (1.0.59)
Path: /usr/bin/node
Invoked: /home/peter/.claude/local/node_modules/.bin/claude
Config install method: local
Auto-updates enabled: true

❯ claude update
Current version: 1.0.59
Checking for updates...
Claude Code is up to date (1.0.59)

❯ claude migrate-installer
Already running from local installation. No migration needed.

❯ which claude
which: no claude in (/home/peter/.npm-global/bin:/usr/lib/ccache/bin/:/usr/local/bin:/usr/bin:/home/peter/.cargo/bin/:/home/peter/.local/bin/)

Environment Info

  • Platform: linux
  • Terminal: ghostty
  • Version: 1.0.59
  • Feedback ID: fd4f31e0-2bf5-43fd-b782-ac383ee1a4ac

Errors

[{"error":"Error: Command failed: ps aux | grep -E \"code|cursor|windsurf|idea|pycharm|webstorm|phpstorm|rubymine|clion|goland|rider|datagrip|dataspell|aqua|gateway|fleet|android-studio\" | grep -v grep\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:924:11)\n    at execSync (node:child_process:996:15)\n    at m7 (file:///home/peter/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:865:5958)\n    at Yt (file:///home/peter/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1346:2366)\n    at file:///home/peter/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2753:9388\n    at async file:///home/peter/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2501:7034\n    at async Promise.all (index 12)\n    at async hX8 (file:///home/peter/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2501:6993)","timestamp":"2025-07-24T20:47:25.123Z"}]

View original on GitHub ↗

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