OAuth token expires when using Claude Code on multiple devices
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?
When using Claude Code on two different computers with the same Claude Max account, logging in on one device immediately invalidates the OAuth token on the other device. This forces me to run /login every time I switch between devices, even if the token hasn't technically expired.
What Should Happen?
Users should be able to maintain active sessions on multiple devices simultaneously. Logging in on Device B should not invalidate the token on Device A. Most modern services support multiple concurrent sessions per account.
Error Messages/Logs
API Error: 401
{"type":"error","error":{"type":"authentication_error","message":"OAuth token has expired. Please obtain a new token or refresh your existing token."},"request_id":"req_011CXQ46Lk62sidviQWpEDTU"} · Please run /login
Steps to Reproduce
Install Claude Code on two different computers (Device A and Device B)
Run /login on Device A - works fine
Run /login on Device B - works fine
Go back to Device A and run any command
Device A now shows 401 authentication error requiring /login again
Run /login on Device A
Go back to Device B - same error occurs
This cycle repeats indefinitely when switching devices
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
N/A
Claude Code Version
v2.1.14
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗