For AI agents: the index of this site is https://dejo.run/llms.txt, and every page is also served as markdown (add .md to its address, or send Accept: text/markdown).

dejo

Playwright MCP token usage, measured on 19 tasks across 11 real websites

The short answer: we gave Claude the same 19 tasks on lesser-known websites with each browser tool, every time in a brand-new session. On the first run, Dejo used 38% fewer tokens than Playwright MCP and got all 19 answers right. On every run after, Dejo replayed the task from memory with 78% fewer tokens, in a single tool call on 17 of the 19 tasks.

78%
fewer tokens on every run after the first
89K per task, against 409K for Playwright MCP
19 of 19
right answers on 11 real websites
Playwright MCP 17, Playwright CLI 18
47 of 50
real sites done right with no AI involved
plain Playwright 45, same steps, 3 Nov 2026
Benchmark

Cheaper to learn.
Then it remembers.

19 real tasks on lesser-known websites, each in a brand-new Claude session, against Playwright MCP and Playwright CLI. Dejo spends less on the first run, then replays the task in about one tool call.

DejoPlaywright MCPPlaywright CLI
tokens per run, lower is better
0200K400K600K800Krun 12345678910run 1: 251K tokens89K tokens from run 2 on

The same task run ten times, averaged over 19 tasks. Runs 1 and 2 are measured; from run 3 each tool costs what it did on run 2.

Claude Sonnet 5, medium effort. @playwright/mcp 0.0.80. Dejo 0.2.0.

First run, tokens
Dejo251K
Playwright MCP409K
Playwright CLI559K
10 runs, in total, tokens
Dejo1.1M
Playwright MCP4.1M
Playwright CLI5.6M
Right answersDejo 19 of 19, Playwright MCP 17, Playwright CLI 18
Every run after17 of 19 in one tool call, about $0.02 a run
A typical first runA little less than Playwright MCP. The big saving is on the hard sites.

All the numbers

one run, averaged over 19 tasksright answerstokenstool callscosttime
Dejo, first run19 of 19251K4.7$0.1731 s
Dejo, every run after19 of 1989K1.2$0.0216 s
Playwright MCP, every run17 of 19409K6.5$0.2340 s
Playwright CLI, every run18 of 19559K8.4$0.2838 s

Claude Sonnet 5, medium effort. @playwright/mcp@0.0.80, Dejo 0.2.0 code. Recorded 21 to 23 October 2026. Tool calls count browser actions only. Claude Code also makes a few calls to load a tool's definitions (ToolSearch); Dejo's tools load up front so it makes none, and Playwright MCP made about 1.3 per task (7.8 with them).

Why does Dejo use fewer tokens than Playwright MCP?

Two reasons. On the first run, your agent sends many steps in one call, so it takes fewer model turns, and every turn re-reads the whole conversation. On every run after, Dejo replays the learned task without the model reading the pages at all, so a run is about one call.

The first run. Playwright MCP takes one model turn per action, and every turn re-reads the whole conversation. Dejo lets the agent send many steps in one call (click link "Courses", select label "Prefix" "MEC", read css ".credits" as credits), shows each page as one short line per control, and saves the task when a step reads the answer. The difference is largest on hard sites:

first run, one taskDejoPlaywright MCP
college course catalog, filtered324K1,355K
college course catalog, page 3480K1,005K
museum collection, filtered398K983K
RFC Editor, filtered307K689K

Every run after. Playwright MCP starts from nothing in every session: it opens the page, reads it, decides, clicks, reads again, and pays the same on run 10 as on run 1. Dejo replays the saved task in plain code, with no page reading and no model calls inside Dejo. On 17 of 19 tasks that was a single dejo_run call, about 81K tokens. Most of those tokens are not Dejo at all: they are the agent's own instructions and tool list, which every session loads.

Where Dejo is not cheaper

Honest limits, all visible in the data:

  • A typical first run is close. The median first run was 216K tokens for Dejo and 257K for Playwright MCP. On 6 of the 19 tasks, Playwright MCP's run cost fewer tokens than Dejo's first run, for example 164K against 252K on a Dart package's changelog (and in one of the six, Playwright MCP's answer was wrong).
  • Sites that block automated browsers. 6 more tasks were on sites behind Cloudflare checks or plain 403 errors. Dejo and Playwright MCP were turned away on all six; Playwright CLI got through two of them, at 1.2M and 1.7M tokens. They are in the results file, not in the table.
  • Two of 19 repeats took more than one call. Both answered right, in 4 turns each: a search page built by JavaScript, and a filter whose header has no name to find it by.

Reliability: 50 real websites, no model

Tokens are one half. The other half is whether the tool finds the right element at all. We run 50 fixed step programs on real public websites, covering iframes, shadow DOM, custom dropdowns, date pickers, hover menus, infinite scroll, a second tab, search suggestions, tables and long pages. No model is involved, so the score is the browser tool alone.

50 tasks, the same steps for each tool3 Nov 20262 Nov 2026
Dejo47 of 50 (0.4.0)47 of 50 (0.3.1)
Plain Playwright45 of 5043 of 50
Dejo 0.3.0, before the fixes this test found25 of 50

On 3 November two of Dejo's three misses were one site that blocked the test machine; Playwright's score moves a little from day to day because live sites change. 0.4.0 also added 11 tasks for its new steps (dialogs, right click, network reads, emulation and more), on practice sites made for testing: Dejo passed 11 of 11, plain Playwright 10 of 11. Every step program and its answer are in benchmarks/reliability_tasks.py, and both runs are in the benchmarks/reliability-2026-11-0*.json files.

How we tested

  • Agent: Claude Code in headless mode (claude -p), model Claude Sonnet 5 at medium effort.
  • One tool per session. Each session could use only the browser tool under test. Built-in web tools such as WebFetch were turned off.
  • A brand-new session every run, so nothing carried over in the chat. Dejo's memory on disk is the only thing that persists, and that is the point being measured: Dejo learns in one session and replays in the next.
  • The tasks: 25 jobs on 14 lesser-known sites, the kind a model cannot answer from memory: a college course catalog, the Debian package directory, the RFC Editor, a museum's collection, a county history society, a Dart package registry, two demo shops, a small transit agency. Search boxes, filters, tables, pagination, deep menus and tabs. 19 of them, on 12 sites, were open to automated browsers.
  • Every right answer was written down before any tool ran, read off the live page in a real browser. A reply counts only if it contains that exact value. One answer key was wrong in format (the page writes "Oct 20, 2026"), and fixing it changed the result for every tool alike.
  • Versions pinned: @playwright/mcp@0.0.80, and Dejo on the code that became 0.2.0. Playwright MCP and CLI were measured on 21 to 22 October; Dejo was measured again after fixing what this benchmark found, on 23 October.
  • Tokens are everything the session processed: input, output, cache reads and cache writes, as reported by Claude Code. Tool calls leave out Claude Code's own tool search, which is not a browser call.
  • The ten-run chart uses the measured first run and the measured second run; from run 3 on, each tool is shown costing what it did on run 2.

What we did not test: other models, other agents, Chrome DevTools MCP and Claude in Chrome (next), and sites that need a sign-in.

An earlier test of Dejo 0.1.2, three tasks on well-known sites run ten times each, is written up in the browser agent memory post.

Run it yourself

The script, the tasks and the raw results are in the open-source repository:

git clone https://github.com/dejohq/dejo-mcp
cd dejo-mcp
python benchmarks/benchmark_learning.py --bench real --tools dejo,playwright,playwright-cli --runs 1
python benchmarks/reliability.py --reference

The token benchmark needs the claude command signed in, and Node for the Playwright tools. The reliability test needs neither: it runs the step programs itself, and --reference also runs them through plain Playwright. The tasks and their answers are in benchmarks/real_tasks.py, and every number on this page comes from the benchmarks/benchmark-real-2026-10-2*.json files.

FAQ

How many tokens does Playwright MCP use?

In our test, about 409,000 tokens per Claude session on average, over 19 tasks on real websites, counting everything the session read and wrote, including the agent's own instructions. On the hardest sites one session used over a million.

Why does Playwright MCP use so many tokens?

Each step returns a text snapshot of the page so the model can decide what to do next, every step is a model turn that re-reads the whole conversation, and every new session starts from nothing, so the model reads the same pages again each time.

How can I reduce Playwright MCP token usage?

For tasks you repeat, stop paying to rediscover them: a tool that remembers the task, like Dejo, replays it without reading the pages. For one-off tasks, keep sessions short and ask for exactly the value you need.

Is Dejo cheaper on every task?

No. On a typical first run it costs a little less than Playwright MCP, and on 6 of our 19 tasks Playwright MCP's run cost fewer tokens than Dejo's first run. The big savings are on hard sites and on every run after the first.

Is Dejo more reliable than Playwright?

On our 50-site reliability test, with the same fixed steps for each tool and no model, Dejo 0.4.0 passed 47 and plain Playwright 45 (3 November 2026). On 11 more tasks for the steps added in 0.4.0, Dejo passed 11 and Playwright 10. Two of Dejo's three misses were a site that blocked the test machine. It is one test, run by us; the steps and raw results are public.

Make your agent remember.

Free and open source. Install it once, and every site your agent learns stays learned.

Get started