OpenAI Lets Open-Source Apps Run on ChatGPT Subscription Limits

Until now, users of a local open-source tool had to create an API key and pay for tokens separately. Now OpenAI allows signing in with ChatGPT and spending the quota of a regular subscription. This works only for open-source and local programs, CLI tools, and wrappers around Codex app-server. Paid cloud services and image generators are excluded. Authors of local agents no longer need to ask people to pay twice.

AI-processed from TG: @cgevent (Метаверсище и ИИще); edited by Hamidun News
OpenAI Lets Open-Source Apps Run on ChatGPT Subscription Limits
Source: TG: @cgevent (Метаверсище и ИИще). Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceTG: @cgevent (Метаверсище и ИИще) ↗
Editor-in-Chief
Key metric #1OAuth 2.0 sign-in with PKCE and a persistent host ID for each machine
Key metric #2Requests go to the public /v1/responses endpoint with store: false and stream: true
Key metric #3The app has no access to a user's ChatGPT chat history

Anyone who has built an open-source agent or a command-line utility on OpenAI models knows the frustrating moment: to use the program, a person has to create an API account, top up the balance, and paste a key into the config. Meanwhile, they may already have a paid ChatGPT subscription whose limits sit unused. OpenAI has published documentation for Sign in with ChatGPT (the ChatGPT plan usage section) that closes this gap for one class of programs.

What exactly is allowed

Third-party local applications, CLI tools, and wrappers around Codex app-server can now use the quota of an active ChatGPT subscription instead of a separate API key. The user clicks "sign in," authorizes in the browser, and the app's requests are charged to their plan.

The restrictions are strict. The feature works only for open-source and local tools. If you are building a paid cloud service, you cannot use this mechanism. It is also not available for image generators. In essence, OpenAI is opening the door for enthusiasts and the community, but not for commercial resellers of subscriptions.

Privacy is addressed separately: permission to bill through a subscription does not give the app access to the user's ChatGPT chat history or account context. The app gets the right to spend limits, but not to read conversations.

How authorization works

The scheme is built on standard components. The app dynamically registers an OAuth client, uses PKCE (protection against interception of the authorization code), and receives the response through a loopback address in the browser on the same machine.

There is one non-standard detail. Before the first sign-in, the app creates and stores a persistent host identifier, ext_agent_host_id. A JWK thumbprint URI per RFC 9278 is recommended, while urn:uuid and did:key are also accepted. The issued client_id is tied to a specific user and workspace. One registration can work on several machines, for example a laptop and a self-hosted VM, and OpenAI tracks each host separately by its ID.

In practice, this means the identifier should be generated once and stored, not recreated on every launch. Otherwise, each restart will look like a new machine.

Requests and models

Inference goes through the public endpoint POST https://api.openai.com/v1/responses. Two parameters are mandatory: store: false (OpenAI does not keep the dialogue on its side) and stream: true (the response arrives as a stream). Using the unofficial backend-api is prohibited, meaning the familiar trick of imitating the ChatGPT web client is explicitly not endorsed by the documentation.

The app requests the list of available models via /v1/models. The documentation examples feature gpt-6.1-sol, while, according to the author of the original post, developers are already connecting GPT-6.1 Sol and GPT-6.2 Sol to local pipelines. Which models a given user sees depends on their plan, so hardcoding a model name in the code is not advisable: it is more reliable to read the catalog at startup.

What this changes for developers

For authors of local agents, the benefit is obvious: the barrier to entry drops. There is no need to explain to a newcomer what an API key and per-token billing are, and no need to make them pay twice. For the user, it is the same ChatGPT plan they have already bought.

There are also risks. Subscription limits are shared: an active agent in a loop will quickly consume the quota a person uses for regular chat. Apps should display usage and handle limit errors carefully. In addition, dependence on OpenAI deepens: code that is portable across providers will now need a separate sign-in method.

It is also worth remembering the boundary of applicability. If your project starts turning into paid hosting, you can no longer use other people's subscriptions, and you will have to return to API keys. The information in this article is based on OpenAI's documentation and its retelling in a Telegram channel; details such as exact limits and the list of models by tier are best verified against the official pages.

Story

Key Questions Answered

What exactly is allowed?

Third-party local applications, CLI tools, and wrappers around Codex app-server can now use the quota of an active ChatGPT subscription instead of a separate API key. The user clicks "sign in," authorizes in the browser, and the app's requests are charged to their plan. The restrictions are strict. The feature works only for open-source and local tools. If you are building a paid cloud service, you cannot use this mechanism. It is also not available for image generators.

How authorization works?

The scheme is built on standard components. The app dynamically registers an OAuth client, uses PKCE (protection against interception of the authorization code), and receives the response through a loopback address in the browser on the same machine. There is one non-standard detail. Before the first sign-in, the app creates and stores a persistent host identifier, ext_agent_host_id. A JWK thumbprint URI per RFC 9278 is recommended, while urn:uuid and did:key are also accepted.

What are the key details on Requests and models?

Inference goes through the public endpoint POST https://api.openai.com/v1/responses. Two parameters are mandatory: store: false (OpenAI does not keep the dialogue on its side) and stream: true (the response arrives as a stream). Using the unofficial backend-api is prohibited, meaning the familiar trick of imitating the ChatGPT web client is explicitly not endorsed by the documentation. The app requests the list of available models via /v1/models.

ZK
Zhemal Khamidun — CPO at Alpina Digital, product manager of AlpinaGPT. Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Hands-On AI Engineering · Hamidun Academy

Build & Ship Production AI Agents Without Boilerplate Code

Start your free 72-hour trial at Hamidun Academy (academy.hamidun.com) — interactive lessons on Claude Code & Cursor, live Tech Radar, and production agent templates.

Start 72h Free Trial →Vibe-Coding Intensive
What do you think?
Loading comments…