GitHub Copilot vs OpenAI Codex: pricing, features and which to choose

Plans, prices, deployment options, strengths and limits for GitHub Copilot vs OpenAI Codex, taken from each company's pricing page, docs and changelog. Last verified November 2026.

GitHub CopilotOpenAI Codex
GitHub Copilot logo

GitHub Copilot

Coding AI Tools

GitHub Copilot is an AI coding assistant from GitHub for individual developers, students, and organizations. It provides code completion, chat, review, and agent features across supported editors, terminals, and GitHub surfaces. Copilot Free costs $0, while individual paid plans start at $10/month and organization plans start at $19/user/month. Eligible enterprises can also choose a metered Copilot access option.

OpenAI Codex logo

OpenAI Codex

Coding AI Tools

OpenAI Codex is a software engineering agent from OpenAI for developers who want delegated coding work in a terminal, IDE, web workspace, GitHub, or mobile app. Access starts with a limited free offering and ChatGPT plans, with Plus at $20/month. Business and API routes add administration or token billing.

How GitHub Copilot and OpenAI Codex differ

  • GitHub Copilot is GitHub's AI coding assistant, available as an extension in VS Code, Visual Studio, JetBrains, Xcode and other editors, plus a CLI, a desktop app and github.com. It includes inline completions and agents that work with GitHub issues and pull requests.
  • OpenAI Codex is OpenAI's coding agent, included with ChatGPT plans. It runs as an open source CLI, an IDE extension, a web app, in the ChatGPT desktop and mobile apps and in the cloud, and it can review pull requests on GitHub.
  1. 1. Copilot is an assistant with agents; Codex is an agent first

    Copilot covers the full range, from inline completions as you type to chat, agent mode and a cloud agent you can assign GitHub issues to. Codex focuses on delegated tasks: you describe the work, and it edits files, runs tests and returns a diff, locally or in OpenAI's cloud. Codex does not list inline autocomplete as a feature.

  2. 2. Many labs' models versus OpenAI's own

    Copilot paid plans include models from Anthropic, OpenAI, Google, xAI and others in one credit allowance. Codex runs on OpenAI's GPT and Codex models only, and new models often reach Codex in ChatGPT before the API. If you want OpenAI's latest coding models, Codex gets them first; if you want Claude or Gemini too, Copilot covers more.

  3. 3. Copilot comes with GitHub; Codex comes with ChatGPT

    Copilot is billed through GitHub, with plans from $10 a month and organization seats from $19. Codex is billed through ChatGPT, from Plus at $20 a month, and the same subscription covers ChatGPT chat, research and image tools. Codex's cloud tasks and GitHub reviews also need a ChatGPT sign-in, since OpenAI says API key users get no cloud features.

Quick comparison

FeatureGitHub CopilotOpenAI Codex
CategoryCoding AI ToolsCoding AI Tools
Main useAI coding assistantAI coding agent
Pricing modelFree plan + paid tiersFree plan + paid tiers
Free plan Yes Yes
Entry paid plan$10/month (Copilot Pro)$20/month (Plus)
PlatformsIDE, web & CLIWeb, CLI & IDE
Open source No Yes
Self-hosted No No
Public API No Yes
Profile updatedNovember 2026November 2026

Feature comparison

A dash means we could not confirm the feature from public documentation.

Editing and agents

FeatureGitHub CopilotOpenAI Codex
Inline autocompleteSuggests code as you type, including multi-line and next-edit predictions2,000/mo free, paid unlimited–
Agent modePlans and edits across many files and runs terminal commands on its ownAll plans, including FreeYes
Background or cloud agentsRuns tasks on remote machines while you keep working, often ending in a pull requestPro and upCodex Cloud, Plus and up
Scheduled or triggered agentsRuns reusable agent tasks on a schedule or from eventsYes–
AI pull request reviewReviews pull requests and flags bugs and security issuesPro and upGitHub reviews, paid plans
MCP supportConnects to Model Context Protocol servers for extra tools and dataYesYes

Keep in mind: Copilot wins on breadth: it has inline completions, includes agent mode on its Free plan and puts its cloud agent and code review in the $10 Pro plan. Codex's cloud tasks start on ChatGPT Plus and are not included with Free or Go.

Models

FeatureGitHub CopilotOpenAI Codex
Models from several labsLets you pick models from more than one AI lab (OpenAI, Anthropic, Google and others)Pro and up–
First-party coding modelsCoding models built by the vendor or its parent companyMAI-Code-1.1-Flash (Microsoft)GPT and Codex models
Bring your own API keyUse your own model provider key and pay that provider directlyYes, even without a planAPI key, no cloud features

Keep in mind: Copilot wins on model choice across labs. Codex wins if you want OpenAI's newest Codex models as early as possible, since OpenAI says API key users get new models later.

Platform

FeatureGitHub CopilotOpenAI Codex
Own AI code editorShips a full editor of its own rather than a pluginNo, extension + desktop app–
Works in other IDEsRuns inside third-party editors such as VS Code, JetBrains or XcodeVS Code, JetBrains, Xcode, etcVS Code, JetBrains, Xcode
Terminal agent (CLI)Coding agent you can run from the command line and in scripts or CIAll plans, including FreeOpen source CLI
Git hosting and pull requestsHosts repositories and pull requests in the same productBuilt into GitHub–

Keep in mind: Both cover the terminal and the major IDEs, including VS Code, JetBrains and Xcode. The Codex CLI is open source, and Codex also runs in the ChatGPT mobile app.

Privacy and admin

FeatureGitHub CopilotOpenAI Codex
No-training settingA setting that keeps your code out of model trainingOpt out on individual plansOpt-out on Plus and Pro
SSOSAML or OIDC single sign-on for company accounts–Business and up
Audit logsRecords of user and admin activity for compliancePro+, Business, EnterpriseEnterprise
Exclude files from AIAdmins can block chosen files or paths from being sent to the AIYes–
IP indemnityVendor offers legal cover for copyright claims on generated codeBusiness and Enterprise–
Self-hosted or on-premCan run inside your own infrastructureNo–

Free tier and pricing side by side

GitHub CopilotOpenAI Codex
Free tierYes, 2,000 completions a month plus limited chat and agentsLimited Codex access in ChatGPT Free and Go, without cloud tasks
Entry paid plan$10/month (Pro)$20/month (ChatGPT Plus)
Mid tier$39/month (Pro+)$100/month (ChatGPT Pro 100)
Top individual plan$100/month (Max)$500/month (ChatGPT Pro 500)
Team plan$19/user/month (Business), $39 (Enterprise)From $20/user/month (ChatGPT Business, annual, 2+ seats)
Use with your own API keyYes, bring your own keyYes, per-token billing in the CLI, SDK and IDE, no cloud features

Copilot uses a monthly pool of AI credits, with completions unlimited on paid plans, while Codex usage shares five-hour and weekly limits with ChatGPT plans and can be extended with ChatGPT credits.

Pricing plans

Every public plan, as listed on each company's pricing page.

GitHub Copilot

  • Copilot Free$0/month

    Includes 2,000 code completions monthly, limited AI credits, automatic model selection, limited agents, and limited code review. Third-party agents are excluded.

  • Copilot Student$0/month

    For verified students. Includes unlimited code completions and AI credits, with automatic model selection. Third-party agents are excluded.

  • Copilot Pro$10/month

    Includes 1,500 monthly AI credits, made up of 1,000 base credits and a 500-credit flex allotment. Annual billing is not listed.

  • Copilot Pro+$39/month

    Includes 7,000 monthly AI credits, made up of 3,900 base credits and a 3,100-credit flex allotment. Annual billing is not listed.

  • Copilot Max$100/month

    Includes 20,000 monthly AI credits, made up of 10,000 base credits and a 10,000-credit flex allotment. Annual billing is not listed.

  • Copilot Business$19/user/month

    Billed per granted seat, with 1,900 AI credits per user monthly and centralized organization controls. Additional usage is administrator controlled.

  • Copilot Enterprise$39/user/month

    Billed per granted seat on GitHub Enterprise Cloud, with 3,900 AI credits per user monthly and additional enterprise capabilities.

  • Copilot access$0 to $10/user/month

    For eligible enterprises. GitHub says it matches Copilot Enterprise features and models, with a $0 seat charge for GitHub Enterprise Cloud license holders or $10/user/month as Copilot Standalone. Usage is metered from the first request, with no included AI credits.

OpenAI Codex

  • Free$0/month

    Limited Codex access for a limited time; allowance varies by task complexity.

  • Plus$20/month

    Web, CLI, IDE, iOS, cloud integrations, latest models, and higher usage limits.

  • Pro$100, $200, or $500/month

    Everything in Plus, priority processing, higher usage limits across local and cloud tasks. $500 tier includes Ultrafast mode.

  • Business$20/user/month annual billing (2+ seats)

    Dedicated workspace, larger virtual machines, admin controls, SAML SSO, MFA, and no training on business data by default.

  • EnterpriseCustom

    Enterprise security, SCIM, EKM, analytics, audit logs, retention, and residency controls.

  • API keyUsage based

    CLI, SDK, and IDE access billed by token; cloud integrations are unavailable.

Strengths and limits

GitHub Copilot

  • GitHub context connects assistance with repositories, issues, pull requests, and Actions.
  • GitHub lists support for VS Code, Visual Studio, JetBrains IDEs, Xcode, Neovim, Eclipse, Zed, Raycast, and SQL Server Management Studio, plus the CLI, web, and mobile.
  • Plans cover individual developers, verified students, and managed organizations.
  • Agent features can edit files, run commands, test changes, and create pull requests.
  • Model availability differs by plan, client, feature, provider, and organization policy.
  • Generated output can contain vulnerabilities, outdated APIs, bugs, or license-relevant material.
  • Code review uses AI credits and GitHub Actions minutes.

OpenAI Codex

  • Runs tests and development commands inside its task environment.
  • Works across web, terminal, IDE, GitHub, Slack, and iOS.
  • GPT-5-Codex targets long software engineering tasks.
  • Business plans exclude business data from training by default.
  • Usage allowances vary with task size and execution location.
  • API access and cloud features have different availability.
  • Generated changes still require human review.

When to choose GitHub Copilot vs OpenAI Codex

Choose GitHub Copilot if

  • You want inline completions as well as agents.
  • Your code, issues and pull requests live on GitHub and you want to assign issues to an agent.
  • You want Claude, Gemini and GPT models in one subscription.
  • You need a lower entry price or IP indemnity on Business and Enterprise.
  • You are a verified student and qualify for Copilot Student at no cost.

Choose OpenAI Codex if

  • You already pay for ChatGPT and want a coding agent included.
  • You want OpenAI's newest Codex models as soon as they ship.
  • You prefer handing off whole tasks and reviewing the diff afterward.
  • You want an open source CLI you can inspect and script.
  • You want to start and check tasks from the ChatGPT mobile app.

Recommendations by team type

Students and hobbyists
GitHub Copilot: Copilot Free includes completions and agent mode, and verified students get Copilot Student at no cost.
ChatGPT power users
OpenAI Codex: Codex is included in ChatGPT Plus and Pro, so one subscription covers chat, research and coding.
Companies standardized on GitHub
GitHub Copilot: Copilot Business at $19 per seat ties agents to issues, pull requests, Actions and organization policies already set up in GitHub.
Teams that delegate long tasks
either: Both run cloud agents that return pull requests. Codex Business adds larger cloud machines, and Copilot puts the cloud agent in every paid plan.

Frequently asked questions

Is OpenAI Codex better than GitHub Copilot?

They suit different habits. Codex is the stronger pick if you want to delegate full tasks to OpenAI's coding models and already pay for ChatGPT. Copilot is the stronger pick if you want autocomplete, a choice of labs' models, and agents tied to GitHub issues and pull requests.

Does GitHub Copilot use OpenAI models?

Yes. Copilot includes OpenAI GPT models alongside models from Anthropic, Google, xAI and others, and paid plans draw them from one credit allowance. Codex uses OpenAI models only.

Is Codex free?

OpenAI includes limited Codex access in ChatGPT Free and Go, and describes it as a limited-time offer. Codex Cloud is not included with Free or Go. Full access starts with ChatGPT Plus at $20 a month.

Can Codex review pull requests like Copilot?

Yes. Codex can review pull requests on GitHub when you tag @codex or turn on automatic reviews, and OpenAI says ChatGPT Pro includes ten times the cloud code reviews of Plus. Copilot code review is included in Copilot Pro and up and uses AI credits and GitHub Actions minutes.

Which costs less for a team, Copilot or Codex?

Copilot Business is $19 per user per month. OpenAI lists ChatGPT Business, which includes Codex, from $20 per user per month on annual billing with at least two seats. The ChatGPT seat also covers chat, while Copilot's covers completions and IP indemnity.

Spot something out of date or wrong? We correct comparisons when vendors ship features or change prices, and we welcome corrections from the companies listed here. Tell us what changed.

Related comparisons

Sources