TokenSave logo TokenSave

TokenSave Data · Dataset

Claude Code vs Codex: how many tokens they use before and during work

Before doing anything, Claude Code sends 35,771 input tokens and Codex 14,678. On the same browser-game task Codex used 52% fewer input tokens and 59% fewer output tokens than Claude Code. Adding 30 MCP tools barely changed either.

Measured 2026-10-18 · Claude Code 2.1 and Codex CLI 0.162 · 2 runs each · License CC BY 4.0 · Related: Claude effort levels

DOI 10.5281/zenodo.23448342 · Also on Hugging Face · Kaggle · GitHub

Startup input tokens and the same coding task on Claude Code and Codex

Key findings

Startup tokens and MCP tools

Input tokens for the prompt “Reply with the single word OK.”, average of two runs; in brackets, the increase over no MCP server.

SetupClaude Code (Opus 5.5)Codex (gpt-6-luna)
0 MCP tools35,77114,678
1 MCP tool35,790 (+19)14,678 (+0)
10 MCP tools35,913 (+142)14,678 (+0)
30 MCP tools36,165 (+394)14,678 (+0)

The same coding task

Prompt, word for word: “Make a brick-breaker game that runs in the browser as a single file named index.html in the current folder. It needs 2 levels, a score display and 3 lives, and it must be playable with the keyboard and the mouse. Write the file and finish.”

RunInput tokensOutput tokensTimeLines in index.htmlAPI cost
Claude Code (Opus 5.5) · run 1123,6668,53773 s487$0.42
Claude Code (Opus 5.5) · run 279,2137,87063 s527$0.39
Codex (gpt-6-luna) · run 147,9542,87233 s49–
Codex (gpt-6-luna) · run 248,8153,80341 s117–

Method

Limitations

How to cite

Free to use, quote and republish with attribution under CC BY 4.0. Please link to this page.

TokenSave (2026). Claude Code vs Codex: startup tokens, MCP tools and the same coding task [Data set]. Zenodo. https://doi.org/10.5281/zenodo.23448342

Embed the chart

Related

Questions or corrections: contact@jonhisking.com