GuidesHosting choices

Codex vs GitHub Copilot: plans, models, CLIs and GitHub agents

Codex vs GitHub Copilot: ChatGPT plans against Copilot's AI Credits, which OpenAI models each Copilot plan has, the Codex agent on GitHub, and both CLIs.

November 30, 2026The Everpod team
The short answer

Codex is OpenAI’s coding agent: a terminal program (codex, open source), an extension for VS Code and its forks, the Codex view of the ChatGPT desktop app, and cloud tasks. It runs OpenAI’s models on a ChatGPT plan (Plus at $20 a month is the cheapest whose pricing card lists the CLI) or an OpenAI API key. GitHub Copilot is GitHub’s family of products under one subscription: the assistant in your editor, Copilot CLI (copilot), a cloud agent on github.com and pull request reviews, running models from OpenAI, Anthropic, Google and others, on plans from Free to $100 a month for individuals, metered in AI Credits at one cent each. The two overlap: OpenAI’s GPT-6.2 models are in Copilot from Pro+ up, and Copilot can run OpenAI’s Codex agent on github.com, in public preview, on GPT-5.3-Codex or GPT-5.4 nano rather than the GPT-6.2 models Codex itself recommends. Prices and versions as of November 30, 2026.

Three ways Codex and Copilot already meet

Before choosing one, it helps to know how much of each is available through the other, because the search “Codex vs Copilot” often hides the question “can I get Codex with my Copilot plan?” As of November 30, 2026, GitHub’s docs give three partial answers.

OpenAI’s models, inside Copilot’s own agent. GitHub’s supported models page lists eleven OpenAI models, all generally available, from GPT-5.3-Codex to GPT-6.2 Astra and GPT-6.2 Sol. Which of them you can pick depends on the plan, per the models table on the plans page: Pro includes GPT-5.3-Codex, GPT-5.6 Luna, GPT-6 Luna and GPT-6.1 Terra; Pro+ and Max include all eleven; Business and Enterprise include all but GPT-5.4 nano. On Free and Student, “access to models is available through auto model selection only”, so naming a GPT model yourself takes a paid plan, and the GPT-6.2 models take Pro+ or above. A GPT model picked in Copilot runs in GitHub’s agent, with GitHub’s tools and settings; it is not the Codex program.

The Codex agent on github.com, through Copilot. GitHub’s third-party agents page says “OpenAI Codex integration is currently in public preview” and that the agent can be powered by your existing Copilot subscription. You start it the way you start Copilot’s own cloud agent: from a repository’s Agents tab, by assigning it an issue, by mentioning it in a pull request comment, from GitHub Mobile or from VS Code. It spends GitHub Actions minutes and AI Credits, and its model list is short: Auto, GPT-5.3-Codex and GPT-5.4 nano, where Auto “does not leverage Copilot auto model selection” and picks from those two. Switching it on (“Allow Codex coding agent”) installs a GitHub App called openai code agent, which, the page notes, does not appear in your list of installed apps; its actions do appear in the audit log.

Which plans include it, GitHub’s pages disagree. The plans page marks “Third-party Agents (public preview)” included on Pro, Pro+ and Max and not on Free or Student, and the pricing page’s Pro list says “Access to 3rd party agents (Claude Code and Codex)”, but the same pricing page’s comparison table marks delegating to Codex as included only from Pro+. The plans page’s own models table also leaves GPT-5.4 nano, one of the agent’s two named models, off Pro. Individuals turn it on in their own Copilot settings; on Business and Enterprise an organization or enterprise policy has to allow it.

The Codex extension, signed in with Copilot. The same page describes a “Sign in with Copilot” option in OpenAI’s Codex extension for VS Code, which “is only available to GitHub Copilot Pro+ and Copilot Max subscribers,” with usage “subject to GitHub rate limits and billing.” OpenAI’s own IDE page does not mention it, so treat it as GitHub’s feature, described on GitHub’s side.

None of the three is the Codex CLI. OpenAI’s sign-in page for codex covers a ChatGPT account and an OpenAI API key, and nothing on OpenAI’s Codex pages mentions Copilot.

Paying for each

The two meters are different in kind. A ChatGPT plan gives Codex an allowance that OpenAI estimates in messages per five-hour window; a Copilot plan gives a dollar amount of AI Credits spent by the tokens each request processes. Neither converts into the other. In US dollars, as of November 30, 2026:

Codex, on a ChatGPT planPrice a monthGitHub CopilotPrice a month
Free
$0; GPT-6 Luna in the desktop app, as it rolls outFree$0; an allowance of credits, amount not stated; models by automatic selection
Go
$8; the same Luna accessStudentFree for verified students
Plus
$20; CLI, IDE extension, web, iOS, cloud tasks, code reviewPro$10, with 1,500 credits ($15)
Pro
$100, $200 or $500Pro+$39, with 7,000 credits ($70)
Business
$20 a user billed yearly, $25 monthly, two users minimumMax$100, with 20,000 credits ($200)
Enterprise, Edu
Through salesBusiness / Enterprise$19 / $39 a seat, with 1,900 / 3,900 credits a user
OpenAI API key
Per token, CLI, SDK and extension onlyYour own model providerCopilot CLI runs without a subscription, billed by that provider

Codex’s figures are from OpenAI’s Codex pricing page, which estimates, on Plus, 17–180 local GPT-6.2 Sol or 6–50 GPT-6.2 Astra messages per five hours; what each plan allows is in which ChatGPT plans include Codex. Copilot’s are from GitHub’s plans page, at its rate of “1 AI credit = $0.01 USD”; past the allowance an individual can set a dollar budget and keep going. The rows are side by side for reading, not because a row on one side buys what the row beside it does. Two things fall out of the pages: Copilot’s cheapest paid plan is half the price of the cheapest ChatGPT plan that includes the Codex CLI, and Copilot CLI is on every Copilot plan, the free one too.

Models

Codex runs OpenAI’s models only. Its models page says “Choose GPT-6.2 Sol for everyday coding, writing, and work across several sources” and “For demanding work across code, apps, or research, choose GPT-6.2 Astra,” with GPT-6 Astra, GPT-6.1 Sol, GPT-6.1 Terra and GPT-6 Luna also offered in the CLI. Another provider needs a gateway that speaks OpenAI’s Responses API.

Copilot runs models from OpenAI, Anthropic, Google, Microsoft, Moonshot AI and xAI, so on Pro+ or Max one plan puts GPT-6.2 Sol and Claude Opus 5.5 in one picker (Pro includes neither). What OpenAI’s models cost there is counted in credits, not in OpenAI’s message estimates. Which Claude models Copilot offers is set out in Claude Code vs GitHub Copilot.

Working on GitHub

JobCodex (OpenAI)Copilot (GitHub)
Take a task and come back with a pull request
Codex cloud: a workspace per task that “can keep working while your computer is asleep”; you commit or open the pull request from the result. GitHub or GitLab. Plus and up, ChatGPT sign-in onlyCopilot in the cloud, not on Free: one branch and one pull request per task, in a GitHub sandbox, on Actions (59 minutes a session) or a remote environment. GitHub repositories only
Start it from an issue
Not documented on OpenAI’s GitHub page, which covers reviews onlyThe Copilot panel on an issue; the Codex and Claude agents by assigning the issue
Review pull requests
@codex review, or automatic reviews; flags “only P0 and P1 issues”; Plus and up, not with an API keyCopilot code review, on Student and the paid plans; Free gets no pull request reviews on GitHub
Access to your repositories
The ChatGPT Codex Connector GitHub app, on repositories you chooseBuilt in; the Codex agent adds the openai code agent app
In your own CI
openai/codex-action@v1 with an OpenAI API keyCopilot CLI with a COPILOT_GITHUB_TOKEN

Codex’s cloud and review run on OpenAI’s side and reach GitHub through its app. The review setup needs a connected repository and push or admin rights on it, then the switch at chatgpt.com/settings/code-review. What that app may do in your repositories, and how to keep it to a few, is in Codex and GitHub; every review mode, local ones included, is in Codex code review.

Copilot’s cloud agent has been, since October 28, 2026, “available to users with a paid Copilot plan,” while Free keeps the older Copilot Chat experience. Its compute draws on your GitHub account’s monthly allowance, “separate from AI credits,” and “Copilot only works with repositories hosted on GitHub.” A team on GitLab has Codex cloud and not Copilot’s.

The two CLIs head to head

codex and copilot do the same job in a terminal: read the project, edit files, run commands. On a laptop or on a server reached over SSH, as of November 30, 2026:

Codex CLICopilot CLI
Version, licence
0.172.0, Apache-2.0 (open source)1.0.117, GitHub’s own licence (not open source)
Install
npm install -g @openai/codex, brew install --cask codex, or OpenAI’s scriptnpm install -g @github/copilot (Node.js 22+), brew install --cask copilot-cli, winget install GitHub.Copilot, or GitHub’s script
Sign-in over SSH
codex login --device-auth, after turning on device code login in ChatGPT’s security settingsDevice code at github.com/login/device, the default over SSH
Where the login is kept
~/.codex/auth.json in plain text, or the system credential storeThe system keychain; without one, it offers a plaintext ~/.copilot/config.json
Credential for scripts
An OpenAI API key in CODEX_API_KEY for one runA fine-grained token with Copilot Requests in COPILOT_GITHUB_TOKEN; classic ghp_ tokens are not supported
One prompt, then exit
codex exec "..."copilot -p "..." -s
Interactive default
In a Git repository, “workspace write + on-request approvals”; elsewhere read-only; network off“Manual approval mode”: asks when a tool request isn’t already allowed, within folders you trust
Sandbox
On by default for the commands it runsOpt-in: /sandbox enable locally, or copilot --cloud for a GitHub-hosted session

The install scripts (curl -fsSL https://chatgpt.com/codex/install.sh | sh and curl -fsSL https://gh.io/copilot-install | bash) run whatever those addresses serve; the npm routes are the ones to pin. Both CLIs keep the sign-in in a plain file on a server with no keyring, so check that only your user can read ~/.codex/auth.json or ~/.copilot/config.json. And Copilot CLI reads COPILOT_GITHUB_TOKEN, GH_TOKEN and GITHUB_TOKEN ahead of its stored sign-in, so a token exported for other tools can quietly take its place. Server setup in full is in Codex CLI on a Linux server and the Copilot CLI guide; the Codex device code switch is in its own guide.

Unattended runs. A script needs each tool told what it may do. For codex exec, OpenAI’s non-interactive docs say “By default, codex exec runs in a read-only sandbox,” but in the 0.172.0 source a project with a trust decision defaults to workspace-write when nothing else sets the mode. The two disagree, so pass --sandbox every time (codex exec has the detail). Its source also sets headless runs never to ask for approval. Copilot CLI grants permissions with --allow-tool, --deny-tool or --allow-all-tools, and with the last of these, GitHub warns, Copilot “can run any shell commands that you can run” without asking. Codex’s equivalent, --dangerously-bypass-approvals-and-sandbox, is listed by OpenAI as “No sandbox; no approvals (not recommended)”. Keep either for a machine and a checkout you would be content to lose. Setting a credential for one run without it reaching your shell history:

# Codex: an OpenAI API key, for this one command only
read -rsp 'OpenAI API key: ' k; echo
CODEX_API_KEY="$k" codex exec --sandbox read-only "Summarise what changed on this branch"
unset k

# Copilot CLI: a fine-grained token with the Copilot Requests permission
read -rsp 'Copilot token: ' t; echo
COPILOT_GITHUB_TOKEN="$t" copilot -p "Summarise what changed on this branch" -s
unset t
Copied

An interactive session of either ends when the SSH connection drops, so start it inside tmux.

Your code and model training

The defaults differ by plan on both sides, and on both the personal plans train unless you switch it off.

Which suits whom

Both CLIs read AGENTS.md, so a repository can serve both. The same comparison with Anthropic’s agent is Claude Code vs GitHub Copilot, and OpenAI’s agent against Anthropic’s is Codex vs Claude Code.

Run Claude Code, Codex, OpenCode, Pi, Hermes or OpenClaw on an always-on developer pod.

A developer pod is a permanent cloud computer (VPS), set up and secured for you, with your pick of Claude Code, Codex, OpenCode, Pi, Hermes and OpenClaw installed. Run more agents at once than your laptop can hold, and keep them working when it’s closed. From $24 a month, built in about ten minutes.