TokenSave logo TokenSave

TokenSave Data · Dataset

How many tokens does an AI web search cost? Claude Code vs Codex

With web search on, a one-line fact question cost 150,414 input tokens in Claude Code and 33,296 in Codex. Across four kinds of question Claude Code used 150,414 to 372,216 input tokens and Codex 33,296 to 99,584.

Measured 2026-10-18 · 4 questions · search on, 2 runs each · License CC BY 4.0 · Related: Claude Code vs Codex startup tokens

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

Input tokens per question with web search on, Claude Code vs Codex

Key findings

Tokens and searches per question

Averages of two runs with web search on. The last column is the same question with all tools switched off, for reference.

QuestionToolInput tokensOutput tokensSearches / page opensTimeInput, no tools
Simple factClaude Code (Opus 5.5)150,4141,5261.5 / 023 s2,985
Simple factCodex (gpt-6-luna)33,2961081 / 010 s15,545
Recent newsClaude Code (Opus 5.5)180,1115,2733 / 034 s2,982
Recent newsCodex (gpt-6-luna)68,1914402 / 015 s41,424
Price comparisonClaude Code (Opus 5.5)178,71014,8740 / 6.564 s2,999
Price comparisonCodex (gpt-6-luna)99,5846802 / 122 s55,450
Research questionClaude Code (Opus 5.5)372,21611,0562.5 / 680 s2,993
Research questionCodex (gpt-6-luna)85,1185942 / 0.520 s27,741

Sites seen and cited

Unique sites in the search results and fetched pages (average per run), the sites that came up most, and every site cited in the final answers.

Question · toolSites seenMost seen in resultsCited in the answer
Simple fact
Claude Code
8support.claude.com, claude.com, morphllm.comclaude.com, support.claude.com
Simple fact
Codex
2support.anthropic.com, anthropic.comanthropic.com, support.anthropic.com
Recent news
Claude Code
20en.wikipedia.org, llmgateway.io, letsdatascience.comaxios.com, blog.google, clone-systems.com, dev.to, es.euronews.com, llmgateway.io, research.meta.ai
Recent news
Codex
34reddit.com, en.wikipedia.org, tomshardware.comabout.fb.com, artificialwatch.com, blog.google, blogs.nvidia.com, reflection.ai, themodelgap.com
Price comparison
Claude Code
20platform.claude.com, aistudio.google.com, ai.google.devai.google.dev, claude.com, developers.openai.com, platform.claude.com
Price comparison
Codex
8ai.google.dev, developers.openai.com, anthropic.comai.google.dev, anthropic.com, developers.openai.com
Research question
Claude Code
39dev.to, media2.dev.to, assets.dev.toarxiv.org, dev.to, github.com, hiai.korea.ac.kr, jangwook.net, proceedings.neurips.cc
Research question
Codex
20reddit.com, arxiv.org, platform.openai.comhuggingface.co, jangwook.net, platform.claude.com, platform.openai.com, zolamir.com

Questions

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). Web search in Claude Code and Codex: tokens, searches and sources per question [Data set]. Zenodo. https://doi.org/10.5281/zenodo.23449842

Embed the chart

Related

Questions or corrections: contact@jonhisking.com