[Feature Request] Support device-code OAuth flow for remote SSH access

Resolved 💬 2 comments Opened Feb 8, 2026 by SujittRameshkumar Closed Mar 9, 2026

Bug Description
OAuth /login flow is blocking for remote SSH access. I use Claude Code via SSH from my ^@^@iPhone (Termius + Tailscale to my Mac). When OAuth tokens expire, /login opens a browser on my Mac's desktop, which I can't access remotely. This makes it impossible to start new conversations on the go.

Request: offer a device-code flow (URL + code I can
^@^@open on any browser/device) instead of only opening the local browser.

Environment Info

  • Platform: darwin
  • Terminal: ssh-session
  • Version: 2.1.37
  • Feedback ID: 3e968a12-a1de-429b-a1f0-025b98bb61b8

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/suj/.local/share/claude/versions/2.1.37 (expected in multi-process scenarios)\n    at GFR (/$bunfs/root/claude:3584:2098)\n    at ebA (/$bunfs/root/claude:3584:1209)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-08T17:46:49.169Z"},{"error":"Error\n    at Gk (/$bunfs/root/claude:28:1144)\n    at <anonymous> (/$bunfs/root/claude:33:10093)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:35:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-08T17:49:20.588Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/claude:336:3940)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-08T17:53:41.148Z"}]

View original on GitHub ↗

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