[BUG] --remote and "&" not starting the remote sessions

Resolved 💬 2 comments Opened Feb 8, 2026 by nsanghi Closed Feb 8, 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 have done a
a) fresh install of claud code with brew and have logged in using claude.ai (and not api key)
b) I have made sure that ANTHROPIC_API_KEY is not set
c) I choose a public repo of mine with which I can interact on web at https://claude.ai/code

I now wanted to try two things

In the repo folder on local machine, try a command claude --remote "review code in remote session A
Also inside the claude session I treid the command & review code in remote session B

Both comamnds fail to start a remote session

What Should Happen?

Both commands should start a remote session which I can view at claude.ai/code

Error Messages/Logs

I see following error for `claude --debug --remote "Review code in remote session A"`
`Error: Unable to create remote session`

Debug file shows as below:

2026-02-08T02:14:10.912Z [DEBUG] [API:request] Creating client, ANTHROPIC_CUSTOM_HEADERS present: false, has Authorization header: false
2026-02-08T02:14:10.912Z [DEBUG] [API:auth] OAuth token check starting
2026-02-08T02:14:10.912Z [DEBUG] [API:auth] OAuth token check complete
2026-02-08T02:14:11.325Z [DEBUG] Stream started - received first chunk
2026-02-08T02:14:11.326Z [DEBUG] Stream started - received first chunk
2026-02-08T02:14:11.468Z [DEBUG] [teleportToRemote] Git source: nsanghi/playclaude, revision: main
2026-02-08T02:14:11.834Z [DEBUG] Selected environment: env_01YF5zgjerBv5ryPiPgFS4Po (Full)
2026-02-08T02:14:11.835Z [DEBUG] Creating session with payload: {
  "title": "Review code in remote session A",
  "events": [
    {
      "type": "event",
      "data": {
        "uuid": "8e5ecd36-d242-409c-90c9-dcd582a4f3d1",
        "session_id": "",
        "type": "user",
        "parent_tool_use_id": null,
        "message": {
          "role": "user",
          "content": "review code in remote session A"
        }
      }
    }
  ],
  "session_context": {
    "sources": [
      {
        "type": "git_repository",
        "url": "https://github.com/nsanghi/playclaude",
        "revision": "main"
      }
    ],
    "outcomes": [
      {
        "type": "git_repository",
        "git_info": {
          "type": "github",
          "repo": "nsanghi/playclaude",
          "branches": [
            "claude/review-remote-session-a"
          ]
        }
      }
    ],
    "model": "claude-opus-4-6"
  },
  "environment_id": "env_01YF5zgjerBv5ryPiPgFS4Po"
}
2026-02-08T02:14:12.157Z [ERROR] AxiosError: Error
    at Gk (/$bunfs/root/claude:28:1144)
    at <anonymous> (/$bunfs/root/claude:33:10093)
    at emit (node:events:92:22)
    at endReadableNT (internal:streams/readable:861:50)
    at processTicksAndRejections (native:7:39)
    at request (/$bunfs/root/claude:35:2149)
    at processTicksAndRejections (native:7:39)
2026-02-08T02:14:12.159Z [DEBUG] Getting matching hook commands for SessionEnd with query: other
2026-02-08T02:14:12.159Z [DEBUG] Found 0 hook matchers in settings
2026-02-08T02:14:12.159Z [DEBUG] Matched 0 unique hooks for query "other" (0 before deduplication)
2026-02-08T02:14:12.163Z [DEBUG] LSP server manager shut down successfully

inside the claude when I run & Review code in remote session B, I ge the following error in cluade code

Failed to create background session: Failed to create remote session. Try running /login and signing in with a claude.ai account (not Console).

The debug log shows similar error

2026-02-08T02:18:11.270Z [DEBUG] [teleportToRemote] Git source: nsanghi/playclaude, revision: main
2026-02-08T02:18:11.648Z [DEBUG] Selected environment: env_01YF5zgjerBv5ryPiPgFS4Po (Full)
2026-02-08T02:18:11.649Z [DEBUG] Creating session with payload: {
  "title": "Review code in remote session B",
  "events": [],
  "session_context": {
    "sources": [
      {
        "type": "git_repository",
        "url": "https://github.com/nsanghi/playclaude",
        "revision": "main"
      }
    ],
    "outcomes": [
      {
        "type": "git_repository",
        "git_info": {
          "type": "github",
          "repo": "nsanghi/playclaude",
          "branches": [
            "claude/review-remote-session-b"
          ]
        }
      }
    ],
    "model": "claude-opus-4-6"
  },
  "environment_id": "env_01YF5zgjerBv5ryPiPgFS4Po"
}
2026-02-08T02:18:12.052Z [ERROR] AxiosError: Error
    at Gk (/$bunfs/root/claude:28:1144)
    at <anonymous> (/$bunfs/root/claude:33:10093)
    at emit (node:events:92:22)
    at endReadableNT (internal:streams/readable:861:50)
    at processTicksAndRejections (native:7:39)
    at request (/$bunfs/root/claude:35:2149)
    at processTicksAndRejections (native:7:39)

\status shows

Login method: Claude ... Account

Steps to Reproduce

  1. remove claude code completely from your machine.
  2. Do a fresh install and authenticate using claude.ai account
  3. create a fresh public repo on github, enable claude code app access to this repo
  4. at claude.ai/code, interact with the new repo e.g. create a CLAUDE.md file etc
  5. on local computer terminal, clone the repo and interact with it locally e.g. "explain the code"
  6. Now run command claude --remote "do something..." and inside claude session & Do something

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.37 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

the repo used is a public repo for understanding teleport capabilities

https://github.com/nsanghi/playclaude

View original on GitHub ↗

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