Skip to content
New research:State of Web Search for Agents, Q4 2026

Web search in coding agents: built-in tools and recommended APIs

A coding agent can use one company’s search service itself and recommend another for the app it helps you build. We checked what the companies behind Claude Code, Codex and Cursor disclose about each agent’s built-in search, then asked each agent which API a developer should use, collecting 360 answers to 20 prompts about adding search to an app.

From State of Web Search for Agents, Q4 2026. The counts show what agents recommend. The benchmark tests how well the APIs work.

Built-in web search in coding agents

Each of these agents has a web search tool of its own, and the service behind that tool is not always the one the agent recommends for your app.

  • Claude Code. Anthropic lists Brave Search as a supplier for web search. When we asked for a recommendation, Claude Code picked Tavily more often: 49% of its answers, against 19% for Brave Search.
  • Cursor. Cursor lists Exa as its web search supplier. When we asked for a recommendation, Cursor picked Exa in 24% of its answers, the same share as Tavily.
  • Codex. OpenAI hosts the search tool and has not disclosed its suppliers.
Default web behavior, documented suppliers and unknowns, checked October 14, 2026
AgentHow it searchesDocumented suppliers
Claude CodeWebSearch returns titles and URLs from Anthropic’s backend. WebFetch reads the pages. Users cannot change the built-in search provider.Anthropic lists Brave Search and turbopuffer for web search. It does not explain how they work together. The turbopuffer entry excludes Claude for Government.
CodexLocal chats default to cached results from an OpenAI-maintained index. Full-access settings default to live search.OpenAI hosts the search tool. It has not disclosed the index’s complete sources, supplier routing or refresh schedule.
CursorCursor’s Agent can search with its Web tool. In the CLI, fetching a page requires approval unless its domain is allowed.Cursor currently lists Exa for web search. It does not say whether every Agent or CLI search uses Exa, or whether routing varies by feature or model.

Official sources checked October 14, 2026. The table covers the built-in tools without plugins. Access depends on the client, account and settings; the method lists our study settings.

Sources and unresolved questions

Claude Code

turbopuffer provides vector and full-text search infrastructure. Its listing does not identify the underlying web index or replace Brave’s listing. Anthropic also documents Claude-SearchBot for indexing and Claude-User for user-requested page retrieval. The full source of Claude Code’s search results remains undisclosed, as does each supplier’s role in a given query. The Claude API supports dynamic filtering, but that alone does not establish how Claude Code filters results.

Codex

Cached mode still retrieves saved web content; it does not rely on training knowledge alone. Users can choose cached, indexed, live or disabled mode; indexed mode allows external requests only through the search index. OpenAI documents OAI-SearchBot for ChatGPT search, but this does not account for every page in Codex’s index. A cloud-hosting relationship or a statement about ChatGPT’s suppliers is not enough to establish that Codex uses Bing.

Cursor

Older @Web documentation named Exa, and older security text named both Exa and SerpApi. The @Web URL now redirects, and the security page points to the Trust Center. SerpApi is absent from the current list; that does not establish when or whether an integration ended. Exa has its own search crawler. SerpApi is a different company from Serper, the API tested here.

A supplier list establishes a relationship, not which service answered a particular query. Tool logs can show that a search or fetch happened; identifying its supplier requires an attributed response or vendor confirmation. Matching URLs alone is only a clue. A page can be indexed without being retrieved, and retrieved without being cited.

Search APIs that coding agents recommend

We asked Claude Code, Codex and Cursor which search API to use while each was working in a small AI app. The 20 prompts read like something a developer would type, such as “which web search api should i use to give this assistant live web results”, and none named a vendor. Each agent answered every prompt three times in a Node app and three times in a Python app, for 360 answers in all.

We count a pick when an answer recommends a product as its first choice.

First-choice search API recommendations · All questions

Claude Code Opus 5.5Codex GPT-6.1 SolCursor Grok 4.7 · Medium

31 of 360 replies named more than one first choice. Each pick counts, so shares across all products add up to more than 100%.

Search products ranked by the share of 360 answers in which a coding agent picked them as a first choice, with the share for each agent. Column headers sort the table.
#share of all 360 answersof its 120 answersof its 120 answersof its 120 answers
137%49%37%24%
223%23%23%24%
320%19%22%18%
49%10%12%7%
5
OpenAI web search
6%8%1%8%
64%5%7%1%
7
SerpAPI
4%3%5%3%
82%0%1%5%

360 replies from three coding agents · November 11, 2026Amplifying

The table lists the 8 products that were a first choice in 5 or more of the 360 answers. 14 others were a first choice less often: Context7 (4), GDELT (3), NewsAPI.ai (2), Algolia (1), DuckDuckGo (1), FAISS (1), Firecrawl (1), Google News (1), Keenable (1), OpenAI API (1), Perplexity Sonar (1), pgvector (1), Qdrant (1) and SearchAPI.io (1).

Shares are of answers in which the product was the first choice. Hover over a number for the count. Click a column heading to sort.

  • Four products took most of the picks. They were Tavily (37%), Exa (23%), Brave Search (20%) and Serper (9%). At least one of the four was picked in 84% of the 360 answers.
  • Two prompts got the same answer every time. “we need a search api for this ai app. pick one and wire it in” drew Tavily in all 18 answers. So did “add a search tool for the agent - use whichever search api you think is best for llm use”.
  • Claude Code leaned on Tavily the most. It picked Tavily in 49% of its answers, and Codex in 37%. Cursor split three ways: Tavily 24%, Exa 24%, Brave Search 18%.
  • The pick changed with the question. A plain “which search API” question got Tavily (69% of those answers). Questions about cost got Brave Search (46%) and Serper (27%). Questions about long passages and official docs got Exa (16 of 18 for each prompt). For news from the last few hours, agents said Google: SerpAPI (13 of 18) and Serper (9) both return Google’s results.
  • The most-picked product was not the most accurate in our benchmark. Tavily Basic scored 77% on the main questions and 57% on the harder ones, and eight of the other 18 APIs scored clearly higher over all questions. Exa scored 92% and 90%. Brave Search scored 67% and 39%, and Serper 34% and 4%. Answers did not say which of Brave’s two APIs they meant; Brave LLM Context scored 91% and 76%. We chose one mode per API and allowed at most two searches per question.
  • Ten tested providers were never picked. They are You.com, Valyu, Nimble, Context.dev Search, Linkup, Jina, Octen, TinyFish, Bright Data and Ceramic. No answer mentioned Valyu, Nimble, Context.dev Search, Bright Data or Ceramic at all. You.com, Valyu and Nimble each answered at least 90% of the benchmark’s main questions correctly.

Each agent’s first choice against its own results

For each coding agent: the tested API it recommended most, that API’s score and rank on the harder questions when the same agent used it, and the API that scored highest with that agent
AgentRecommended mostThat API’s score with this agentHighest score with this agent
Claude CodeClaude Opus 5.5Tavily (49% of its answers)67%, 27 points below the highestExa and Perplexity Search (93%)
CodexGPT-6.1 SolTavily (37% of its answers)50%, 37 points below the highestExa (87%)
CursorGrok 4.7 MediumTavily and Exa (24% of its answers each)Tavily: 53%, 37 points below the highestExa: 90%, the highestExa (90%)

Harder questions, November 11–13, 2026Amplifying

Scores are from that agent’s own benchmark runs on the harder questions, across the 19 tested APIs. Recommendations are from November 11 and benchmark runs from November 12 and 13, with the same agent and model.

Example prompts and what each one drew

We asked 20 prompts, five of each kind. These are two of each kind, with the products picked most in the 18 answers to each.

8 of the 20 prompts, two from each kind of question, with the products picked most for each
Kind of questionPromptPicked most (of 18 answers)
Which search API“which web search api should i use to give this assistant live web results”Tavily (11), OpenAI web search (4), Exa (2)
Which search API“we need a search api for this ai app. pick one and wire it in”Tavily (18)
A search tool for an agent“what's the best search api built for ai agents right now”Exa (13), Parallel (10), Brave Search (4)
A search tool for an agent“give the model a web_search tool it can call. which search service should back it”Brave Search (9), Tavily (7), OpenAI web search (2)
Fresh news and long pages“which search api is best for finding things published in the last few hours”SerpAPI (13), Serper (9), GDELT (3)
Fresh news and long pages“what search api should i use for technical questions where the answer is deep in official docs”Exa (16), Context7 (4), Tavily (1)
Cost, speed and scale“what's the cheapest search api that is still good enough for an ai assistant”Serper (14), Parallel (2), Perplexity Search API (2)
Cost, speed and scale“recommend a search api for a production assistant - reliability and rate limits matter”Brave Search (17), Algolia (1)

Nine answers across all 20 prompts recommended the coding agent’s own search tools and no product.

How the recommendation study ran
  • Runs. November 11, 2026. 20 prompts × 2 apps × 3 runs gives 120 answers per agent. 31 replies named more than one first choice. Every session started from a fresh copy of the app.
  • Versions. Claude Code 2.1.287 with Claude Opus 5.5; Codex 0.167.1 with GPT-6.1 Sol; Cursor 2026.08.25-3e8eec8 with Grok 4.7 Medium. All at medium effort.
  • Web search. The agents could search the web before answering and chose when to. Claude Code did in 40 of 120 sessions, Codex did in 120 of 120 sessions, Cursor did in 80 of 120 sessions.
  • What the counts mean. They show what agents recommend. How well each product works is a separate question, which the benchmark tests.

How the agents reached their recommendations

We read the transcripts of all 360 sessions to see how each agent reached its answer: whether it searched the web, what it searched for, which sites came back and which pages it opened.

Codex’s first search already named Tavily.

  1. Asked

    “we need a search api for this ai app. pick one and wire it in”

  2. Read

    The test app’s code

  3. SearchedTavily search API official documentation search endpoint Node.js API key
    help.tavily.comgithub.comtavily.comnpmjs.com
  4. Looked up a pagehttps://docs.tavily.com/documentation/api-reference/endpoint/search
    docs.tavily.com
  5. Recommended
    Tavily

    I’m choosing Tavily: its API returns source URLs and content snippets that fit the app’s existing search tool.

In 48 of 120 sessions, Codex started by looking for one vendor’s documentation. Across all three agents, 213 of 240 first web searches named at least one vendor.

Four of the 360 recommendation sessions. Prompts, search queries and quoted answers come from the saved runs. The site names show the first results each search returned.

Recommendation sessions · November 11, 2026Amplifying

The shortlist came before the search

  • The agents named vendors in their first search query. That happened in 40 of 40 Claude Code sessions that searched, 107 of 120 Codex sessions that searched and 66 of 80 Cursor sessions that searched. A typical first query was “best search API for AI agents comparison 2026 Exa Tavily Brave Parallel”.
  • All three agents named Tavily, Exa and Brave Search most often. Those are three of the four products they recommended most, so the candidates appear to come from what the models already knew, and the agents used the search to compare them.

Recommendations with and without a web search

For each agent: sessions that searched the web, and how often Tavily was the first choice with and without a search
AgentSessions that searchedTavily first, no searchTavily first, with searchMost frequent first choice with search
Claude Code40 of 12059%47 of 8030%12 of 40Brave Search, 50%
Codex120 of 120—37%44 of 120Tavily, 37%
Cursor80 of 12053%21 of 4010%8 of 80Exa, 35%

360 sessions, November 11, 2026Amplifying

  • Claude Code and Cursor recommended Tavily most when they did not search. It was the first choice in 47 of 80 such sessions for Claude Code and 21 of 40 for Cursor. When they searched, it was first in 12 of 40 and 8 of 80.
  • After a search, each agent’s most frequent first choice was a different product. It was Brave Search for Claude Code, Exa for Cursor and Tavily for Codex, which searched in every session.
  • The kind of prompt explains part of the difference. Prompts about cost and scale led to a search most often, and those prompts also favoured cheaper products. The difference remains when we compare runs of the same prompt by the same agent: Tavily was first in 7 of 36 runs that searched and 12 of 30 that did not.

The sites the agents saw

For each agent: the number of search results, the share from search API vendors, from model and platform companies and from other sites, and the most frequent other sites
AgentSearch resultsSearch API vendorsModel and platform companiesOther sitesMost frequent other sites
Claude Code94526%3%71%costbench.com, apiserpent.com, aitoolsatlas.ai
Codex5,59429%6%66%reddit.com, techradar.com, github.com
Cursor1,11345%11%44%openbenchmarks.com, github.com, theagentstack.dev

Each link in a search result counts once per search. Search API vendors are companies that sell a search or scraping API, such as Tavily, Exa and Brave. Model and platform companies include OpenAI, Anthropic, Google and Cursor. Other sites include comparison sites, forums, code hosts and blogs, some of them run by smaller API sellers we did not identify.

  • Codex’s results came from reddit.com more than from any other site. 1,297 of its 5,594 results (23%) were pages on that site.
  • The pages the agents opened were nearly all vendor documentation. Claude Code opened 16 pages in 7 sessions, all of them on vendor sites. Cursor opened 40 in 16 sessions, 30 of them on vendor sites. Codex has no separate tool for opening a page. In 117 sessions it passed a page address to its search tool instead, 148 times in all, and 124 of those addresses were on vendor sites.
  • One benchmark site is associated with Cursor’s Exa recommendations. When openbenchmarks.com appeared in its results, Exa was the first choice in 18 of 33 sessions (55%), against 10 of 47 (21%) when it did not. Several of those answers quoted the site’s figures. We did not test whether the site caused the choice.
  • Vendors’ own comparison articles appeared often and were seldom followed. A You.com article comparing search APIs appeared in 16 of the 40 Claude Code sessions that searched, and Claude Code recommended You.com first in none of them. A Tavily comparison article appeared in 33 of Cursor’s 80, and Cursor recommended Tavily first in 5.

The sites each agent cited

Seeing a site in the results is not the same as relying on it. We counted the sites each agent saw and the sites it linked in its answers, and split them into first party and third party.

  • Seen means a site came back in the results of a web search the agent ran. The agent may not have read it.
  • Cited means the agent’s final answer contained a link to that site.
  • First party means the publisher offers its own search product. We include both product documentation and vendor comparisons, even when an article covers a competitor’s prices.
  • Third party means every other site: forums such as Reddit, code hosts, news sites and comparison sites.
For each agent: the share of links in its search results and of links in its answers that went to first-party and third-party sites, and how many answers with links pointed to the recommended product’s own site
AgentLinks in its search resultsLinks in its answersLinked the recommended product’s own site
Claude Code29% first party71% third party · 945 links47% first party53% third party · 276 links21 of 45 answers with links47%
Codex28% first party72% third party · 5,123 links98% first party2% third party · 415 links117 of 117 answers with links100%
Cursor56% first party44% third party · 1,107 links85% first party15% third party · 55 links39 of 42 answers with links93%

360 sessions, November 11, 2026Amplifying

The panels below name the sites. Each shows the ten sites an agent cited most, then the two that appeared most often in its search results without a link in any final answer.

Which sources did Claude Code, Codex and Cursor cite?
Claude CodeLinks in 45 of 120 answers (38%)
Sites Claude Code linked most in its answers, with the number of its 120 sessions in which each site appeared in search results and was linked in the answer, followed by the sites it saw most without linking them
SiteIn resultsCited
Keirolabsfirst party2924%2319%
Exafirst party1714%1613%
Parallelfirst party2118%1513%
webscraft.orgthird party1916%1513%
Tavilyfirst party76%1513%
openbenchmarks.comthird party1311%1210%
Clorofirst party2017%119%
agentscamp.comthird party119%98%
codenote.netthird party108%76%
costbench.comthird party98%65%
In search results, never linked
aitoolsatlas.aithird party119%00%
theneuralbase.comthird party108%00%
CodexLinks in 117 of 120 answers (98%)
Sites Codex linked most in its answers, with the number of its 120 sessions in which each site appeared in search results and was linked in the answer, followed by the sites it saw most without linking them
SiteIn resultsCited
Tavilyfirst party9075%10184%
Brave Searchfirst party9378%8067%
Exafirst party7563%7462%
Parallelfirst party1815%1815%
Serperfirst party1210%1815%
SerpAPIfirst party2017%1513%
OpenAIfirst party2521%1210%
context7.comthird party33%43%
NewsAPIfirst party65%33%
github.comthird party8773%22%
In search results, never linked
reddit.comthird party10991%00%
en.wikipedia.orgthird party9378%00%
CursorLinks in 47 of 120 answers (39%)
Sites Cursor linked most in its answers, with the number of its 120 sessions in which each site appeared in search results and was linked in the answer, followed by the sites it saw most without linking them
SiteIn resultsCited
Tavilyfirst party5748%1412%
Exafirst party5243%1311%
Brave Searchfirst party2924%87%
openbenchmarks.comthird party3328%22%
Perplexityfirst party2218%22%
context7.comthird party33%22%
api.gdeltproject.orgthird party11%22%
OpenAIfirst party1513%11%
Parallelfirst party1513%11%
Serperfirst party1412%11%
In search results, never linked
github.comthird party2218%00%
theagentstack.devthird party1714%00%

Counts and percentages use all 120 sessions per agent. “In results” counts sessions where a search returned the site. “Cited” counts final answers that linked to it. An agent could also link directly to a site. A company’s pages are grouped under its product name. We did not check who runs each third-party site, and some comparison sites may belong to companies that sell an API of their own.

Across 360 recommendations, one answer linked to Artificial Analysis and none linked to Vals AI. Cursor supplied the link to the Artificial Analysis Search Index. The site appeared in its search results in four sessions.

360 sessions, November 11, 2026Amplifying

  • All three agents cited first-party sites more than they saw them. First-party sites were 29%, 28% and 56% of the links in the search results of Claude Code, Codex and Cursor, and 47%, 98% and 85% of the links in their answers.
  • Codex linked sources in 117 of 120 answers, and nearly all of the links went to vendors’ own sites. It cited Tavily (101), Brave Search (80) and Exa (74). reddit.com appeared in its search results in 109 sessions and was cited in none.
  • Claude Code cited Keirolabs more often than any other source. Its three most-cited search vendors were Keirolabs (23), Exa (16) and Parallel (15). It answered without any link in 75 of 120 sessions.
  • Cursor linked sources in 47 of 120 answers, mostly to Tavily (14), Exa (13) and Brave Search (8). openbenchmarks.com appeared in its results in 33 sessions and was linked in 2, although several answers quoted its figures.

The reasons the agents gave

The answers gave much the same reasons for each product, whichever agent wrote them.

  • Tavily: built for language models, with page text in the response. Answers that chose it also pointed to its SDK, its free tier and how easily it fitted the search tool already stubbed in the test app. Claude Code, in a session where it did not search: It's built for LLM tool calls. It returns cleaned snippets or page content ready to pass back to the model, so you don't have to scrape and parse HTML.
  • Brave Search: price, its own index and published rate limits. It was the usual choice when the prompt asked about cost, volume or reliability. Claude Code, in a session where it searched: Brave doesn't resell Google or Bing results, so you don't inherit their rate limits, terms changes or price shifts.
  • Exa: search by meaning, full page text and, after a search, benchmark results. It was the usual choice for long passages from official documentation. Cursor, in a session where it searched: Independent benchmarks from October 2026 put its fast mode at the top for factual lookup, and the product is designed to return passages an agent can cite instead of a raw Google results page.
  • Serper: the lowest price, and Google’s results. It was the most frequent choice when the prompt asked for the cheapest API that is still good enough.

The counts in this section come from the session transcripts. A link between a site and a recommendation is an association, and we did not test what caused any choice. The reasons are our summary of the answers, each with one quoted example; we did not count them.

What coding agents recommend · Benchmark results · Methodology · All providers · Compare two providers · Report overview