AIAny
AI API2026
Icon for item

openai-oauth

Exposes a ChatGPT account as an OpenAI-compatible local API and SDK set, enabling chat, streaming, and image-generation calls via a dev proxy or "Sign in with ChatGPT". Includes a CLI and TypeScript/React adapters; unofficial and uses user ChatGPT credentials.

Introduction

Most server-side and SDK workflows assume you have paid API keys. This project flips that assumption: it makes a developer's ChatGPT session usable like an OpenAI API endpoint so you can run model calls (including GPT-5.6 variants and GPT Image 2) from local tooling or hosted apps without purchasing separate API credits.

What Sets It Apart
  • Account-to-API bridge: runs a local dev proxy that exposes OpenAI-compatible endpoints (/v1/chat/completions, /v1/responses, /v1/models, images) so existing clients and tooling can talk to ChatGPT sessions with minimal changes — so you can reuse existing SDKs and workflows.
  • Multiple credential flows: supports local CLI credentials for personal development and a React "Sign in with ChatGPT" flow for web apps — so hosted apps can request user-bound sessions instead of storing API keys.
  • Client adapters & SDKs: provides TypeScript/React adapters and an OpenAI-compatible options adapter so you can plug into Vercel AI SDK, the OpenAI JS client, or any client that accepts a baseURL and fetch — reducing integration work.
  • Image & streaming support: exposes image generation/edit endpoints and streaming responses through the proxy, enabling multimodal dev scenarios without the official API key.
Who It's For and Trade-offs

Great fit if you want to prototype or build integrations that rely on a ChatGPT account instead of paid API usage, or if you need a quick compatibility layer to reuse OpenAI-oriented code with ChatGPT sessions. It is also useful for local automation, demos, and apps that let users bring their own ChatGPT accounts.

Look elsewhere if you need an official, supported commercial integration (this project is unofficial), if you plan to pool or share credentials across users, or if you require guarantees about rate limits, uptime, or compliance with OpenAI contractual terms. Security and correct handling of user credentials are the developer's responsibility.

Information

  • Websitegithub.com
  • AuthorsEvanZhouDev
  • Published date2026/03/15

Categories

More Items

GitHub
AI Infra2026

Provides a unified tool catalog and proxy for AI agents: one team token lets agents call thousands of third-party endpoints (and your team’s keys) with per-call pricing. Injects credentials server‑side so agents never hold provider secrets, and exposes CLI/skill recipes and OAuth tools for team-wide use.

GitHub
AI API2026

Captures an app's network traffic, extracts its authentication/session bundle, and auto-generates an editable Python client to call the app's API. Supports mitmproxy, cURL and HAR capture backends and provides Session helpers for replay and token refresh.

GitHub
AI API2025

Gateway that pools multiple AI subscription accounts and issues platform API keys while handling authentication, token-level billing, load balancing, rate limits, and per-user/account concurrency—enables shared subscriptions for Claude, OpenAI, Gemini and Grok.