VOOZH about

URL: https://www.morphllm.com/comparisons/chatgpt-vs-codex

⇱ ChatGPT vs Codex (June 2026): Same Account, Different Loop


ChatGPT vs Codex (2026): Same Account, $20/mo Plus, but One Edits Your Repo and One Doesn't

ChatGPT and Codex run on the same OpenAI account and share one 5-hour usage window. ChatGPT is a chat box you copy code out of. Codex (CLI + cloud) reads your repo, edits files, and runs commands, and tops Terminal-Bench 2.1 at 83.4%. Pricing, limits, install commands, and which to use.

June 9, 2026 · 1 min read

ChatGPT and Codex run on the same OpenAI account. On Plus and Pro they share one rolling 5-hour usage window. The difference is the loop: ChatGPT is a chat box you copy code out of; Codex is an agent that reads your repo, edits files, and runs commands. Codex CLI with GPT-5.5 is number one on Terminal-Bench 2.1 at 83.4%.

$20/mo
Plus includes both ChatGPT and Codex
83.4%
Codex CLI + GPT-5.5 on Terminal-Bench 2.1
Shared
One 5-hour window on Plus and Pro
Apache-2.0
Codex CLI is open source

The Difference Is the Loop, Not the Account

ChatGPT is conversational. You describe a problem, it returns code, you paste it into your editor, run it, and paste errors back. That loop is fast for small things and good for learning, but it has no awareness of your actual files, dependencies, or how a change behaves when run.

Codex is an agent with four surfaces: a CLI, an IDE extension for VS Code, Cursor, and Windsurf, a cloud agent at chatgpt.com/codex, a desktop app, and iOS. The cloud side adds automatic code review and a Slack integration. Each surface reads your repository, makes edits to real files, runs commands and tests, and iterates on the results. Because it works against the truth of your codebase, it catches integration issues a chat box cannot see. For the agent-vs-agent breakdown, see Codex vs Claude Code.

Same intelligence, different leverage

Both can run GPT-5.5. The leverage difference comes from access: Codex can read, edit, and run your code across files; ChatGPT can only talk about a snippet you paste in.

Pricing: Plus Includes Both

You do not buy Codex separately. The same ChatGPT subscription that powers the chat box also powers Codex. The $100/mo Pro tier launched April 9, 2026 as a middle option, with the $200/mo Pro tier remaining the ceiling.

PlanPriceCodex accessCodex local messages / 5h
Free$0No Codexn/a
Go$8/moNo Codexn/a
Plus$20/moIncluded15 to 80, plus 5 cloud tasks, 5 reviews
Pro 5xFrom $100/moIncluded80 to 400
Pro 20x$200/moIncluded300 to 1,600
BusinessPay-as-you-goPlus-level limits15 to 80

Plus and Pro users who hit the limit can buy additional credits. Business is pay-as-you-go at Plus-level limits, and Enterprise and Edu plans have flexible pricing with no fixed rate limits. Full numbers across coding agents are on our Codex pricing breakdown and Morph pricing.

Usage Limits and the Shared Window

The query that drives most confusion: do ChatGPT and Codex eat from the same allowance? On Plus and Pro, yes. Plus and Pro share one combined 5-hour window across local and cloud Codex usage, and that is the same subscription window your ChatGPT chats draw from. A heavy Codex session reduces what is left for chat in that window.

PlanLocal messagesCloud tasksCode reviews
Plus ($20/mo)15 to 8055
Pro 5x (from $100/mo)80 to 400HigherHigher
Pro 20x ($200/mo)300 to 1,600HigherHigher

Credit rates explain why the message range is wide. GPT-5.5 usage averages 5 to 45 credits per message, so a window of long agent runs burns faster than one of short edits. Credit rates per 1M tokens: GPT-5.5 is 125 input / 12.5 cached / 750 output; GPT-5.4 is 62.5 / 6.25 / 375; GPT-5.3-Codex is 43.75 / 4.375 / 350.

Install Codex

ChatGPT needs no install; it runs in the browser and apps. Codex CLI is a separate binary. Mac or Linux:

curl -fsSL https://chatgpt.com/codex/install.sh | sh
# or
npm install -g @openai/codex
# or
brew install --cask codex

On Windows: powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex". Then run codex and choose "Sign in with ChatGPT". The CLI is open source under Apache-2.0 at github.com/openai/codex, which has 89,991 stars.

Models and Benchmarks

Both products default to GPT-5.5. Codex CLI adds the /model command to switch between GPT-5.4, GPT-5.3-Codex, and others, with adjustable reasoning levels. Pro plans get the GPT-5.3-Codex-Spark research preview. You can also auth Codex with an OpenAI API key and pay per-token API rates, though API-key mode drops the cloud features.

Agent + modelScoreNotes
Codex CLI + GPT-5.583.4%Number 1 overall
Claude Code + Opus 4.878.9%Number 2 overall
Terminus 2 + GPT-5.578.2%Number 3
Gemini CLI + Gemini 3.1 Pro70.7%
Claude Code + Opus 4.769.7%

On the agentic-coding benchmark that measures the terminal loop Codex was built for, Codex CLI with GPT-5.5 leads. For the model-only view, GPT-5.5 scores 58.6% on SWE-bench Pro versus Claude Opus 4.8 at 69.2%, so model choice still matters per task. See Gemini CLI vs Codex for the third option.

When ChatGPT Fits

Quick snippets

A function, a regex, a config block you will paste yourself.

Explanations and learning

Understand a concept, an error, or an unfamiliar API.

Brainstorming

Explore approaches before committing to an implementation.

When Codex Fits

Multi-file changes

Edits applied across your real repository, not pasted by hand.

Run and verify

Runs commands and tests in the CLI, iterates on the actual results.

Cloud tasks and reviews

Delegate to the cloud agent at chatgpt.com/codex, with automatic code review.

Running Open Models for Codegen

Neither ChatGPT nor Codex lets you swap in an open-source model; both are tied to OpenAI weights on the OpenAI account. If you want to run DeepSeek or another open model for codegen, the constraint that matters is activation precision. Most serverless providers quantize activations to fp8 to cut cost, which degrades output. Morph serves DeepSeek with 16-bit (bf16) activations, no fp8 or int8 quantization, so responses match the reference weights, which is what you want when output fidelity matters.

For coding specifically, Morph runs codegen-tuned speculative decoding (draft and ngram tuned on code) plus custom low-level kernels, which makes it the fastest and highest-quality option for coding agents rather than a general menu. morph-dsv4flash (DeepSeek V4 Flash) is $0.139 per 1M input tokens and $0.278 per 1M output tokens. See Open Source Models and pricing.

Decision Framework

Your taskBest fitWhy
A quick snippet or regexChatGPTFast, you paste it yourself.
Understand an error or conceptChatGPTConversational explanation.
Change code across filesCodexEdits real files directly.
Run tests and iterateCodexExecutes and verifies against your code.
Delegate and review laterCodex cloudCloud tasks plus automatic code review.

Frequently Asked Questions

What is the difference between ChatGPT and Codex?

Both are OpenAI on the same account, often the same model. ChatGPT is a chat box you copy code in and out of; Codex is an agent (CLI, IDE extension, cloud) that edits your repo and runs commands.

Is Codex free with ChatGPT Plus?

Yes. Plus at $20/mo includes Codex: 15 to 80 local messages, 5 cloud tasks, and 5 code reviews per 5-hour window. The free ChatGPT tier does not include Codex.

Do they share the same usage limit?

On Plus and Pro, yes. One combined 5-hour window covers local and cloud Codex usage on the same subscription you use for ChatGPT.

Do they use the same model?

Often GPT-5.5. Codex CLI can switch models with the /model command. Codex CLI with GPT-5.5 is number one on Terminal-Bench 2.1 at 83.4%.

Which should I use?

ChatGPT for snippets and learning; Codex for multi-file changes, running tests, and end-to-end tasks. Most developers use both since they bill against one plan.

Related comparisons

WarpGrep Makes Coding Agents Find the Right Files

WarpGrep v2 adds 2 to 3 points on SWE-bench Pro to every model tested. It runs as an MCP server inside Codex, Claude Code, Cursor, and any tool that supports MCP. Free for 100k requests, then $1 per 1M. Better search means better context means better code.