Agentcode

Codex VSCode extension pricing: which plan pays for Codex in VS Code, and what each one costs

Aug 23, 2026 · 8 min read · By Marcus Lee, Engineering

Agent Run

Pick a task

Plan

  • planning

Files changed

Test run

0 failed

Pull request

Open

You review and merge. Agentcode never merges on its own.

The Codex extension itself is free. What you pay for is the account you sign it in with, and there are six of those: ChatGPT Free at $0, Go at $8, Plus at $20, Business at $20 a user annually or $25 monthly, an OpenAI API key billed per token, or, for the VS Code extension specifically, a GitHub Copilot Pro+ seat at $39. That last route is the one almost nobody knows about, and it comes straight from GitHub's own billing table.

Every figure here was read from OpenAI's Codex documentation and GitHub's Copilot documentation in August 2026. Both vendors changed their billing model in the first half of the year, so a lot of what is written about this is quoting units that no longer exist.

The six ways to pay for Codex in VS Code

The extension is a free download. Signing in is where the money is, and the routes are not equivalent: two of them cost nothing, one of them has no ceiling, and one of them is a Copilot subscription rather than a ChatGPT one.

How you sign inCost per monthWhat you getWhat you give up
ChatGPT Free$0Codex for quick coding tasks, enough to decide whether you like itOpenAI scopes it to short tasks, and image generation is not available on Free
ChatGPT Go$8Codex for what OpenAI calls "lightweight coding tasks"The smallest allowance of any paid route
ChatGPT Plus$20The full product: extension, CLI, web, iOS, cloud tasks, GitHub code review, Slack. 25 to 200 GPT-5.6 Terra messages per five hour windowNothing much, this is the default answer for one developer
ChatGPT Business$20 per user annually, $25 monthlyEverything in Plus plus SAML SSO, MFA, larger cloud machines, and no training on your business data by defaultTwo user minimum, and the same per-seat usage window as Plus
GitHub Copilot Pro+$39The Codex VS Code extension billed against your Copilot AI credits, plus GPT-5.4 nano which is exclusive to that extensionThe extension only. Not Codex cloud, not the CLI, and it is still in preview
OpenAI API keyToken rates, no ceilingExtension, CLI and SDK on a plain key. OpenAI recommends it for "automation in shared environments like CI"No cloud features at all: no GitHub code review, no Slack integration

Two rows are worth slowing down on. The Copilot Pro+ row exists because GitHub's billing documentation lists the "OpenAI Codex Visual Studio Code integration" in its table of Copilot features, and states that while in preview each prompt to Codex uses one premium request multiplied by the model multiplier rates. Footnote three on GitHub's plans page adds the gate: GPT-5.4 nano "is currently only available in the Codex Visual Studio Code extension (Copilot Pro+ only)". So if you already hold a Pro+ seat, you can evaluate Codex in your editor this week without buying a ChatGPT plan. If you want to see how the two products compare once you are paying for both, we put them side by side on Codex vs Copilot.

The API key row matters for a different reason: it is the only route with no seat attached. That makes it the right answer for a build pipeline and the wrong answer for a developer, because it strips out every cloud feature. You cannot review pull requests with it.

Codex VSCode extension vs CLI: which should you install?

Install both. They are not competing products and they do not bill differently, they just suit different moments in a task.

The extension wins when the context is already on your screen. OpenAI's pitch for it is specific: reference open files, selected code and recent chats from the composer, then read the summary and a focused diff without leaving the editor. If you are debugging something you are looking at, restating the problem to a terminal is wasted typing.

The CLI wins for anything scripted, anything long, and anything you want to run over SSH. It is also the only one of the two that runs on an API key in CI. One genuinely useful habit from OpenAI's own quickstart applies to both: create Git checkpoints before and after a task so you can revert cleanly. An agent that edits ten files is much easier to trust when undoing it is one command.

Whichever you use, the meter is the same. Local messages and cloud chats share a single rolling five hour window on every ChatGPT plan, and OpenAI notes that additional weekly limits may apply. Three long cloud tasks in the morning can leave you rate limited in your editor after lunch, which is the single most common surprise on these plans.

Codex VSCode extension not working: check these three things first

The most common cause is not a bug. It is that you are looking for the wrong extension name. OpenAI publishes it on the Visual Studio Marketplace under the identifier openai.chatgpt, not under "Codex". Searching the marketplace for "Codex" turns up a long list of unrelated third-party extensions, several of which are wrappers, which is how people end up installing something that was never OpenAI's.

Second, the sidebar may simply be hidden. OpenAI's instruction is to choose the Codex icon, and if it is not visible, open the Command Palette and run Codex: Open Codex Sidebar. That one command resolves a good share of "installed but nothing happens" reports.

Third, check that your editor is actually one of the ones this extension targets. This is where most of the confusion lives, so it is worth a table.

EditorHow Codex gets in
VS Code and VS Code InsidersThe extension, marketplace identifier openai.chatgpt
CursorThe same extension, installed from the same identifier
WindsurfThe same extension again
XcodeNot this extension. Open Apple's coding assistant, start a chat, and choose Codex as the agent
JetBrains IDEsNot this extension. Open AI Chat and select Codex

The row that trips teams up is Xcode and JetBrains: OpenAI states plainly that those two "provide their own integrations", so hunting for a VSIX to sideload into IntelliJ is a dead end. The Cursor row is the happier surprise, and we go deeper on that combination in whether you can use Codex in Cursor.

What Codex in VS Code actually costs per month

On a ChatGPT plan, nothing beyond the subscription, until you hit the window. That is the part worth understanding before you pick a tier, because the limit is a rate rather than a budget. OpenAI publishes it per model, per five hours: on Plus that is 10 to 100 GPT-5.6 Sol messages, 25 to 200 on Terra, or 250 to 2,000 on Luna. Pro at $100 multiplies those by five and Pro at $200 multiplies them by twenty.

The ranges are wide because a one line fix and a cross-file refactor both count as one message. OpenAI is direct about why it will not narrow them: "Model choice, context, reasoning, tool use, retrieval, and caching all affect usage, so prompt length alone isn't a reliable estimate." What it does publish is an average, and it is a useful anchor: GPT-5.6 usage averages 5 to 30 credits a message.

Three levers actually change your monthly consumption, and all three are in OpenAI's own guidance. Switch to Terra or Luna for routine work instead of running everything on Sol. Keep AGENTS.md small, nesting it per directory rather than shipping one enormous file into every prompt. And disable MCP servers you are not using, because each one adds context to every message you send. That last one catches people who installed six integrations in an enthusiastic afternoon.

On a Copilot Pro+ seat the arithmetic is different in kind, not degree. There you are spending AI credits, which have a published price of $0.01 each past your allowance, and Pro+ includes 3,900 base credits plus a 3,100 flex allotment. So the extension draws from the same pot as your Copilot chat and your cloud agent sessions, and when the pot runs dry you keep working and the bill grows rather than stopping. We break that mechanism down in what GitHub AI credits are, and the full plan grid sits on GitHub Copilot pricing.

Codex VSCode extension vs app: do you need both?

No, and they are billed as one thing. The ChatGPT desktop app handles local chats and is available on every plan including an API key. The extension is the same product with your editor's context wired in. They draw from the same allowance and the same five hour window, so running both costs you nothing extra beyond the messages you actually send.

The one thing neither of them does is autocomplete. Codex has no inline completion product at all, which is the cleanest functional split between it and Copilot: GitHub's completions are unlimited and never billed in credits on any paid plan. If ghost text as you type is the feature you actually want every day, Codex is not the purchase, whatever its agent is like.

So which one should you buy?

If you are one developer evaluating Codex, start on Free, then go to Plus at $20 when the window starts biting. Skip Go unless $12 a month genuinely matters, because the allowance is small enough that you will spend the difference in frustration. If you already pay for Copilot Pro+, install the Codex extension on the seat you have and decide later.

If you are buying for a team, the Business plan at $20 a user is the only route that gives you SSO and the data handling commitments, but be clear with yourself that it buys governance and larger cloud machines rather than throughput: the per-seat window is identical to a $20 Plus seat. And check the billing cadence, because $20 is the annual commitment price and month to month is $25.

If what you want is a bill that does not move, neither of these is that, and it is worth saying so plainly. This is the same trade every team now makes when it decides whether to hand a repeatable job to an agent that runs business tasks end to end or to keep paying a person to do it faster: a metered tool is cheap right up until the month somebody leans on it. Our own product takes the other side of that bet deliberately. Agentcode connects to a GitHub or GitLab repository, takes a task, edits the code, runs your tests and opens a pull request for a human to read, for a flat $29 a month with no credit balance and no five hour window. It never merges on its own.

Either way, the extension is free and the evaluation is cheap. Install openai.chatgpt, spend a fortnight on it, and read your usage dashboard before you commit to a tier. If you are still weighing the two big vendors against each other, Codex vs Copilot lays out both meters, both price ladders and what a team of ten pays on each, and how to budget for AI coding tools covers the wider problem of forecasting any of this.

Try the demo

Watch the agent plan, edit, run tests, and open a pull request you review and merge.

No card to start · Review-first: the agent never merges