Use your ChatGPT subscription for a coding agent
Updated
You can use your ChatGPT subscription for a coding agent by signing in with your ChatGPT account. Contenox uses your plan’s Codex allowance. You need that account, a browser and permission to sign in with a one-time device code. Codex is included across ChatGPT plans, including Free and Go. Usage limits vary by plan. OpenAI’s plan guide
Contenox#
1. Enable device code sign-in in ChatGPT#
Personal account. Sign in to ChatGPT in your browser. Open Settings and search for device. On the Security and login page, look under App security and turn on Enable device code sign-in for Codex, Excel, PowerPoint, and Word. Open ChatGPT security settings
Work or school account. Select your organization’s ChatGPT workspace. Ask its administrator to permit local Codex use for your role and enable device code sign-in in Workspace settings → Permissions & roles. The workspace controls whether members can use this method. OpenAI’s sign-in guide · Workspace permissions
Can’t use ChatGPT sign-in? On the Contenox welcome screen, select Use another provider. Under More providers → OpenAI, you can use an OpenAI API key with its own API billing. Other options include Anthropic, Gemini, and local models through Ollama. OpenAI key setup · Choose another provider · Set up Ollama
2. Confirm the code in your browser#
- Open Contenox and select Sign in with ChatGPT. If you have used Contenox before, open Backends → Providers → ChatGPT subscription (Codex) first.
- Contenox displays a one-time code and opens the sign-in page in your browser. If the browser stays closed, select the address under Sign in in your browser in Contenox.
- Sign in on the OpenAI page with the account and workspace from step 1. Copy the code from Enter this code in Contenox, enter it in the browser and confirm access. Use the code from the sign-in you just started.
- Return to Contenox. Waiting for confirmation… changes to Selecting a default model… on first run. If a Default model list appears, choose a chat model and select Save and continue.
- In Contenox Scratchpad, check the Model chip and give the agent a task, such as drafting a short checklist for a website launch. The Quickstart shows how to save the result to a file and start work in your own project.

If sign-in gets stuck#
| What you see | What to do |
|---|---|
| The browser opens but has no field for the code | Check the account and workspace shown in the browser. Enable device code sign-in as described above. Return to Contenox, cancel the pending attempt and start a fresh one. |
| The browser rejects the code or Contenox shows Sign-in expired | Start sign-in again and use the newly displayed code on the page Contenox opens. |
| Contenox keeps waiting | Finish the approval in the browser, then return to the same Contenox window. Opening the sign-in page alone leaves the request pending. |
| No chat models found yet | Select Check again. If the list stays empty, verify that the signed-in account can use Codex in that workspace. A workspace administrator can check access for your role. |
| A model reports a usage limit | Check the reset time for your plan or select a different connected provider in Model. Codex usage and limits |
There are no API key, URL or billing fields in this sign-in flow. For an OpenAI developer-platform key, choose the separate OpenAI provider. OpenAI API key setup
Use your ChatGPT subscription with your agent#
| Agent | Supported? | How | Note |
|---|---|---|---|
| Claude Code | No | Claude Code runs Claude models only, through Anthropic, Amazon Bedrock, Google Cloud’s Agent Platform (Vertex AI) or Microsoft Foundry. Anthropic doesn’t support routing it to other models. | |
| Codex | Yes | On desktop choose Continue to sign in. In the IDE choose Sign in with ChatGPT. In a terminal run codex login. |
For a local folder, choose Codex in the app or open the extension in your editor. Cloud tasks require ChatGPT and workspace access. |
| OpenCode | ChatGPT Plus or Pro | /connect → OpenAI → Sign in with ChatGPT |
Finish sign-in in the browser. |
| Contenox | Yes | Backends → Providers → ChatGPT subscription (Codex) | One-time code in your browser. |
Which ChatGPT plans include it?#
Contenox uses Codex Local access, which OpenAI includes across ChatGPT plans, including Free and Go. Model choices and usage limits vary by plan. A managed workspace can restrict local access or device-code sign-in. Codex Cloud has separate eligibility and is optional for this setup. OpenAI’s plan and workspace guide
OpenAI manages API keys and API billing separately from ChatGPT sign-in. OpenAI billing guide
Codex on desktop and in your editor#
To use OpenAI’s desktop app, open ChatGPT, choose Continue to sign in, then open a project folder and choose Codex → New chat. In the Codex IDE extension, select Sign in with ChatGPT and complete the browser step. OpenAI desktop quickstart · OpenAI sign-in guide
Codex CLI#
Install it. Windows PowerShell:
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
macOS or Linux:
curl -fsSL https://chatgpt.com/codex/install.sh | sh
npm install -g @openai/codex works on all three. Then sign in:
codex login
Finish the sign-in in your browser and run codex in your project folder. On a machine
without a browser, or over SSH, use codex login --device-auth and enter the one-time
code on the page it shows.
Codex keeps the sign-in in ~/.codex/auth.json or in your system’s credential store.
Treat that file like a password.
OpenCode#
In the OpenCode terminal, enter /connect, choose OpenAI → Sign in with ChatGPT, and complete the browser sign-in. Select a model with /models. OpenCode documents this route for ChatGPT Plus and Pro. Its own subscription, OpenCode Go, is a separate option. OpenCode install options · OpenCode’s ChatGPT instructions
Does it share limits with ChatGPT?#
Yes. Codex and ChatGPT Work share usage limits. The windows and model allowances depend on your plan. Check the remaining allowance and reset time for your account in the usage dashboard. OpenAI plan details
What happens when I hit the limit?#
OpenAI lets a task that is already running finish its current turn, within fair use. After that, new requests fail until the limit resets. Your options:
- Wait for the reset.
- Buy credits, if your plan allows it. OpenAI offers this on Plus and Pro, and on Business, Edu and Enterprise workspaces with flexible pricing.
- Switch to an API key for the rest of the day, billed per token: OpenAI API key, or another provider such as Anthropic.
Limits differ by plan and change over time. Check the Codex pricing page for the current rules.
Subscription or API key?#
A subscription is the simpler choice if you already pay for ChatGPT and work alone. An API key fits better when you need predictable access during long sessions, share an account across a team, or run agents unattended, because you pay for what you use instead of waiting for a reset. The trade-offs for Codex in detail: Codex API key vs subscription.
Related#
Codex API key vs subscription: which one to use whenCodex API key vs ChatGPT subscription — which account pays?See which account pays when you sign in to Codex with ChatGPT or an API key, which subscription credits apply, and where to check usage before you switch.
AI coding subscription comparison: ChatGPT next to Claude, Copilot and othersAI coding subscription comparison: which plan works whereAI coding subscription comparison: ChatGPT, Claude, Copilot, Cursor, Google, GLM, Kimi, MiniMax and OpenCode Go, the tools each plan works in and how limits work.
Codex on Windows: install and sandbox on WindowsCodex for Windows: install, desktop app and sandbox setupCodex for Windows, step by step: the desktop app, the CLI from PowerShell, npm or WSL, signing in, the Windows sandbox and its errors, and fixes for crashes.
OpenAI API keyOpenAI API coding agent: key, model and billing | ContenoxSet up an OpenAI API coding agent in Contenox Harness, the ChatGPT desktop app, a Codex editor extension or the CLI. Check billing, model access and common errors.
AI coding costs: subscription, API key or local modelAI coding costs: why agents burn tokens and how to cut itAI coding costs explained: why one agent session can send hundreds of millions of tokens, what sessions really cost, and the habits that cut the bill.
How to choose a model for codingHow to compare AI coding models on your own codebaseCompare AI coding models on five tasks from your repository. Score each run on passing tests, unnecessary edits, elapsed time and cost per finished task.
Anthropic (Claude)Claude coding agent on Windows: API key setup | ContenoxRun a Claude coding agent on Windows: Claude Code with a subscription or API key, OpenCode with a key, why Codex can't, plus models, billing and key errors.
Run models locallyLocal AI coding agent: Claude Code, Codex, OpenCode setupRun a local AI coding agent on your own hardware: Ollama or vLLM, setup for Claude Code, Codex CLI and OpenCode, memory needs, and models that call tools.
GitHub Copilot subscriptionUse your GitHub Copilot subscription in other coding agentsUse your GitHub Copilot subscription outside VS Code: sign-in steps for OpenCode, Codex and Contenox Harness, which plans you need, and how AI Credits are billed.
GeminiGemini coding agent: API key, free tier and setup | ContenoxSet up a Gemini coding agent: AI Studio key in OpenCode, Antigravity CLI or Contenox Harness, why Claude Code and Codex can't, free-tier data use, models and 429 fixes.
DeepSeekDeepSeek coding agent: API key, models and setup | ContenoxSet up a DeepSeek coding agent: DeepSeek Harness, or your API key in OpenCode, Codex CLI, Claude Code or Contenox Harness, plus models, errors and where your code goes.
