Windows CLI: Remote session creation fails with AxiosError (web works fine)

Resolved 💬 3 comments Opened Feb 7, 2026 by kensato-xmile Closed Feb 11, 2026

Bug Description

Remote session creation via & prefix or --remote fails with AxiosError: Error on Windows CLI, while the same account works perfectly on claude.ai/code (web).

Environment

  • OS: Windows (PowerShell)
  • Claude Code: v2.1.34 (installed via WinGet)
  • Account: Pro/Max plan with GitHub connected and Claude GitHub App installed

Steps to Reproduce

  1. Open Claude Code CLI on Windows
  2. Type & <any task> to create a remote/background session
  3. Error appears immediately

Error Message

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

Debug Log

The session creation payload is sent correctly, but fails ~228ms later with a bare AxiosError: Error (no HTTP status code, no response body):

[DEBUG] [teleportToRemote] Git source: <owner>/<repo>, revision: main
[DEBUG] Selected environment: env_XXXX (Default-202601)
[DEBUG] Creating session with payload: {
  "title": "...",
  "events": [],
  "session_context": {
    "sources": [{ "type": "git_repository", "url": "https://github.com/<owner>/<repo>", "revision": "main" }],
    "outcomes": [{ "type": "git_repository", "git_info": { "type": "github", "repo": "<owner>/<repo>", "branches": ["claude/..."] } }],
    "model": "claude-opus-4-6"
  },
  "environment_id": "env_XXXX"
}
[ERROR] AxiosError: Error
    at AR (B:/~BUN/root/claude.exe:28:1144)
    at <anonymous> (B:/~BUN/root/claude.exe:33:10063)
    at emit (node:events:92:22)
    at endReadableNT (internal:streams/readable:861:50)
    at processTicksAndRejections (native:7:39)
    at request (B:/~BUN/root/claude.exe:35:2149)
    at processTicksAndRejections (native:7:39)

What I've Verified

| Check | Result |
|---|---|
| claude.ai/code (web) remote sessions | Works |
| CLI normal API calls (conversations) | Works |
| CLI remote session creation | Fails |
| GitHub App installed on repo | Confirmed in debug log |
| /login re-authentication | Done, still fails |
| Network connectivity to platform.claude.com | HTTP 200 OK |
| Proxy env vars (HTTP_PROXY etc.) | Not set |
| Home network (no corporate firewall/VPN) | Confirmed |

Expected Behavior

Remote session should be created successfully, same as on the web interface.

Hypothesis

The AxiosError has no HTTP status code or response, suggesting the request fails at the transport level (possibly SSL/TLS or Bun runtime issue on Windows) rather than receiving an error response from the server.

View original on GitHub ↗

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