feat: add OpenAI OAuth provider (oo@ prefix)#95
Open
Caua726 wants to merge 1 commit intoMadAppGang:mainfrom
Open
feat: add OpenAI OAuth provider (oo@ prefix)#95Caua726 wants to merge 1 commit intoMadAppGang:mainfrom
Caua726 wants to merge 1 commit intoMadAppGang:mainfrom
Conversation
New provider that authenticates via OpenAI's public OAuth PKCE flow, allowing users to use their ChatGPT Plus/Pro subscription without an API key. Uses the Codex backend-api Responses endpoint. - auth/openai-oauth.ts: PKCE flow with browser login, token refresh, secure credential storage at ~/.claudish/openai-oauth.json - transport/openai-oauth.ts: Bearer auth transport to chatgpt.com/backend-api/codex/responses with store=false, max_output_tokens stripping, and 429 retry - CodexAPIFormat: reasoning.effort mapping from thinking.budget_tokens - Provider definition (oo@ shortcut), profile, OAuth registry - CLI flags: --openai-login / --openai-logout - Profile selector: OpenAI OAuth provider with 7 known Codex models - --models listing: shows available oo@ models with login status Supported models: gpt-5.4, gpt-5.4-mini, gpt-5.4-nano, gpt-5.3-codex, gpt-5.3-codex-spark, gpt-5-codex, gpt-5-codex-mini Usage: claudish --openai-login claudish --model oo@gpt-5.3-codex "task"
This was referenced Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New
openai-oauthprovider (prefixoo@) that authenticates via OpenAI's public OAuth PKCE flow, allowing users to use their ChatGPT Plus/Pro subscription without an API key via the Codex backend-api Responses endpoint.New files
auth/openai-oauth.ts— PKCE flow, token refresh, secure credential storageproviders/transport/openai-oauth.ts— Bearer auth transport withstore=false, 429 retryModified files
provider-definitions.ts—oo@shortcut,TransportTypeunionprovider-profiles.ts—openaiOAuthProfilewithCodexAPIFormatoauth-registry.ts— credential validation entryindex.ts—--openai-login/--openai-logoutCLI flagscli.ts— help text +--modelslisting with login statusmodel-selector.ts— profile provider selector with 7 known Codex modelscodex-api-format.ts—reasoning.effortmapping fromthinking.budget_tokensSupported models
gpt-5.4,gpt-5.4-mini,gpt-5.4-nano,gpt-5.3-codex,gpt-5.3-codex-spark,gpt-5-codex,gpt-5-codex-miniUsage
claudish --openai-login claudish --model oo@gpt-5.3-codex "task" claudish --openai-logout