Versus · AI tools

OpenAI Codex vs GitHub Copilot

We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.

Verdict Our pick

The bar guide has a call.

The vectaai bar guide pointing at the verdict
  • GitHub Copilot if you want an AI that lives inside your editor and your GitHub repos at the lowest price: Pro is $10 a month with unlimited completions, $15 of AI credits and the coding agent, and it lets you pick models from OpenAI, Anthropic and Google.
  • OpenAI Codex if you want an agent that takes whole tasks off your plate in the terminal, IDE or cloud: it comes with ChatGPT Plus at $20 a month, and Pro plans from $100 remove the five-hour limit.

Compared here

  • 01OpenAI Codex
  • 02GitHub Copilot

Short answer

Pick GitHub Copilot if you want an AI that lives inside your editor and your GitHub repos at the lowest price: Pro is $10 a month with unlimited completions, $15 of AI credits and the coding agent, and it lets you pick models from OpenAI, Anthropic and Google. Pick OpenAI Codex if you want an agent that takes whole tasks off your plate in the terminal, IDE or cloud: it comes with ChatGPT Plus at $20 a month, and Pro plans from $100 remove the five-hour limit.

You can also have both in one place: GitHub's docs say the Codex agent can run on GitHub, powered by an existing Copilot subscription, in public preview. Below: prices side by side, how each meters usage, what each is best at, and who should pick which.

Try GitHub CopilotTry ChatGPT with Codex

Sponsored links. We may earn a commission; it never changes the pick.

At a glance

Quoted from github.com/features/copilot/plans and OpenAI's Codex pricing page (learn.chatgpt.com/docs/pricing), read 3 December 2026. USD.
OpenAI CodexGitHub Copilot
Free tierChatGPT Free: quick coding tasks, subject to rolloutFree: 2,000 completions a month, limited chat and agent use
Cheapest paidChatGPT Go $8/mo: lightweight coding tasksPro $10/mo: unlimited completions, $15 AI credits
Main tierChatGPT Plus $20/mo: web, CLI, IDE extension, iOSPro+ $39/mo: $70 AI credits
Heavy tierPro from $100/mo ($100, $200 or $500), no five-hour limit nowMax $100/mo: $200 AI credits
TeamsBusiness $20/user/mo yearly, $25 monthlyBusiness and Enterprise: contact sales on the plans page
How usage is meteredLocal messages per five hours, plus weekly limitsAI credits, 1 credit = $0.01
Where it runsCLI, IDE extension, cloud, ChatGPT desktop app, iOSEditor plugins, GitHub.com, coding agent, mobile
ModelsOpenAI GPT models onlyOpenAI, Anthropic and Google models listed
Code reviewAutomatic code review on GitHub (Plus)Built into GitHub pull requests

Money talk first. As far as our research shows, neither OpenAI nor GitHub runs a public affiliate program for these products. The buttons go through our /go/ links anyway, so if that ever changes the link stays the same. Nobody paid for this verdict, and display ads may appear around the page.

Second: we did not run a benchmark or a month of real work in each tool. Every price and limit here is quoted from GitHub's Copilot plans page, OpenAI's Codex pricing page and GitHub's docs on third-party agents, all read on 3 December 2026. AI pricing moves monthly, so check before you pay.

Codex vs Copilot in one minute

The names cause half the confusion, so let us clear that up.

  • GitHub Copilot is GitHub's AI coding assistant. It started as autocomplete in your editor and grew into chat, code review and a coding agent that picks up GitHub issues and opens pull requests. It lets you choose models from OpenAI, Anthropic and Google.
  • OpenAI Codex is OpenAI's coding agent. You give it a task, it reads the code, edits files, runs commands and returns a change. It runs in a terminal (Codex CLI), in your IDE, in the cloud and in the ChatGPT apps. It uses OpenAI's own models.

The old "Codex" was the OpenAI model behind the first Copilot in 2021. Today's Codex is a separate product. So "Codex vs Copilot" now means: an OpenAI agent you delegate to, versus a GitHub assistant that lives where your code lives.

Price: what each plan costs

GitHub Copilot

  • Free: $0. 2,000 completions a month and "limited chat and agent usage". No coding agent.
  • Pro: $10 a user a month. Unlimited completions, $15 of AI credits a month ($10 base plus $5 flex), coding agent included.
  • Pro+: $39 a month. $70 of AI credits ($39 base plus $31 flex).
  • Max: $100 a month. $200 of AI credits ($100 base plus $100 flex).
  • Business and Enterprise: no prices on the plans page; contact sales.

Extra usage is sold at $0.01 per AI credit, so a $10 top-up buys 1,000 credits. The plans page lists the same model list on every plan, including GPT-5.5, Claude Opus 5.5 and Gemini 4 models.

OpenAI Codex (through ChatGPT plans)

  • Free: quick coding tasks, subject to rollout.
  • Go: $8 a month. Lightweight coding tasks.
  • Plus: $20 a month. Codex on the web, CLI, IDE extension and iOS; you can add ChatGPT credits.
  • Pro: from $100 a month, with $100, $200 and $500 plans; the page says Pro currently has no five-hour limit.
  • Business: $20 a user a month billed yearly for 2+ users, $25 billed monthly.
  • Enterprise and Edu: contact sales.
  • API key: billed at normal API rates, separate from ChatGPT plans, and without cloud features like GitHub review.

Side by side for one developer

BudgetCopilot gets youCodex gets you
$02,000 completions, a little chatQuick tasks on ChatGPT Free
About $10Pro: unlimited completions, $15 credits, agentGo at $8: lightweight tasks
About $20 to $40Pro+ at $39: $70 creditsPlus at $20: full Codex surfaces plus ChatGPT
$100Max: $200 creditsPro $100 tier: no five-hour limit currently

The cheapest useful setup for most people is Copilot Pro at $10. The best value if you also want a general chatbot is ChatGPT Plus at $20, because Codex comes inside it.

How usage is metered

This is where the two really differ, and where people get surprised.

Copilot meters in AI credits. Each plan includes a dollar amount of credits, and agent sessions and chat burn credits based on the model and tokens used. Completions are unlimited on paid plans. When credits run out, you buy more at a cent each, if your plan allows it.

Codex meters in messages per five hours. OpenAI publishes ranges per model for Plus and Business. For example, GPT-6.2 Sol is listed at 17 to 180 local messages per five hours and GPT-6 Luna at 350 to 3,000. Cloud tasks share the same allowance and may use more of it. Weekly limits may also apply. OpenAI says these are estimates, not fixed numbers.

In plain words: Copilot feels like a prepaid card, Codex feels like a gym that closes for a while when you have trained too hard. Heavy Codex users go to Pro; heavy Copilot users buy credits or move to Max.

Where each one works

Copilot is everywhere GitHub is: plugins for popular editors, chat in the editor and on GitHub.com, code review on pull requests, and a coding agent you start by assigning an issue. If your team lives on GitHub, it slots in with no new tools.

Codex runs in the Codex CLI in your terminal, an IDE extension, the Codex cloud, the ChatGPT desktop app and on iOS from Plus up. Plus includes automatic code review as a cloud integration with GitHub.

And both at once: GitHub's docs say the OpenAI Codex coding agent can run on GitHub, powered by your existing Copilot subscription, in public preview. You can start it from a repo's Agents tab, by assigning an issue, by mentioning the agent on a pull request, from GitHub Mobile or from VS Code. Each session consumes AI credits plus GitHub Actions minutes. The "Sign in with Copilot" option in the VS Code Codex extension is limited to Copilot Pro+ and Max.

What each is best at

Copilot is best at

  • Typing help. Unlimited completions on paid plans is the thing you feel every minute.
  • Model choice. You can switch between OpenAI, Anthropic and Google models from one subscription.
  • GitHub-native work. Issues to pull requests, review comments, all without leaving GitHub.
  • Teams and admins. Business and Enterprise plans let admins set usage limits and policies.

Codex is best at

  • Delegating whole tasks. "Add tests for this module", "fix this bug and run the suite": Codex is built to go off and do it.
  • Terminal-first developers. The CLI is a first-class surface, not an afterthought.
  • People already on ChatGPT Plus. No extra bill to start.
  • Long sessions on Pro. The page says Pro currently has no five-hour limit.

We have not measured which writes better code. Model quality changes month to month, and both now offer frontier models. Our best AI model for coding page tracks that question separately.

Privacy and code ownership

Both are commercial products with enterprise plans, admin controls and policies on how your code is used. The plan pages we read do not go deep on data use, so read the business terms of whichever you pick before you point it at a private company repo. Business and Enterprise tiers exist on both sides largely for this reason.

Who should pick GitHub Copilot

  • You want the cheapest serious coding AI: Pro at $10.
  • You mostly want smart autocomplete and chat in your editor.
  • Your team lives on GitHub and wants an agent that works from issues.
  • You want to switch between OpenAI, Anthropic and Google models.

Who should pick OpenAI Codex

  • You already pay for ChatGPT Plus.
  • You prefer to hand off whole tasks and review the result.
  • You work in the terminal and want a strong CLI agent.
  • You are a heavy user who will pay for Pro to avoid the five-hour wall.

Who should look elsewhere

The verdict

GitHub Copilot is the better buy for most developers: $10 a month for unlimited completions, an agent and a choice of models, right inside GitHub. OpenAI Codex is the better agent for people who want to delegate whole tasks, and it is effectively free to try if you already have ChatGPT Plus. Many people will end up with Copilot in the editor and Codex for the big jobs, and GitHub now lets the two meet in one place.

Questions people ask

Is Codex better than Copilot?

They are good at different jobs. Codex is built to take a task, work through the repo and hand back a finished change, in the terminal, IDE or cloud. Copilot is strongest as an always-on helper in your editor plus an agent that works from GitHub issues. For hands-off tasks, Codex. For daily typing help on a budget, Copilot.

Is Codex included with ChatGPT Plus?

Yes. OpenAI's Codex pricing page lists Plus at $20 a month with Codex on the web, CLI, IDE extension and iOS. Usage is limited per five-hour window and may also have weekly limits. Free and Go plans get lighter Codex access. Pro plans from $100 a month currently have no five-hour limit, per the same page.

Can I use Codex inside GitHub Copilot?

Yes, in public preview. GitHub's docs say the OpenAI Codex coding agent can be powered by your existing Copilot subscription. Each session uses AI credits based on model and tokens, plus GitHub Actions minutes. The 'Sign in with Copilot' option in the VS Code Codex extension is only for Copilot Pro+ and Max subscribers, per the docs.

Which is cheaper, Codex or Copilot?

Copilot Pro at $10 a month is the cheapest paid way in, with unlimited completions and $15 of AI credits. Codex needs ChatGPT Plus at $20 for its full set of surfaces, but that also buys you ChatGPT itself. If you already pay for ChatGPT Plus, Codex costs you nothing extra to try.

Does GitHub Copilot use Codex models?

Copilot lists models from several companies on its plans page, including OpenAI's GPT-5.5, Anthropic's Claude Opus 5.5 and Google Gemini 4 models. The original 2021 Copilot ran on an OpenAI model called Codex, which is where a lot of the confusion comes from. Today's Codex is OpenAI's agent product, not just a model.

Should I pay for both Codex and Copilot?

Only if you use both every day. Plenty of developers keep Copilot Pro at $10 for editor completions and use Codex through a ChatGPT Plus plan they already have. If money is tight, pick one: Copilot for in-editor help, Codex for delegating tasks. Try the free tiers of both for a week first.

Sources

Every fact above comes from these pages. Prices change, so each one carries the date we read it.

  1. GitHub Copilot plans and pricing, checked 3 Dec 2026
  2. OpenAI Codex pricing, checked 3 Dec 2026
  3. GitHub Docs: About third-party coding agents, checked 3 Dec 2026
  4. ChatGPT pricing, checked 3 Dec 2026