Community Tool Routes ChatGPT OAuth Into OpenAI API

The 30-Second Skim
- What happened: A community-maintained package called
openai-oauthexposes OpenAI-compatible API endpoints by reusing ChatGPT account OAuth tokens through a localhost proxy, though the project itself warns users they could lose their accounts for violating OpenAI's terms. - Key facts & numbers: The
openai-oauthpackage spins up a localhost proxy athttp://127.0.0.1:10531/v1pre-authenticated with Codex/ChatGPT OAuth tokens, runnable vianpx openai-oauthwith no API key required Available models are restricted to what OpenAI's Codex supports — currently including gpt-5.4 and gpt-5.3-codex — and the list depends on the user's individual Codex plan Working endpoints include/v1/responses,/v1/chat/completions, and/v1/models, with support for streaming responses, tool calls, and reasoning traces; the proxy is stateless and requires callers to send full conversation history - What happens next: A free OpenAI API key, sort of — until OpenAI notices. The tool itself basically says 'this might get your account banned,' so don't build a business on it.
- The
openai-oauthpackage spins up a localhost proxy athttp://127.0.0.1:10531/v1pre-authenticated with Codex/ChatGPT OAuth tokens, runnable vianpx openai-oauthwith no API key required - Available models are restricted to what OpenAI's Codex supports — currently including gpt-5.4 and gpt-5.3-codex — and the list depends on the user's individual Codex plan
- Working endpoints include
/v1/responses,/v1/chat/completions, and/v1/models, with support for streaming responses, tool calls, and reasoning traces; the proxy is stateless and requires callers to send full conversation history - The trick under the hood is hitting OpenAI's special Codex CLI endpoint at
chatgpt.com/backend-api/codex/responses, which grants rate limits tied to the ChatGPT subscription rather than separate API credits
Why It Matters
Developers with ChatGPT/Codex subscriptions can use npx openai-oauth to access gpt-5.4 and gpt-5.3-codex via a localhost proxy without buying separate API credits — but the project's own disclaimer flags this as a ToS gray area where the free access could be revoked at any cost to the user's ChatGPT account.
Sources Cited
- Hacker News — Show HN: Free OpenAI API Access with ChatGPT Account
Related Coverage
Ask SkimNews