Skip to content

feat(auth): add ChatGPT Plus/Pro OAuth provider#1529

Draft
qipenglin wants to merge 1 commit into
MoonshotAI:mainfrom
qipenglin:codex/chatgpt-oauth-provider
Draft

feat(auth): add ChatGPT Plus/Pro OAuth provider#1529
qipenglin wants to merge 1 commit into
MoonshotAI:mainfrom
qipenglin:codex/chatgpt-oauth-provider

Conversation

@qipenglin

Copy link
Copy Markdown

Related Issue

Resolves #1523

Problem

See linked issue.

What changed

  • Add OpenAI device-code OAuth login for ChatGPT Plus/Pro subscriptions, including credential storage and token refresh.
  • Fetch the account's available Codex model catalog after login, with a conservative built-in fallback when catalog discovery is unavailable.
  • Configure the ChatGPT Codex request path with the required account headers and omit unsupported completion-budget parameters.
  • Add focused OAuth and runtime-provider coverage, bilingual provider documentation, and a CLI changeset.

This integration uses the ChatGPT Codex backend rather than OpenAI API-key billing. Model visibility and metadata come from the authenticated account when available.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Jul 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4d824e7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@qipenglin qipenglin force-pushed the codex/chatgpt-oauth-provider branch from 789a5a3 to 4d824e7 Compare July 10, 2026 08:05
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.

Support ChatGPT Plus/Pro OAuth as a login provider

1 participant