[BUG]
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
- Configure a VPS remote context in Claude Code Desktop (SSH connection)
- Click "Retry" when the connection fails
- Browser opens and shows the OAuth error above
OR:
- SSH into a Linux VPS that has Claude Code installed
- Run
claude auth login - Copy the displayed URL and open it in a browser
- Log in with your Anthropic account
- The redirect to
platform.claude.com/oauth/code/callbackfails
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_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗