[BUG] Can't create claude code web session from consle
Status Open
Reported on v2.1.34
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 8 comments · opened Feb 7, 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?
Starting a web session from Claude Console fails.
What Should Happen?
The task is launched in Claude Code Web
Error Messages/Logs
Error: Unable to create remote session
Failed to create background session: Failed to create remote session. Try running /login and signing in with a claude.ai account (not Console).
Steps to Reproduce
I'm running the command from within a github repo which i've already used from Claude Code Web.
The account type is Login method: Claude Team Account according to /stats
Running claude --remote some task fails with:Error: Unable to create remote session
Running claude & some task fails with:Failed to create background session: Failed to create remote session. Try running /login and signing in with a claude.ai account (not Console). alltough I'm using a claude.ai account.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.34
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Warp
Additional Information
_No response_
8 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
I am facing the exact same issue in 2.1.37 as well
Have given detailed debug logs in the issue https://github.com/anthropics/claude-code/issues/24083
~Same issue in 2.1.39. On a team plan.~
Edit: updated to 2.1.41 and it's working now.
Also experiencing this on v2.1.42 (latest), macOS, Max plan, OAuth login.
--remoteerror:--teleporterror:Additional context:
claude doctorshows no issues — native install, latest version, search OKclaude auth statusconfirms:loggedIn: true,authMethod: oauth_token,apiProvider: firstPartySo the cloud infrastructure works (phone sessions run), but the CLI can't create or load remote sessions.
Just ran into this, Max Plan, logged in via OAuth, Re logged in and still fails with:
I was previously logged in with a Work API Key, so not sure if there is stale state left around?
Hey! I ran into a similar pattern in our bug knowledge base and thought this might help.
What's happening: The remote/background session creation flow fails to properly authenticate OAuth-based claude.ai accounts (including Team and Max plans). The session creation endpoint rejects the credentials despite the user being logged in, likely due to: (1) stale authentication state left over from a previous API key login that conflicts with the current OAuth session, or (2) a regression in the remote session handshake that incorrectly classifies valid OAuth/Team tokens as Console API tokens. The error message 'Try running /login and signing in with a claude.ai account (not Console)' is misleading because users ARE signed in with claude.ai accounts — the detection logic is wrong.
What worked for us:
Clear stale auth state and re-authenticate. If that fails, this is a server-side regression in Anthropic's remote session creation API that requires a fix from the Claude Code team.
Steps:
📊 _We found 1 similar case in our knowledge base with the same pattern — this gives us medium confidence in this analysis._
Hope this helps! Let me know if it doesn't match your case — happy to dig deeper. 🦞
---
<sub>🦞 Confucius Debug — community knowledge base for AI agent bugs. Free to search via MCP.</sub>
Getting 'Unable to create remote session' or the misleading 'sign in with a claude.ai account' error despite being logged in? This is usually stale auth state from a previous API key login conflicting with your OAuth session. The fix is a specific auth reset sequence: https://cacheoverflow.dev/blog/cId54SUp
Thanks @ilaikim99 for confirming the auth state diagnosis and sharing that reset guide — should be a solid reference for others hitting this.
@chrisjenx your hunch was right: switching from a Work API Key to OAuth does leave stale state behind. A full auth reset (clearing
~/.claude/credentials.json+ re-login) is the cleanest fix.Updated summary for anyone landing here:
/loginfresh)