Skip to main content

Codex API Key vs Subscription: How to Use a Key, What It Costs

Create a key at platform.openai.com/api-keys, run codex login --with-api-key, and Codex bills at API rates, about what credits cost. As of Nov 30, 2026.

LaoZhang AI TeamPublishedUpdated 20 min read
On this page
Route choice board for Codex comparing API key sign-in, ChatGPT subscription sign-in, and mixed setup checks

Codex is not a separate subscription. Sign in with ChatGPT and Codex runs on the plan you already have, now including Free and Go. Sign in with an OpenAI API key and every token is billed to your OpenAI Platform account at standard API rates, with no plan involved. Per token the two cost about the same: at OpenAI's own figure of 2,500 credits = $100, Codex credit rates equal the API list prices, apart from a cache-write charge that only the API bills.

To use a key, create one on OpenAI's API keys page, then run printenv OPENAI_API_KEY | codex login --with-api-key in the CLI, or choose "Use API Key" in the IDE extension or "Sign in another way" in the ChatGPT desktop app. If Codex is already signed in with ChatGPT, run codex logout first, because setting OPENAI_API_KEY alone doesn't switch it.

What actually differs is included usage, features, and models. A plan gives you a block of Codex use before you pay anything extra, while a key bills from the first token. Codex Cloud, GitHub code review, Slack, and Work Cloud's local computer access need ChatGPT sign-in. And since August 31, 2026, GPT-5.4 and GPT-5.4 mini are gone from Codex with ChatGPT sign-in but still work with a key. Prices, limits, and model lists below are current as of November 30, 2026, from OpenAI's Codex pricing page, Codex authentication docs, and help center.

How to Use an OpenAI API Key in Codex: CLI, IDE, Desktop App

OpenAI's Codex authentication docs say an API key "supports local Codex workflows" in the CLI, the IDE extension, and the ChatGPT desktop app; the cloud features named above stay on ChatGPT sign-in. Codex then bills your Platform account at standard API rates "instead of included ChatGPT plan credits." Setup takes three steps:

  1. Create a secret key on OpenAI's API keys page and save it right away, because the full key is shown only once (OpenAI help article on finding your API key).
  2. Check that the Platform account has prepaid balance in its billing settings, since every Codex token bills there.
  3. Sign Codex in with the key: in the CLI, pipe it to the login command below; on other surfaces, use the table.

On macOS or Linux:

bash
export OPENAI_API_KEY="your-api-key"
printenv OPENAI_API_KEY | codex login --with-api-key

In Windows PowerShell:

powershell
$env:OPENAI_API_KEY = "your-api-key"
$env:OPENAI_API_KEY | codex login --with-api-key
Codex surfaceWhere the key goes
CLI on macOS, Linux, or WindowsThe login commands above
IDE extension (VS Code and other editors)Sign out, then choose "Use API Key"
ChatGPT desktop app"Sign in another way" on the sign-in screen
codex exec, codex review, CI jobsCODEX_API_KEY set inline for the run, as in the scripts section below

Switching from ChatGPT sign-in to an API key

Exporting OPENAI_API_KEY doesn't move an existing ChatGPT sign-in onto the key. Codex keeps using the login it saved until you log out, so switching takes three commands, and the same three replace one key with another:

bash
codex logout
printenv OPENAI_API_KEY | codex login --with-api-key
codex login status

Scripts and CI: Set CODEX_API_KEY for One codex exec Run

For non-interactive runs, OpenAI's Codex non-interactive mode docs use a separate variable, CODEX_API_KEY, set inline on the command. It works with codex exec, codex review, the TypeScript SDK, and codex exec-server --remote:

bash
CODEX_API_KEY="your-api-key" codex exec --json "summarize the failing tests"

In CI, pass the key from the secret store only to the step that runs Codex. OpenAI's docs warn against setting OPENAI_API_KEY or CODEX_API_KEY as job-level variables in pipelines that run repository code, since anything that job executes could read them.

VS Code Extension Keeps Asking You to Sign In With ChatGPT

If the extension keeps showing "Sign in with ChatGPT" after you've set a key, it is still holding a ChatGPT login or the editor can't see the variable. Clear the login with the switching steps above, quit the editor, export OPENAI_API_KEY in a terminal, and start the editor from that terminal with code ., the order that worked in an OpenAI Developer Community thread on using the VS Code extension with an API key; "Use API Key" then appears on the sign-in screen. For a team whose machines should only ever bill a key, set forced_login_method = "api" in Codex's config.toml; per OpenAI's authentication docs, Codex then logs out and exits when the saved sign-in doesn't match.

Codex API Key vs Subscription in One Table

ChatGPT sign-in is the subscription side: plan usage first, then ChatGPT credits. API key sign-in is the pay-per-token side, billed through the OpenAI Platform.

ChatGPT sign-in (subscription)API key sign-in
Who bills youYour ChatGPT plan, then ChatGPT creditsYour OpenAI Platform prepaid balance, at standard API rates
Plans that include CodexFree, Go, Plus, Pro, Business, Enterprise, EduNo ChatGPT plan needed
Where Codex runsFree and Go: desktop app (rolling out). Plus: web, CLI, IDE extension, iOSChatGPT desktop app, CLI, IDE extension, SDK
Codex CloudEligible Plus, all Pro tiers, Business, Enterprise, Healthcare, Education. Not Free or GoNot available
GitHub code review, SlackIncluded with cloud accessNot included
PluginsAvailable according to your planSupported OpenAI-curated plugins; some that need OAuth are unavailable
ModelsPlan-dependent: GPT-6.2 Sol, GPT-6.2 Astra, GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Sol, GPT-6 Astra, GPT-6 Luna, GPT-5.6 models. Free and Go: GPT-6 LunaWhatever API models your key can call, including GPT-5.4 and GPT-5.4 mini
Limits5-hour and weekly windows. Pro has no 5-hour windowAPI rate limits for your usage tier, plus your balance
When usage runs outWait, buy a reset (Plus, Pro), use credits, or upgradeAdd funds to the balance
Where to see usageCodex Settings → Usage, the usage dashboard, /status in the CLIOpenAI Platform usage page

Neither side pays for the other. OpenAI's ChatGPT Plus help page lists "API usage is separate and billed independently," even Pro's bundled API credits exclude Codex on a key, and Codex credits don't pay for API calls.

Codex sign-in and billing choices labelled as ChatGPT plan usage, OpenAI Platform API billing, and eligible Codex credits.

Check Your Current Codex Route Before Spending

Check which sign-in Codex is using before you upgrade, buy credits, or start a long run. The CLI and the IDE extension share one cached login, so a key you entered in one place also applies in the other. In the CLI, ask directly:

bash
codex login status

On November 30, 2026, codex-cli 0.166.0 on a Mac signed in through ChatGPT printed Logged in using ChatGPT; only that case was run, and OpenAI's Codex authentication docs describe the command as reporting whichever method is active. In the ChatGPT desktop app, the account menu under your profile picture shows which account or key is in use. To go back to your plan, run codex logout and sign in with ChatGPT.

Credentials are saved in ~/.codex/auth.json or your operating system's credential store. The cli_auth_credentials_store setting picks which (file, keyring, auto, or ephemeral). For setup on servers without a browser, see Codex Headless Login: Device Code, SSH Tunnel, or auth.json.

Then check the meter that belongs to that sign-in. With ChatGPT sign-in, open Codex Settings → Usage or the usage dashboard, or type /status in an active CLI session; that shows plan limits and credits. With an API key, open the usage page of your OpenAI Platform account, where Codex usage is billed like any other API usage.

For token counts, context use, and API spend in more depth, see How to Check Codex Token Usage: /status, /usage, Context, and API Spend. The /goal command is unrelated to billing: it keeps one objective attached to a chat across turns, explained in Codex /goal: What It Does, How to Use It, and Why It May Be Missing. If a key gets rejected after switching, the error text usually tells you whether it's your key or an outage: Codex 401 Incorrect API Key: Outage, Stale Token, or Your Key?

What API Key Sign-In Changes

API key sign-in moves Codex onto your OpenAI Platform account. The session no longer belongs to a ChatGPT plan, and four things change.

Billing. Usage is billed "at standard API rates" from a prepaid balance. The smallest top-up is $5, and your usage tier (Build, Launch, Grow) sets your monthly spending ceiling and rate limits. The API Free tier's $100 a month is a usage ceiling, not money to spend; OpenAI API Free Tier: What's Actually Free and What Still Bills explains what that tier does and doesn't cover.

Features. OpenAI's pricing page lists the API key option as "Codex in the CLI, SDK, or IDE extension" with "No cloud-based features (GitHub code review, Slack, etc.)." The card leaves out the ChatGPT desktop app, which the authentication docs list as accepting a key, and Work Cloud's local computer access isn't enabled by API keys or Codex access tokens. Supported OpenAI-curated plugins work with a key, except some that need OAuth, and features that depend on ChatGPT workspace access are limited.

Models. Model availability follows the API models your key can call. That matters now: OpenAI's Codex help article says GPT-5.4 and GPT-5.4 mini stopped being available in Codex with ChatGPT sign-in on August 31, 2026, and that "this change does not affect the OpenAI API or using Codex with your own API key." If a workflow depends on GPT-5.4, an API key is the only way to keep it in Codex.

Data settings. API-key usage follows your API organization's retention and data-sharing settings, not your ChatGPT account's.

An API key suits CI, scripts, SDK work, shared machines, and teams that want spend tracked per project. It's a poor fit if you pay for Plus or Pro and wanted Codex Cloud or your included usage; the key moves you off both. Organization and project scoping is covered in OpenAI API Key and Organization ID: What You Actually Need in 2026. To point Codex at a different base URL or provider, see Codex Custom Provider Setup: API Key, Base URL, and Auth, and for the editor, Codex in VS Code: API Keys, Custom Models, and Your First Edit.

What Subscription and Credits Cover

ChatGPT sign-in draws on your plan's included Codex usage first, then on credits if you have them. Which plan you're on decides where Codex runs and how far it goes.

Plan (USD)Codex accessCodex CloudIncluded usage
Free, $0GPT-6 Luna at Standard speed in the desktop app, subject to rolloutNoNo published numbers
Go, $8/monthSame as FreeNoNo published numbers
Plus, $20/monthWeb, CLI, IDE extension, iOS; GPT-6.1 Sol and GPT-6 LunaYes (eligible accounts)Local messages per 5 hours: GPT-6.2 Astra 6–50, GPT-6.2 Sol 17–180, GPT-6 Astra 5–45, GPT-6.1 Sol 15–160, GPT-6.1 Terra 35–285, GPT-6 Sol 15–150, GPT-6 Luna 350–3,000
Pro, $100, $200, or $500/monthAll Pro tiers. Ultrafast on Pro $500 (pricing card); on Pro $200 only for GPT-6.2 Sol in Codex (Pro tiers help page)Yes, all tiersNo 5-hour limit; weekly limits may apply
Business, $25/user/month monthly or $20 billed annually (2+ users)Workspace seatsYesStandard Business uses the same 5-hour ranges as Plus

OpenAI calls the Plus ranges "not fixed message limits": a long task with a big context uses more of the window than a short one. For Plus in depth, see ChatGPT Plus Codex Usage Limits and Credits: Is Codex Included?. For Pro, ChatGPT Pro Codex Limit: Check Usage and Reset (No 5-Hour Window) covers the weekly check. OpenAI has canceled the Pro $200 allowance cut it announced on September 29: lower Pro $200 allowances were doubled to match the higher one, and Pro $100 and Pro $500 now include twice their previous Work and Codex allowance, with no numbers published (OpenAI help article on ChatGPT Pro tiers).

These allowances are about to stop being Codex-only: OpenAI's help article on ChatGPT and Codex usage limits, updated November 27, 2026, says Plus, Pro, and Business usage will be shared across ChatGPT and Codex starting in December, except Instant chat. It gives no start date or sizes, and some users may see it early; API-key usage stays outside.

Credits follow these rules, from OpenAI's help article on credits for personal plans:

  • Plan usage is spent first, then credits.
  • You buy them in ChatGPT under Settings → Usage, or in the Codex app under Usage & Billing.
  • "These credits are not API credits." They don't pay for API-key usage, and API balance doesn't pay for them.
  • They stay valid for 12 months, except credits bought in Japan after November 13, 2026, which expire 180 days after purchase. They are non-refundable except where the law or an approved exception requires, and can't be transferred.
  • Plus and Pro can buy them. On Free and Go, purchase is open only to "a limited group."
  • Amounts, prices, and payment methods "can vary by account, region, and plan."

Verified university students in the United States and Canada can get $100 in Codex credits, shown as 2,500 credits, on a Free, Go, Plus, or Pro account. They expire 12 months after the grant (Codex credits for students).

Codex Credits vs API Prices: Same Rate per Token at $0.04 a Credit

OpenAI states that the student grant's 2,500 credits equal $100, or $0.04 per credit, and the pricing page's USD usage-based billing for GPT-6.2 Sol ($2, $0.10, and $10 per 1M tokens) is its 50 / 2.5 / 250 credit rate at that price. At that rate, the Codex credit card converts to exactly the OpenAI API list prices for the same models.

ModelCodex credits per 1M tokens (input / cached / output)At $0.04 per creditOpenAI API list price per 1M tokens
GPT-6.2 Astra200 / 10 / 1,000$8 / $0.40 / $40$8 / $0.40 / $40
GPT-6 Astra250 / 25 / 1,250$10 / $1 / $50$10 / $1 / $50
GPT-6.2 Sol50 / 2.5 / 250$2 / $0.10 / $10$2 / $0.10 / $10
GPT-6.1 Sol50 / 2.5 / 250$2 / $0.10 / $10$2 / $0.10 / $10
GPT-6.1 Terra25 / 1.25 / 125$1 / $0.05 / $5$1 / $0.05 / $5
GPT-6 Sol50 / 5 / 250$2 / $0.20 / $10$2 / $0.20 / $10
GPT-6 Luna2.5 / 0.25 / 12.5$0.10 / $0.01 / $0.50$0.10 / $0.01 / $0.50
GPT-5.6 Sol100 / 10 / 500$4 / $0.40 / $20$4 / $0.40 / $20

Cache writes are the one exception. On GPT-5.6 and later, the API bills tokens written to the cache at a write rate instead of the input rate, $2.50 per 1M for GPT-6.1 Sol and GPT-6.2 Sol at the default 30 minutes ($5.00 at 12 hours), per OpenAI's prompt caching guide. Codex credits have no separate cache-write charge.

One limit on this comparison: OpenAI doesn't publish what a purchased credit costs ("Credit purchase prices and applicable discounts depend on your plan or agreement"), so check the price at checkout before assuming $0.04.

What it means in practice: once your plan's included usage is gone, credits and an API key cost roughly the same per token. A plan only saves money through the usage it includes, and OpenAI publishes that as message ranges, not tokens. A Reddit r/codex answer from around May 2026 estimated that the $20 to $25 Plus and Business plans give "about the equivalent of $12 of tokens per 5 hour window." That is a community estimate from before the GPT-6 rate card, not an OpenAI figure.

Worked example: one Codex session priced both ways

Assume a GPT-6.1 Sol session that sends 3M input tokens in total, of which 2.7M are cache hits, and returns 60K output tokens. The 90% cache share is an assumption; replace all three numbers with your own.

  • Uncached input: 0.3M × $2 = $0.60
  • Cached input: 2.7M × $0.10 = $0.27
  • Output: 0.06M × $10 = $0.60
  • Total on Codex credits: $1.47, or 36.75 credits at $0.04 each

On an API key, if all 0.3M uncached tokens are written to the 30-minute cache, that line becomes 0.3M × $2.50 = $0.75, and the total becomes $0.75 + $0.27 + $0.60 = $1.62, so an API-key session lands between $1.47 and $1.62.

Twenty such sessions a month come to $29.40 on credits (20 × $1.47) and up to $32.40 on an API key (20 × $1.62), more than Plus costs either way. If those sessions fit inside Plus's 5-hour and weekly windows, Plus is the cheaper way to pay. If you run three a month ($4.41 to $4.86), an API key costs less than any paid plan, though Free or Go may cover light use on GPT-6 Luna (neither publishes limit numbers).

The same session on GPT-5.4 through an API key, assuming each request stays under 272K tokens of context: 0.3M × $2.50 + 2.7M × $0.25 + 0.06M × $15 = $0.75 + $0.675 + $0.90 = $2.325. GPT-5.4 has no cache-write rate, but it still costs more per session than GPT-6.1 Sol, so keep it only if you need its specific behavior. To price a full day of runs before you start, use Codex CLI Token Cost: Estimate Daily API Spend Before a Long Run. If the wider question is ChatGPT versus the API outside Codex, see ChatGPT Plus vs API: Is the API Cheaper Than $20 a Month?

Codex Plan Limit Reached: Wait, Reset, Buy Credits, or Use an API Key

When a plan limit stops Codex, you have five options, roughly from cheapest to most expensive.

  1. Wait for the window to reset. The 5-hour and weekly windows reset on their own. Codex Weekly Limit Reset: Find Your Time or Reset Now shows where to find your reset time.
  2. Use a banked or promotional reset. Some Plus and Pro promotions include one-time resets. OpenAI support can't reset limits for you.
  3. Buy an instant reset (Plus and Pro only). Eligible personal accounts can pay for an immediate reset of both the 5-hour and weekly windows from the desktop app's Usage settings or the weekly-limit banner. The price appears at checkout. The reset pulls your next week's allowance forward, can't be banked, and is generally non-refundable. It isn't offered on Free, Go, Business, Enterprise, or Edu (OpenAI help article on paid resets).
  4. Spend credits. Codex keeps going on the same ChatGPT sign-in, priced per token as in the table above.
  5. Switch to an API key, or upgrade. An API key keeps local work going at API rates but drops cloud features. Moving from Plus to Pro removes the 5-hour window.

Which Route Should Your Workflow Use?

Decide by the job, not by which credentials you happen to have.

Interactive coding on a paid plan

Use ChatGPT sign-in. Plus, Pro, and Business include usage you've already paid for, and credits continue at API-equivalent rates when it runs out. Switching to an API key here means paying per token for work your plan would have covered.

Free or Go accounts

Use ChatGPT sign-in for light work. Codex is included on both plans with GPT-6 Luna in the desktop app, but without Codex Cloud, without published limit numbers, and with credit purchases open only to a limited group. If you need the CLI or a larger model and use Codex only a few times a month, an API key may cost less than upgrading to Plus. Run the session math above with your own token counts.

Codex Cloud, GitHub code review, and Slack

Use ChatGPT sign-in on Plus or higher. None of these work with an API key, and Free and Go don't include Codex Cloud.

CI, SDKs, scripts, and shared machines

Use an API key. Automation needs credentials that don't depend on one person's ChatGPT session, and Platform projects give you per-project spend and limits. Store the key in your CI secret store and pass it to Codex as in the scripts section above.

Heavy solo use

Compare a Pro tier with your monthly API-rate spend. Pro removes the 5-hour window, though weekly limits may still apply. If credits cost you about $0.04 each, Pro $100 only beats Plus plus credits once your usage beyond what Plus includes passes about $80 a month at API rates ($100 − $20). Below that, Plus with occasional credits or a paid reset costs less.

Workflows that depend on GPT-5.4 or another API-only model

Use an API key. Since August 31, 2026, ChatGPT-sign-in Codex replaces GPT-5.4 with GPT-5.6 Terra and GPT-5.4 mini with GPT-5.6 Luna. GPT-5.5 followed on October 14, 2026; the API keeps it.

Teams and Business workspaces

Decide who owns the spend first. A personal plan, a Business workspace, and a Platform project are billed and administered separately. Business seats include Codex and Codex Cloud. The credit rules above come from OpenAI's article for personal plans; Business, Enterprise, and Edu workspaces follow their own workspace terms, so check with your admin before anyone buys credits.

Avoid Surprise API Spend

Codex billing checklist for choosing the right meter before creating an API key

Most surprise bills come from Codex running on an API key when you thought it was on your plan, or the other way round. Before a long run:

  • Confirm the sign-in and its meter. A key login stays active until codex logout; plan usage is in Codex Settings → Usage, key spend on the Platform usage page.
  • Match features to the sign-in. If the job needs Codex Cloud or code review, stay on ChatGPT. If it runs unattended, use a key in a project with a budget you've set.
  • Price the run first. Multiply your expected input, cached input, and output tokens by the per-1M rates in the table above.
  • Re-check dated facts. Plan limits, credit rules, and model lists changed several times in 2026. The dates in this guide mark when each one applied.

FAQ

Does Codex use an API key or a subscription?

Either. Sign in with ChatGPT to use your plan's included usage and credits, or sign in with an OpenAI API key to pay per token through the OpenAI Platform. Codex holds one sign-in at a time, so you're on one or the other.

Can I buy a Codex API key or get one free?

There is no separate Codex key to buy. Codex uses an ordinary OpenAI API key from OpenAI's API keys page, and you pay only for the tokens it uses, at standard API rates; the free route is the Free ChatGPT plan described in the next answer, not a key.

Does Codex work without a subscription?

Yes, in two ways. Codex is included on the Free ChatGPT plan with GPT-6 Luna in the desktop app (subject to rollout, no Codex Cloud). Or skip ChatGPT entirely and sign in with an API key, paying per token from a prepaid balance.

Is Codex a different subscription from ChatGPT?

No. Codex is included in ChatGPT plans from Free to Pro and in Business, Enterprise, and Edu. There is no separate Codex plan to buy. Credits are an optional add-on when your plan's usage runs out.

Do I need a Codex API key if I already have ChatGPT Plus or Pro?

No, not for ordinary Codex use. ChatGPT sign-in gives you included usage, Codex Cloud, and credits. You need a key only for automation, for API-only models such as GPT-5.4, or when you want per-project API billing.

Does a ChatGPT subscription pay for OpenAI API calls?

Only partly, and never for Codex on a key. As of November 30, 2026, Pro $100, $200, and $500 include that amount in monthly API credits and Business seats a smaller amount, but OpenAI's guide to API credits included with ChatGPT plans says "Codex usage through API keys is not supported by this benefit." Free, Go, and Plus include no API usage.

Are Codex credits the same as an API key balance?

No. Codex credits are ChatGPT credits that extend Codex beyond plan limits, and OpenAI says directly that they are not API credits, so credits and your API balance never pay for each other.

How many Codex credits come with ChatGPT Plus?

Plus includes usage, not a credit balance. OpenAI lists it as local messages per 5 hours, for example 15–160 for GPT-6.1 Sol. Credits are bought separately in Settings → Usage. Verified students in the U.S. and Canada can get a one-time grant of 2,500 credits.

Which route should I use for CI or SDK automation?

An API key, passed as CODEX_API_KEY to the step that runs Codex as in the scripts section above. It doesn't depend on a personal ChatGPT session and bills to a Platform project you can budget.

Which route should I use for Codex cloud?

ChatGPT sign-in on Plus or higher; the eligible plans are in the plan table above, and an API key can't use Codex Cloud.

Where should I check usage before spending more?

Use the meter that matches your sign-in: Codex Settings → Usage or /status for ChatGPT, the OpenAI Platform usage page for an API key. If the numbers look wrong, confirm the active sign-in first, as in the check section above.

How do I cancel a Codex subscription?

Cancel the ChatGPT plan itself, since Codex has no separate subscription. For plans paid on the web, go to Settings → Subscription → Manage → Cancel in ChatGPT on the web; the mobile app doesn't cancel web subscriptions. API-key usage has no subscription: it stops when you stop using or revoke the key.

Why does Codex say "payment was not approved"?

Codex plans and credits are paid through ChatGPT checkout, so this is a ChatGPT payment decline, not an API key problem. OpenAI notes that purchase amounts and payment methods vary by account, region, and plan. ChatGPT Payment Declined: Payment Was Not Approved, Card Declined walks through the checks before you try again.

Sources16

External pages this guide links to, in the order they appear. Last updated Nov 30, 2026.

  1. 1.OpenAI's API keys pageplatform.openai.com/api-keys
  2. 2.Codex pricing pagelearn.chatgpt.com/docs/pricing
  3. 3.Codex authentication docslearn.chatgpt.com/docs/auth
  4. 4.OpenAI help article on finding your API keyhelp.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key
  5. 5.Codex non-interactive mode docslearn.chatgpt.com/docs/non-interactive-mode
  6. 6.OpenAI Developer Community thread on using the VS Code extension with an API keycommunity.openai.com/t/vscode-extension-with-api-key/1355263
  7. 7.ChatGPT Plus help pagehelp.openai.com/en/articles/6950777
  8. 8.Codex help articlehelp.openai.com/en/articles/11369540
  9. 9.OpenAI help article on ChatGPT Pro tiershelp.openai.com/en/articles/9793128-about-chatgpt-pro-tiers
  10. 10.help article on ChatGPT and Codex usage limitshelp.openai.com/en/articles/20001625-understanding-chatgpt-and-codex-usage-limits
  11. 11.help article on credits for personal planshelp.openai.com/en/articles/12642688
  12. 12.Codex credits for studentshelp.openai.com/en/articles/20001147
  13. 13.OpenAI API list pricesdevelopers.openai.com/api/docs/pricing
  14. 14.prompt caching guidedevelopers.openai.com/api/docs/guides/prompt-caching
  15. 15.OpenAI help article on paid resetshelp.openai.com/en/articles/20001507
  16. 16.guide to API credits included with ChatGPT plansdevelopers.openai.com/api/docs/guides/chatgpt-api-credits
Codex route selector for OpenAI API-key sign-in, an OpenAI base URL override, and a separate custom provider
Developer Tools & Agents

Codex Custom Provider Setup: API Key, Base URL, and Auth

Choose the credential and endpoint owner before editing TOML. The right route may be API-key sign-in, openai_base_url, or a separate provider—and each failure has a different owner.

7 min