Skip to content

fix: align claude oauth request shape#1

Open
harshav167 wants to merge 1 commit intomasterfrom
fix/claude-oauth-request-shape
Open

fix: align claude oauth request shape#1
harshav167 wants to merge 1 commit intomasterfrom
fix/claude-oauth-request-shape

Conversation

@harshav167
Copy link
Owner

@harshav167 harshav167 commented Jan 9, 2026

Summary

Why this over PR anomalyco#10

PR anomalyco#10 prefixes tool names, which helps tool-call routing, but the OAuth rejection happens before tool calls are processed. The 400 error is returned from /v1/messages itself. This change fixes the request signature mismatch (endpoint query + user-agent + beta list) so Claude Code OAuth tokens are accepted.

Notes

  • This is scoped to OAuth requests only; API key behavior is unchanged.

Test plan

  • Verified locally by routing OpenCode through ccflare and confirming POST /v1/messages?beta=true with user-agent: claude-cli/... and OAuth beta list; request succeeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments