[BUG] claude --teleport shows non-helpful error message if OAuth token has expired
Resolved 💬 6 comments Opened Oct 22, 2025 by simonw Closed Jan 18, 2026
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?
I ran this:
claude --teleport session_011CUNPVCEo76Q5UFhpdUSfC
And got this:
Error: Failed to fetch session from Sessions API: Request failed with status code 401
Then later on using Claude I got this error which helped me understand what had happened:
⎿ 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_011CUNXzmfi3wLr55CJjTCRH"} ·
Please run /login
After I had done that my claude --teleport command worked correctly.
What Should Happen?
If claude --teleport fails with a 401 error it should output a message like this:
OAuth token has expired. Please obtain a new token using /login
Error Messages/Logs
See above.
Steps to Reproduce
Attempt to run claude --teleport X after your OAuth token has expired.
Claude Model
Not sure / Multiple models
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.0.25 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗