[BUG] Claude code not conecting in CLI or extension
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Claude Code forces a logout immediately after starting a new conversation in the terminal or VS Code extension.
Attempting to re-authenticate as prompted fails with an expired OAuth token error.
What Should Happen?
The re-authentication process should successfully refresh the session and allow the user to continue the conversation without an authentication loop.
Error Messages/Logs
{"type":"error","error":{"type":"authentication_error","message":"OAuth token has expired. Please obtain a new token or refresh your existing token."},"request_id":"req_011CZnoQq6BpTWdhbNjDHjG5"}
Steps to Reproduce
Open the terminal or the Claude extension in VS Code.
Start a new conversation/session.
Observe the automatic disconnection and the prompt to re-login.
Click the login link/button to re-authenticate.
Observe the JSON error message regarding the expired OAuth token.
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Claude 1.569.0 (49894a) 2026-04-02T20:01:42.000Z
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
I am a Pro subscriber and I use Claude Code exclusively for development.
The issue occurs consistently in both the VS Code extension and the CLI.
I am not using any third-party bots or custom scripts (like "claw bot") to access the service.
This is a "blocking" issue as it creates an authentication loop that prevents any work from being done.
<img width="638" height="715" alt="Image" src="https://github.com/user-attachments/assets/4bd67153-eb6d-4911-924e-f8a8fa673ec2" />
16 Comments
same here
<img width="581" height="185" alt="Image" src="https://github.com/user-attachments/assets/d858737e-3398-4ebb-8cb4-b0c63e5024a6" />
Same here, can't get Claude Code to login
The claude server is on a issue now.
https://status.claude.com/
<img width="2012" height="1046" alt="Image" src="https://github.com/user-attachments/assets/4a8ea332-bdbb-43b9-94e4-b8069791e7a6" />
same for me can't login from console.
Me too.
<img width="369" height="232" alt="Image" src="https://github.com/user-attachments/assets/872fcd0c-290b-4781-9574-e071b5e76c27" />
Hmm, It's not stable
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
same here, can't login on my terminal
<img width="447" height="395" alt="Image" src="https://github.com/user-attachments/assets/a19e4085-4a5d-4079-9f09-1ca4248f6541" />
Same here
Claude Code is up to date (2.1.92)
root@onsite-bked:~/onsite# claude
▐▛███▜▌ Claude Code v2.1.92
▝▜█████▛▘ Sonnet 4.6 · API Usage Billing
▘▘ ▝▝ ~/onsite
❯ /login
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Login
OAuth error: timeout of 15000ms exceeded
Press Enter to retry.
Esc to cancel
Facing the same issue, unable to login into claude cli :(
Me too.
I can't connect my subscription of Claude in Code.
Just bought Pro subscription today for the first time. :(
Sometimes I don't get to see any key and the browser just goes to https://platform.claude.com/oauth/code/success?app=claude-code
<img width="1115" height="627" alt="Image" src="https://github.com/user-attachments/assets/d2abf13c-f1b9-4961-9fcf-2658c95c0d46" />
Sometimes i get the key, paste it (some of the chars not masked - unsure if normal) but then get to the error (same or 500).
Same issue. Tried incognito mode. OAuth error: Request failed with status code 500 and also OAuth error: timeout of 15000ms exceeded in another attempt.
They fixed it, at least it works for me.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.