Dataset Viewer
Auto-converted to Parquet Duplicate
tool
string
question
string
question_type
string
search
string
run
int64
input_tokens
int64
output_tokens
int64
helper_model_input_tokens
int64
searches
int64
page_opens
int64
seconds
int64
domains_seen_count
int64
domains_seen_top
string
domains_cited
string
claude_code
q1_fact
Simple fact
on
1
178,656
2,181
30,210
2
0
28
12
support.claude.com morphllm.com claude.com geotoolbox.ai suprmind.ai wearetandem.ai aionx.co thecrunch.io
claude.com support.claude.com
claude_code
q1_fact
Simple fact
on
2
122,171
870
12,690
1
0
18
3
support.claude.com claude.com anthropic.com
claude.com support.claude.com
claude_code
q1_fact
Simple fact
off (no tools)
1
2,985
197
0
0
0
7
0
null
anthropic.com claude.com
claude_code
q1_fact
Simple fact
off (no tools)
2
2,985
194
0
0
0
6
0
null
claude.com
claude_code
q2_news
Recent news
on
1
209,864
6,354
56,634
4
0
39
22
en.wikipedia.org letsdatascience.com eesel.ai pasqualepillitteri.it llmgateway.io aiagentsdirectory.com benchlm.ai clone-systems.com
blog.google es.euronews.com llmgateway.io research.meta.ai
claude_code
q2_news
Recent news
on
2
150,358
4,192
38,322
2
0
28
17
en.wikipedia.org llmgateway.io clone-systems.com capitalandcompute.net evertune.ai dev.to pricepertoken.com craai.substack.com
axios.com clone-systems.com dev.to
claude_code
q2_news
Recent news
off (no tools)
1
2,982
486
0
0
0
14
0
null
null
claude_code
q2_news
Recent news
off (no tools)
2
2,982
449
0
0
0
13
0
null
null
claude_code
q3_compare
Price comparison
on
1
186,932
17,740
23,187
0
8
79
24
platform.claude.com aistudio.google.com anthropic.com claude.ai claude.com support.claude.com ai.google.dev developers.openai.com
ai.google.dev claude.com developers.openai.com platform.claude.com
claude_code
q3_compare
Price comparison
on
2
170,488
12,008
23,189
0
5
48
15
platform.claude.com aistudio.google.com ai.google.dev developers.openai.com cloud.google.com platform.openai.com claude.com aws.amazon.com
ai.google.dev developers.openai.com platform.claude.com
claude_code
q3_compare
Price comparison
off (no tools)
1
2,999
1,386
0
0
0
20
0
null
ai.google.dev anthropic.com cloud.google.com docs.claude.com openai.com platform.openai.com
claude_code
q3_compare
Price comparison
off (no tools)
2
2,999
1,401
0
0
0
17
0
null
ai.google.dev anthropic.com docs.anthropic.com openai.com platform.openai.com
claude_code
q4_geo
Research question
on
1
426,565
12,119
38,942
3
8
85
48
github.com dev.to media2.dev.to assets.dev.to docs.github.com arxiv.org github.blog support.github.com
arxiv.org dev.to github.com hiai.korea.ac.kr jangwook.net proceedings.neurips.cc
claude_code
q4_geo
Research question
on
2
317,868
9,992
101,634
2
4
75
30
dev.to media2.dev.to assets.dev.to synthorai.io jangwook.net hiai.korea.ac.kr arxiv.org horadecodar.com.br
dev.to hiai.korea.ac.kr jangwook.net
claude_code
q4_geo
Research question
off (no tools)
1
2,993
2,127
0
0
0
24
0
null
docs.anthropic.com openai.com
claude_code
q4_geo
Research question
off (no tools)
2
2,993
2,063
0
0
0
23
0
null
docs.anthropic.com openai.com
codex
q1_fact
Simple fact
on
1
33,162
105
0
1
0
10
2
support.anthropic.com anthropic.com
support.anthropic.com
codex
q1_fact
Simple fact
on
2
33,429
110
0
1
0
9
2
anthropic.com support.anthropic.com
anthropic.com
codex
q1_fact
Simple fact
off (no tools)
1
10,240
40
0
0
0
4
0
null
anthropic.com
codex
q1_fact
Simple fact
off (no tools)
2
20,850
98
0
0
0
6
0
null
anthropic.com
codex
q2_news
Recent news
on
1
68,841
435
0
2
0
16
28
reddit.com en.wikipedia.org anthropic.com tomshardware.com openai.com arxiv.org axios.com techradar.com
about.fb.com artificialwatch.com themodelgap.com
codex
q2_news
Recent news
on
2
67,541
445
0
2
0
14
40
reddit.com en.wikipedia.org axios.com tomshardware.com arxiv.org nvidianews.nvidia.com techradar.com apnews.com
blog.google blogs.nvidia.com reflection.ai
codex
q2_news
Recent news
off (no tools)
1
34,491
245
0
0
0
9
0
null
null
codex
q2_news
Recent news
off (no tools)
2
48,358
342
0
0
0
12
0
null
null
codex
q3_compare
Price comparison
on
1
93,037
698
0
1
2
22
6
ai.google.dev anthropic.com developers.openai.com cdn.openai.com docs.anthropic.com discuss.ai.google.dev
ai.google.dev anthropic.com developers.openai.com
codex
q3_compare
Price comparison
on
2
106,132
661
0
3
0
22
10
ai.google.dev developers.openai.com cdn.openai.com anthropic.com docs.anthropic.com openai.com discuss.ai.google.dev deploymentsafety.openai.com
ai.google.dev anthropic.com developers.openai.com
codex
q3_compare
Price comparison
off (no tools)
1
48,409
602
0
0
0
16
0
null
ai.google.dev anthropic.com openai.com
codex
q3_compare
Price comparison
off (no tools)
2
62,492
729
0
0
0
16
0
null
ai.google.dev anthropic.com openai.com
codex
q4_geo
Research question
on
1
66,519
568
0
2
0
18
20
reddit.com platform.openai.com arxiv.org github.com aclanthology.org ioptera.com zolamir.com ttlab.hopto.org
huggingface.co platform.claude.com platform.openai.com zolamir.com
codex
q4_geo
Research question
on
2
103,718
619
0
2
1
21
21
anthropic.com reddit.com arxiv.org jangwook.net platform.openai.com aclanthology.org openreview.net docs.anthropic.com
jangwook.net platform.claude.com platform.openai.com
codex
q4_geo
Research question
off (no tools)
1
34,625
632
0
0
0
12
0
null
docs.anthropic.com help.openai.com platform.openai.com
codex
q4_geo
Research question
off (no tools)
2
20,857
882
0
0
0
13
0
null
docs.anthropic.com github.com platform.openai.com

Web search in Claude Code and Codex: tokens, searches and sources per question

Four kinds of question asked with web search on in Claude Code and Codex, two runs each: input and output tokens, searches and page opens, time, the sites seen in results and the sites cited in the answer, plus the same questions with no tools.

Headline: with web search on, a one-line fact question cost 150,414 input tokens in Claude Code and 33,296 in Codex. Across the four questions Claude Code used 150,414 to 372,216 input tokens and Codex 33,296 to 99,584.

Key findings

  • Search is the expensive part of an answer: turning search on added 65% to 207% to Codex's input tokens compared with the same questions and no tools.
  • Claude Code runs a second model for the web: a smaller Claude model (Haiku) processed search results and pages, 13% to 26% of Claude Code's input tokens.
  • Research-style questions cost the most: 372,216 input tokens on average in Claude Code.
  • Different tools look at different web: for the news question Codex's results were led by reddit.com and Claude Code's by en.wikipedia.org. For prices both cited only official pages.
  • Without search both tools declined the news question. On the price question Claude Code said it answered from memory; Codex named the pricing page as its source although it had not opened it.
  • Turning search off is not simple: with only the search tool blocked, Claude Code fetched pages with shell commands and Codex used other built-in tools; every tool had to be switched off for the no-search runs.

Files

  • ai-agent-web-search-tokens.csv: one row per run with tool, question, question_type, search, run, input_tokens, output_tokens, helper_model_input_tokens, searches, page_opens, seconds, domains_seen_count, domains_seen_top, domains_cited
  • ai-agent-web-search-tokens.json: the same data plus the exact prompts

Tokens and searches per question (search on, average of 2 runs)

Question Tool Input tokens Output tokens Searches / page opens Time Input, no tools
Simple fact Claude Code (Opus 5.5) 150,414 1,526 1.5 / 0 23 s 2,985
Simple fact Codex (gpt-6-luna) 33,296 108 1 / 0 10 s 15,545
Recent news Claude Code (Opus 5.5) 180,111 5,273 3 / 0 34 s 2,982
Recent news Codex (gpt-6-luna) 68,191 440 2 / 0 15 s 41,424
Price comparison Claude Code (Opus 5.5) 178,710 14,874 0 / 6.5 64 s 2,999
Price comparison Codex (gpt-6-luna) 99,584 680 2 / 1 22 s 55,450
Research question Claude Code (Opus 5.5) 372,216 11,056 2.5 / 6 80 s 2,993
Research question Codex (gpt-6-luna) 85,118 594 2 / 0.5 20 s 27,741

Sites seen and cited

Question Tool Sites seen Most seen in results Cited in the answer
Simple fact Claude Code 8 support.claude.com, claude.com, morphllm.com claude.com, support.claude.com
Simple fact Codex 2 support.anthropic.com, anthropic.com anthropic.com, support.anthropic.com
Recent news Claude Code 20 en.wikipedia.org, llmgateway.io, letsdatascience.com axios.com, blog.google, clone-systems.com, dev.to, es.euronews.com, llmgateway.io, research.meta.ai
Recent news Codex 34 reddit.com, en.wikipedia.org, tomshardware.com about.fb.com, artificialwatch.com, blog.google, blogs.nvidia.com, reflection.ai, themodelgap.com
Price comparison Claude Code 20 platform.claude.com, aistudio.google.com, ai.google.dev ai.google.dev, claude.com, developers.openai.com, platform.claude.com
Price comparison Codex 8 ai.google.dev, developers.openai.com, anthropic.com ai.google.dev, anthropic.com, developers.openai.com
Research question Claude Code 39 dev.to, media2.dev.to, assets.dev.to arxiv.org, dev.to, github.com, hiai.korea.ac.kr, jangwook.net, proceedings.neurips.cc
Research question Codex 20 reddit.com, arxiv.org, platform.openai.com huggingface.co, jangwook.net, platform.claude.com, platform.openai.com, zolamir.com

Questions

  • Simple fact: "What is the current monthly price of the Claude Pro plan in the United States? Answer in one sentence and cite your source."
  • Recent news: "Summarize the three most important AI model releases announced in the past 7 days, one sentence each, with a source link for each."
  • Price comparison: "Compare the current API prices per million input and output tokens of the flagship models from Anthropic, OpenAI and Google. Use official pricing pages and cite them."
  • Research question: "How many more tokens does Korean text need than the same English text on OpenAI and Claude tokenizers? Give numbers and cite your sources."

Method

  1. Both tools on the same Windows laptop, effort medium, each run in its own empty folder.
  2. Claude Code 2.1.295 (Opus 5.5, Max plan): claude -p --output-format stream-json --verbose --allowedTools WebSearch WebFetch, no MCP servers; input tokens summed over every model in the run.
  3. Codex CLI 0.162 (gpt-6-luna, ChatGPT plan): codex --search exec --json; searches and page opens are the web-search items in the log.
  4. No tools: Claude Code with --tools ""; Codex with -c web_search="disabled" and apps, plugins, in-app browser and skill search disabled.

Limitations

  • Four English questions, two runs each, on one day; search results change and runs vary.
  • Models and per-token prices differ and most Claude Code input is cached, so tokens are not costs.
  • "No tools" also removes Claude Code's built-in tool definitions, so it is a lower bound.
  • Other languages will be a separate dataset; Cursor will be added later.

Citation

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

Check your own Claude Code and Codex usage at tokensave.app.

Downloads last month
57