[BUG]

Resolved 💬 2 comments Opened Jun 23, 2026 by marisgoerner-cell Closed Jun 27, 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?

Bug Description

The VPS/remote context authentication in Claude Code Desktop is broken.
When clicking "Retry" on a configured VPS context, the OAuth flow fails
with one of two errors:

Error 1 (most common):

Redirect URI https://platform.claude.com/oauth/code/callback is not supported by client.

Error 2 (occasionally):

Ungültige OAuth-Anfrage – Fehlender code_challenge Parameter (= Invalid OAuth request – Missing code_challenge parameter)

Even when manually opening the OAuth URL from a headless claude auth login
session and pasting the code back, the result is:

Invalid code. Please make sure the full code was copied.

Steps to Reproduce

  1. Configure a VPS remote context in Claude Code Desktop (SSH connection)
  2. Click "Retry" when the connection fails
  3. Browser opens and shows the OAuth error above

OR:

  1. SSH into a Linux VPS that has Claude Code installed
  2. Run claude auth login
  3. Copy the displayed URL and open it in a browser
  4. Log in with your Anthropic account
  5. The redirect to platform.claude.com/oauth/code/callback fails

Environment

  • Claude Code version: 2.1.186
  • Local OS: macOS
  • VPS OS: Ubuntu Linux
  • Client ID used in the OAuth URL: 9d1c250a-e61b-44d9-88ed-5944d1962f5e

Expected Behavior

OAuth authentication should complete successfully so Claude Code can
run on a remote VPS server.

Actual Behavior

The redirect URI https://platform.claude.com/oauth/code/callback is
not registered for the client ID used by the VPS context / headless
auth flow. No workaround exists for Claude Pro subscribers who cannot
use API keys without additional cost.

Impact

The VPS remote context feature is completely unusable. Running Claude
Code on a remote server (as shown in tutorials) is not possible with
Claude Pro subscription authentication.

What Should Happen?

fix

Error Messages/Logs

Steps to Reproduce

.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

idk

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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