[BUG] Remote Control: Bridge poll returns 401 despite valid OAuth login (Max subscription)

Resolved 💬 7 comments Opened Mar 2, 2026 by jmlallier Closed Mar 3, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report
  • [x] I am using the latest version of Claude Code

What's Wrong?

Remote Control feature consistently fails with a 401 authentication error during the bridge poll step, even after full re-authentication via claude logout + claude login. This is from the CLI directly (not the VS Code extension). Normal API usage (conversations) works fine — only the Remote Control bridge is affected.

What Should Happen?

The Remote Control bridge should successfully register, create a session, and begin polling for work without authentication errors.

Error Messages/Logs

[bridge:api] POST /v1/environments/bridge -> 200 (registration succeeds)
[bridge] Session creation request failed: Request failed with status code 503
[bridge:work] Starting poll loop
[ERROR] BridgeFatalError: BridgeFatalError: Poll: Authentication failed (401): Invalid OAuth token. The provided token was not found or is malformed.. Remote Control is only available with claude.ai subscriptions. Please use `/login` to sign in with your claude.ai account.
[bridge:api] DELETE /v1/environments/bridge/env_... (cleanup)

Auth status at time of error:

{
  "loggedIn": true,
  "authMethod": "claude.ai",
  "apiProvider": "firstParty",
  "subscriptionType": "max"
}

Steps to Reproduce

  1. Run claude from the CLI (not VS Code)
  2. Verify auth: claude auth status shows logged in with Max subscription
  3. Remote Control bridge attempts to start automatically
  4. Bridge registration succeeds (200) but session creation fails with 503, then poll immediately fails with 401
  5. claude logout followed by claude login does not resolve the issue
  6. Running only a single CLI instance does not resolve the issue

Claude Model

Opus

Is this a regression?

I don't know

Claude Code Version

2.1.63 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

  • macOS 26.3 (Tahoe), Apple Silicon (arm64)
  • Auth method: claude.ai OAuth (Max subscription)
  • The session creation 503/500 errors may be the root cause, with the 401 on poll being a secondary effect
  • The issue reproduces across multiple project directories simultaneously

View original on GitHub ↗

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