Head to head

Codex vs Claude Code vs GitHub Copilot: the cloud agents of the big platforms

OpenAI, Anthropic and GitHub each sell a coding agent that works in the cloud and is paid for by a subscription many developers already have. On 1 December 2026 Codex cloud tasks come with ChatGPT Plus at $20 a month and share its limit, Claude Code cloud sessions come with Claude Pro at $20 a month and share its limit with no separate machine charge, and Copilot's cloud agent comes with Copilot Pro at $10 a month and counts model use in AI credits and machine time separately. All three open pull requests on GitHub.

Published December 1, 2026. Editorial.

Key takeaways

  • The lowest-priced individual plan with cloud agent work, read on 1 December 2026: Copilot Pro at $10 a month, Claude Pro at $20 billed monthly, and ChatGPT Plus at $20.
  • Codex shares its allowance with ChatGPT, Claude Code shares its limit with all Claude use, and Copilot counts AI credits for models and a GitHub account allowance for machine time.
  • Copilot's agent on GitHub Actions stops after 59 minutes per session and opens one pull request per task; neither OpenAI nor Anthropic documents that particular limit on the pages we read.
  • Codex cloud tasks can use GitHub or GitLab repositories; Claude Code's hosted cloning and pull requests need GitHub; Copilot works only on GitHub.
  • From Copilot Pro+ upward, GitHub lets you hand tasks to Claude and Codex as a preview, so one GitHub plan can try all three.

Three companies that already sell developers a subscription now sell them a cloud agent with it. OpenAI's Codex comes with ChatGPT plans. Anthropic's Claude Code comes with Claude plans. GitHub's Copilot cloud agent comes with Copilot plans. For many teams the question is no longer whether to buy a coding agent, but which of the subscriptions they already pay for should do the work.

This page compares the three from each company's own documentation and pricing pages, read on 1 December 2026. It gives no scores. Detail on each is on our pages for Codex, Claude Code and Copilot's cloud agent.

Side by side

Topic OpenAI Codex Claude Code GitHub Copilot cloud agent
Lowest individual plan with cloud work ChatGPT Plus, $20 a month [1] Claude Pro, $20 a month billed monthly [5] Copilot Pro, $10 a month [7]
Higher individual plans Pro at $100, $200 or $500 [1] Max $100, Ultra $200 [5] Pro+ $39, Max $100 [7]
Business plan $20 per user a month, annual, two or more users [1] Team seats $25 or $125 a month billed monthly [5] Business $19, Enterprise $39 per user a month [7]
How usage is counted Shared with ChatGPT Work [1] Shared with all Claude use; no charge for the cloud machine [3] AI credits for models; separate GitHub allowance for machine time [6][7]
API key only Command line, kit, editor; no cloud features [1] GitHub Action accepts an API key [4] Not applicable
Where cloud work runs OpenAI-managed virtual machines [8] Anthropic-managed machines, or your self-hosted environment [3] GitHub Actions, including your runners, or a cloud sandbox [6]
Git hosts GitHub, GitLab [2] GitHub for hosted cloning and pull requests [3] GitHub only [6]
Documented session cap None found on the pages we read Command and setup timeouts [3] 59 minutes on GitHub Actions [6]

Sources: each company's pricing page and documentation, as cited in each cell.

How each one bills you

The three companies chose three different ways to count, and the choice changes how a team should plan.

OpenAI puts Codex inside ChatGPT's allowance: "ChatGPT Work and Codex share pricing, credits, and usage limits" [1]. A developer who uses ChatGPT heavily for writing and research has less left for coding tasks. Plans can add credits or usage-based billing when the allowance runs out [1].

Anthropic does the same with Claude: a cloud session "counts toward your plan's usage limits alongside the rest of your Claude and Claude Code usage" [3]. It adds one simplification: "there's no separate charge for the cloud VM" [3]. You do not pay for machine minutes, only for the model use inside the plan's limit. Parallel sessions use the limit faster, and Anthropic says so [3].

GitHub splits the two. Model use is counted in GitHub AI Credits, "1 AI credit = $0.01 USD", with 1,500 a month on Pro, 7,000 on Pro+ and 20,000 on Max [7]. Machine time is separate: "cloud and GitHub Actions compute draw on the same monthly GitHub account allowance, separate from AI credits" [6]. That makes Copilot the easiest of the three to measure, because both parts of the cost appear as numbers, and the one with two budgets to watch.

Where the work runs, and who controls the machine

For security teams this is the deciding row.

Copilot offers the most control over the machine, through GitHub Actions: custom compute, custom network settings, setup steps and "self-hosted runners" [6]. A self-hosted runner is a machine your company operates, so the checkout and the commands stay inside your network. The trade is the 59-minute limit per session on Actions [6].

Claude Code runs on Anthropic-managed machines by default, or on "your organization's self-hosted environment when routed there" [3]. On Anthropic's machines, it keeps GitHub credentials out of the machine itself: they "stay encrypted on Anthropic's servers and never enter a session's VM", and a proxy adds them on the server side [3].

Codex cloud tasks run on "OpenAI-managed infrastructure" in "VM-backed sandboxes" [8]. The cloud environment "does not automatically inherit local files, applications, browser sessions, or private-network access" [8], and "Agent internet access is off by default" [2]. For work that must stay on your own machine, OpenAI's answer is the Codex command line tool running locally.

Starting work and reviewing it

All three start from where developers already are, with different centres. Copilot starts from GitHub itself: an issue, the Agents tab, the Copilot panel in a pull request, or Slack and Teams [6]. Claude Code starts from the browser, the mobile app, the desktop app, the terminal with claude --cloud, scheduled tasks, or an @claude comment through the GitHub Action [3][4]. Codex starts from ChatGPT on the web or desktop by choosing Cloud, from mobile, or from the command line, and integrates with GitHub, Slack and Linear [1][2].

All three return work for review. Codex lets you inspect changes and "commit or open a pull request when you're ready" [2]. Claude Code's GitHub Action pushes commits in response to @claude [4], and cloud sessions push branches through the GitHub proxy [3]. Copilot opens one pull request per task and, with Agent Merge, can work on failed workflows and merge conflicts until a person approves [6]. GitHub's own warning applies to all three: review and test the output before using it in production [6].

What each agent reads from your repository

All three agents do better when the repository tells them how the project works, and each reads its own files.

Agent Instruction file or setting Network default for cloud work
Codex AGENTS.md, which the agent uses "to find project-specific lint and test commands" [2] "Agent internet access is off by default"; setup scripts run with internet [2]
Claude Code CLAUDE.md or AGENTS.md files for persistent instructions [9] The default environment starts with Limited network access [3]
Copilot Custom instructions, custom agents and skills, MCP servers, hooks [6] Cloud sandboxes honor repository and organization firewall allowlists [6]

Sources: each company's documentation, as cited.

The overlap is useful. An AGENTS.md file with the build, lint and test commands, the folders the agent must not change and the team's rules for pull requests serves Codex and Claude Code directly, and the same content can be copied into Copilot's custom instructions. Write it once before the trial, and every agent starts from the same knowledge. That also makes the comparison fairer, because a difference in results then points to the agent itself.

The network defaults point the same way. Each company starts its cloud agent with limited outside access and asks you to open what the task needs. Keep it that way in a trial: list the package registries and services the tests need, allow those, and nothing else.

A month of use, three ways

Picture one developer who runs about five agent tasks a day and also uses the same company's chat assistant for other work. The arithmetic differs by agent, and these are the questions to answer with your own numbers, since none of the three publishes a fixed cost per task.

On Codex, the tasks and the ChatGPT chats come out of one allowance [1], so the question is whether the plan covers both; heavy chat users may need Pro or extra credits.

On Claude Code, the cloud sessions and the interactive Claude use share one limit, with no machine charge [3], so the question is the same, and the answer depends on how long each session runs.

On Copilot, the model part comes out of AI credits and the machine part out of the GitHub account allowance [6][7], so there are two questions: whether 1,500, 7,000 or 20,000 credits cover the month's sessions, and whether the account's compute allowance covers the minutes. Measure both in the first week of a trial.

Admin controls for a company

For a company, the controls an administrator gets matter as much as the agent.

OpenAI lists, on its Enterprise and Edu plans, SCIM user provisioning, enterprise key management, role-based access control, audit logs and usage monitoring through its Compliance API, and data retention and residency controls [1]. Business plans add single sign-on and a dedicated workspace with admin controls [1].

Anthropic's cloud documentation describes organization settings on Team and Enterprise, such as a Quick setup switch that an Owner turns on to simplify members' GitHub and environment setup, and notes that custom roles can govern who has cloud access [3].

GitHub describes "a single organization and enterprise policy for Copilot in the cloud", and says repository owners and administrators can turn Copilot off for particular repositories even when the plan allows it [6]. Check each list against your company's rules before the trial starts.

One plan that can try all three

GitHub's plans page lists "Delegate tasks to third-party coding agents like Claude by Anthropic and OpenAI Codex (Preview)" on Copilot Pro+ and higher [7]. For a team already on GitHub, that is a practical way to compare: the same issue, three agents, the same review screen. It is a preview, so expect changes, and check whether each third-party agent needs its own account and plan to run.

How to choose

Start from the subscription your team already pays for, then test against the other two.

  • A company standardized on ChatGPT Business or Enterprise gets Codex under the admin controls and data terms it already approved.
  • A team on Claude plans gets cloud sessions with no machine charge, plus a GitHub Action it configures itself, which can use the same subscription through a token [4].
  • A team that lives on GitHub, and especially one that needs agents on its own runners, gets the tightest fit from Copilot, inside a one-hour limit per task.

Whichever you start with, measure all three the same way on the same tickets: tasks finished, pull requests merged without changes, reviewer minutes, and the bill. The two-week pilot plan gives the steps, and our chat plan or API key page explains the billing choices in more depth.

Best for

  • Codex: companies already on ChatGPT Business or Enterprise.
  • Claude Code: teams on Claude plans who want background sessions with no separate machine charge, and a GitHub Action they control.
  • Copilot: teams whose work and pipelines live on GitHub, especially those that need the agent on their own runners.

Avoid if

  • Codex: if you need cloud tasks billed only through an API key.
  • Claude Code: if your repositories are not on GitHub and you cannot use a self-hosted environment.
  • Copilot: if your tasks often run longer than an hour on GitHub Actions or your code is not on GitHub.

Check before you decide

  • How much of each plan's shared limit your developers already use for chat and interactive coding.
  • Which repositories each agent's app is installed on, and with which permissions.
  • The current price and allowance pages for all three on the day you buy.

Common questions

Which of the three is cheapest for one developer?

By list price on 1 December 2026, Copilot Pro at $10 a month is the cheapest plan with cloud agent work, then Claude Pro at $20 billed monthly and ChatGPT Plus at $20. The real cost depends on how fast each plan's limit runs out for your tasks, so compare tasks completed per month on each.

How does each count usage?

OpenAI says ChatGPT Work and Codex share pricing, credits and usage limits. Anthropic says a cloud session counts toward your plan's usage limits with no separate charge for the cloud machine. GitHub counts model use in AI credits worth one cent each and draws machine time from a separate GitHub account allowance.

Which one runs inside my own network?

Copilot can, through GitHub Actions with self-hosted runners that your company operates. Claude Code can route cloud sessions to your organization's self-hosted environment. Codex cloud tasks run on OpenAI-managed infrastructure in the documents we read, and its local command line tool is the option for work on your own machine.

Which git hosts do they support?

Codex cloud can check out repositories from a connected GitHub or GitLab account. Claude Code's hosted cloning and pull request creation require GitHub, with GitHub Enterprise Server on Team and Enterprise and other hosts through bundles or self-hosted environments. Copilot works only with repositories hosted on GitHub.

Can I run all three from one place?

Partly. GitHub's plans page lists delegating tasks to third-party agents such as Claude by Anthropic and OpenAI Codex as a preview on Copilot Pro+ and higher. That lets a team compare the three on the same issues inside GitHub, though each third-party agent may need its own account.

Can I use an API key instead of a subscription?

For Codex, an API key works in the command line, software kit and editor but gives no cloud features. Claude Code's GitHub Action accepts an API key or a subscription token. Copilot's agent uses a GitHub plan. So API-key-only teams lean toward Codex in their own CI or the Claude Code GitHub Action.

Which one has the strictest time limit?

GitHub documents a maximum of 59 minutes for each Copilot session on GitHub Actions, which cannot be extended. Anthropic documents timeouts for commands and setup scripts, and OpenAI documents per-task workspaces that keep running while your computer sleeps. Neither of those pages names a session cap like GitHub's.

How do they keep credentials safe?

Anthropic says GitHub credentials stay encrypted on its servers and never enter the cloud machine; a proxy adds them on the server side. OpenAI says cloud tasks do not inherit local files or network access and that agent internet access is off by default. GitHub's Actions runs use your repository's permissions and rules.

Which one is best?

The documents point to fit: each agent works best on the platform a team already pays for and stores its code on. To decide between them, run the same ten to twenty tickets through each, with the same reviewers, and compare tasks finished, pull requests merged without changes, reviewer minutes and the bill.

Do any of them train on business data?

OpenAI says Business, Enterprise and Edu workspace data is not used to train its models by default. GitHub and Anthropic each publish data terms for their business plans. Ask all three for the training and retention terms of the exact plan you will buy, in writing, before you connect private repositories.

Start a project