Home/Guides/Reduce LLM token usage
Guide

How to reduce LLM token usage when agents read the web

Reducing LLM token usage in an agent that reads the web is mostly about sending less: the passages that answer instead of whole pages, only what changed since the last read, and a short view of each browser step. On our measurements that cuts what the model reads by 86% to 99.9%, depending on the job.

94.5%fewer tokens on 8 long pages by sending passages: 187,718 → 10,325
99.9%fewer tokens on a repeat check that sends only the change: 9,071 → 12
19×fewer tokens over 3 browser tasks with ranked views: 2,096,615 → 107,850
The short answer

What should you remember?

01

Most tokens are reading

An agent that browses or researches spends most of its input on pages, not on your prompt.

02

Cut before you send

Choose what reaches the model first: passages, rows or a diff, never the raw page.

03

Measure every call

Count the source and what you sent with the same tokenizer, so the saving is a number.

Where do an agent's tokens go?

Every page an agent reads goes into the model's context, and you pay for each token of it. The Wikipedia article "Web browser" is 73,964 tokens as text; the passages that answer "when was the first browser made?" are 1,493. A research agent that reads ten such pages per question spends almost all of its budget on reading, before it writes a word.

Browser agents are worse, because they read the page again on every step. Over 3 real browser tasks, sending the page as HTML on every step came to 2,096,615 tokens.

1. Send passages, not pages

Split the page into passages, rank them against the question and send the best ones. A ranker such as BM25 does this in code, in under a millisecond, with no model. On 8 long pages this sent 10,325 tokens instead of 187,718 (94.5% fewer), and the model read a median of 12.1% of each page. On a test set of 28 questions with a known answer, the answer was in what the model received for all 28.

2. Send only what changed

Agents that check the same pages every day should not read them again. Keep the last copy, compare, and send the difference. The second check of 3 pricing pages sent 12 tokens instead of 9,071 (99.9% fewer), because nothing had changed but a line.

3. Give browser agents a view, not the HTML

A browser agent needs to know what is on the page and what it can click, not the markup. A ranked list of the interactive elements and headings, with only the changes on the next step, sent 107,850 tokens over the same 3 tasks (19× fewer). Against Playwright MCP on 10 tasks, it was 10.3× fewer tokens, and both finished all 10.

4. Use code for sites you know

When the site is a known kind (a job board, a store, a review page, a filings database), code can return the rows directly, and the model reads a table instead of a page. On 3 pricing pages, the rows were 1,229 tokens against 9,071 for the pages (86.5% fewer), and the extraction itself used 0 model tokens.

5. Search results as sentences

A search tool that returns ten full pages is the most expensive call an agent makes. Reduce the results to the sentences that answer, with their sources: one researched question came to 1,854 tokens instead of 13,573 (86.3% fewer).

6. Remember what you already read

Save what an agent reads once and search it later, instead of fetching the same pages again. A question answered from 3 saved pages sent 523 tokens instead of 9,071 (94.2% fewer).

Which technique saves the most?

TechniqueMeasured savingBest for
Passages, not pages94.5% on 8 long pagesQuestions about a page or a PDF
Only what changed99.9% on a repeat checkMonitoring prices, docs, competitors
A view, not the HTML19× over 3 tasksAgents that click and type
Code for known sites86.5% on 3 pricing pagesJobs, stores, reviews, filings
Sentences from search86.3% for one questionResearch across sources
Memory94.2% for one questionQuestions about pages read before

What should you not cut?

Reading less does not change what the model writes or how long it reasons. When a question needs the whole document (a summary of everything, a translation), ask for the full text as clean markdown: smaller than HTML, but not 94.5% smaller. Short pages have little to cut, so expect single-digit savings on them.

How do you measure your own saving?

Count the tokens of the full source and of what you sent, with the same tokenizer, on every call, and log both. CrawlGenie does this on every call and adds it up per day, per person and per connector; the calculator turns it into money at your model's price.

Measured, not promised

What did we measure?

Runs recorded with their date and their limits; your own numbers appear on every call.

94.5%fewer tokens on 8 long pages by sending passages: 187,718 → 10,325
99.9%fewer tokens on a repeat check that sends only the change: 9,071 → 12
19×fewer tokens over 3 browser tasks with ranked views: 2,096,615 → 107,850
Try the numbers

What would CrawlGenie save you?

Set how much your AI reads and which model it uses. The saving uses the share of a page your AI still reads, as measured.

500
13,000 tokens
$2 / 1M input tokens
80%
You would save
$281a month
$3,370 a year · 72% fewer tokens
Without CrawlGenie195M tokens · $390
With CrawlGenie55M tokens · $109

Your AI still reads up to 10% of each page it asks about (measured: 2–15% on long pages). The Token savings page shows your real number.

How we measured →
FAQ

Questions people ask

What uses the most tokens in an AI agent?

Usually reading: the pages, PDFs, search results and browser steps that go into the context. Prompts and answers are small next to a few full web pages.

Does prompt caching solve this?

Only for text that repeats exactly, such as a long system prompt. Each new page is new text, so the way to pay less for it is to send less of it.

Should I compress pages with a smaller model?

That spends tokens to save tokens. Selecting passages with code costs no model tokens and is the same every time.

Spend tokens on answers, not on pages.

Create a workspace in a minute. Connect ChatGPT, Claude, Cursor or your own agents. Every answer comes with the token savings.