Codex or Claude Code for research: the same prices, and the $20 plans ration both labs' best models
Anthropic and OpenAI both sell their coding agents at $20, $100 and $200 a month. On the $20 plans, OpenAI estimates 5 to 45 Codex messages every five hours on its strongest model.
Prices and limits below are from Anthropic’s and OpenAI’s own pages, read on 5 November 2026, in US dollars before tax.
| Claude Code (Anthropic) | Codex (OpenAI) | |
|---|---|---|
| Plans that include it | Pro $20 a month ($17 on an annual plan), Max $100, Ultra $200 | Plus $20, Pro at $100, $200 or $500. Free and Go get limited use |
| Five-hour limit | Pro 1x, Max 5x Pro, Ultra none for verified accounts | Plus: OpenAI publishes estimates per model. Pro: none |
| Weekly limit | Pro 1x, Max 5x, Ultra 10x Pro | “Weekly limits may also apply” |
| Strongest model | Fable 5.1, “our top model”. Paid with usage credits on Pro, up to half the weekly limit on Max and Ultra | GPT-6 Astra, which OpenAI says “suits the most demanding workflows”. 5 to 45 local messages per five hours on Plus |
| Everyday model on the $20 plan | Opus 5.5 | GPT-6.1 Sol, “near-Astra performance” at lower cost |
| API credits included | $100 a month on Max, $200 on Ultra | $100, $200 or $500 a month with the matching Pro tier |
| Long task that runs until a check passes | /goal |
/goal |
| Project instruction file | CLAUDE.md |
AGENTS.md |
| Skills | Yes | Yes |
| Sandbox at the start | Off. Turn on with /sandbox or sandbox.enabled |
On: the workspace only, network off |
| Model training on your chats | Listed as opt-out on every individual plan | “Opt-out available” on every individual plan |
The $20 plans ration each lab’s strongest model
OpenAI publishes how many local Codex messages a Plus subscriber can expect every five hours. The ranges are wide because a long task with a large context uses more per message.
| Model on ChatGPT Plus | Local messages per five hours, OpenAI’s estimate |
|---|---|
| GPT-6 Astra | 5 to 45 |
| GPT-6.1 Sol | 15 to 160 |
| GPT-6.1 Terra | 35 to 285 |
| GPT-6 Luna | 350 to 3,000 |
Anthropic gives multiples instead of counts. Max is five times Pro every five hours and every week. Ultra is ten times Pro every week, with no five-hour limit for verified accounts. Usage in Claude on the web, the desktop app, the phone and Claude Code all draws from one pool. On Pro, Anthropic’s strongest model, Fable 5.1, is paid for with usage credits on top of the plan.
Faster answers cost more of the same allowance. In Codex, Fast mode uses included usage 2.5 times as quickly, and Ultrafast on GPT-6 Astra or GPT-6.1 Sol 8 times as quickly.
Both agents run a long research task the same way
The working method is now the same in both tools. A project instruction file tells the agent how the project works (CLAUDE.md in Claude Code, AGENTS.md in Codex). Skills hold the repeatable procedures. /goal sets a condition, such as “every test in tests/ passes”, and the agent keeps working toward it. Anthropic’s documentation says Claude Code checks the condition after each turn and starts another turn if it is not yet met. OpenAI documents /goal in the Codex CLI, the IDE extension and the desktop app.
A researcher who learns the method in one tool has learned it for the other. The instruction file and skills guide shows it on a finance task in Claude Code.
Codex starts locked down, and Claude Code starts by asking
OpenAI’s documentation says Codex runs “with network access turned off” by default, inside a sandbox enforced by the operating system that typically limits it to the current workspace. In its Auto preset it reads, edits and runs commands in that folder, and asks before it touches files outside it or reaches the network.
Claude Code’s sandbox “is off by default.” Without it, Claude Code asks permission before acting, or lets a classifier approve actions in auto mode. Turn the sandbox on with /sandbox in a session, or set sandbox.enabled to true in ~/.claude/settings.json. The agent security guide gives a full settings file for a finance project, with the network limited to the sites a pipeline needs.
Try both on the same task
- Install both with the commands in the block below. Each signs in with its subscription the first time you start it.
- Copy one project twice, one folder for each tool. Write the same project rules into
CLAUDE.mdin one andAGENTS.mdin the other. - Start each on its strongest model at a high effort:
/modeland/effortin Claude Code,/modelin Codex. - Give both the same
/goal, with a check the agent has to print, for example “the panel builds and every test in tests/ passes”. - Compare the commits, the test results and how much of your allowance each run used.
# Claude Code
curl -fsSL https://claude.ai/install.sh | bash
cd ~/research/project-claude && claude
# Codex
curl -fsSL https://chatgpt.com/codex/install.sh | sh
cd ~/research/project-codex && codex
The top tiers include API credits
Claude Max includes $100 a month in API credits and Ultra $200. ChatGPT Pro includes $100, $200 or $500 a month, matching the tier. Those credits pay for the model calls a pipeline makes from code, such as scoring every earnings call transcript in a sample, without a second bill. OpenAI’s pricing page warns that API token prices are separate from subscription usage and should not be used to estimate what a plan includes.
/goal with a test the agent has to pass. In May, stock Claude Code and Codex wrote 117 papers unaided and none cleared a top venue's bar.A researcher with no budget at all has a cheaper route, for public data only, in the Muse Spark guide.
References
- Plans and pricing, Anthropic claude.com
- ChatGPT pricing, OpenAI chatgpt.com
- Codex pricing and usage limits, OpenAI learn.chatgpt.com
- Codex models, OpenAI learn.chatgpt.com
- Codex long-running work and /goal, OpenAI learn.chatgpt.com
- Codex agent approvals and security, OpenAI learn.chatgpt.com
- Codex CLI, OpenAI learn.chatgpt.com
- Claude Code overview, Anthropic code.claude.com
- Keep Claude working toward a goal, Anthropic code.claude.com
- Claude Code sandboxing, Anthropic code.claude.com