Skip to content

feat: integrate native ChatGPT and Anthropic OAuth#395

Open
JollyRogerz wants to merge 10 commits intorowboatlabs:mainfrom
JollyRogerz:feature/native-oauth-integration
Open

feat: integrate native ChatGPT and Anthropic OAuth#395
JollyRogerz wants to merge 10 commits intorowboatlabs:mainfrom
JollyRogerz:feature/native-oauth-integration

Conversation

@JollyRogerz
Copy link

Description

This PR introduces Native OAuth support for ChatGPT Plus and Claude Pro, allowing users to leverage their existing subscriptions directly in Rowboat without needing proxies.

Motivation

Providing an alternative to pay-as-you-go API keys significantly lowers the barrier to entry for users who already pay for AI subscriptions.

Testing Performed

  • Built and type-checked frontend and backend.
  • Manually verified the OAuth PKCE device and browser flows.
  • Verified AI SDK requests successfully inherit the Bearer tokens.

Risk & Limitations

  • These flows utilize reverse-engineered endpoints (auth.openai.com and claude.ai). If OpenAI or Anthropic change their private SSO implementations, these flows may break and require maintenance.

@vercel
Copy link

vercel bot commented Feb 21, 2026

@JollyRogerz is attempting to deploy a commit to the RowBoat Labs Team on Vercel.

A member of the Team first needs to authorize it.

@JollyRogerz JollyRogerz marked this pull request as draft February 22, 2026 01:42
@JollyRogerz JollyRogerz marked this pull request as ready for review February 22, 2026 02:08
- Fix Anthropic OAuth: use correct redirect URI (port 8765, /callback path)
  and Bearer token auth. Removed OAuth button since Anthropic blocked
  third-party OAuth in Feb 2026; now shows API key link instead.
- Fix Antigravity OAuth: dedicated port 51121, correct callback path
- Fix OAuth event mapping: anthropic-native -> anthropic in settings +
  onboarding modal event listeners
- Fast model switching: skip test for connected OAuth providers
- Connection status indicators: green/red dots in model selector per provider
- Status bar: persistent bar showing model, auth type, quota tier, session usage
- Usage tracking: captures token counts from LLM finish-step events
- New hooks: useOAuthState, useUsageTracking
- Anthropic Bearer auth: custom fetch to send OAuth tokens as Authorization
  header instead of x-api-key (for future re-enablement)
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