lean-browser-use
Cut Claude Code browser costs with a fresh runner, bulk reads and three guards.
npx lean-browser-usePage taskURLs, fields, scope and done check
Fresh runnerWork the pages in bulk
Saved evidenceRead named fields together
Main sessionCheck evidence + cleanup
The user chooses the browser profile.
The runner returns saved evidence and cleanup proof.
What this does
Get started
Go from install to your first browser task. For Claude Code users who run browser work in their sessions.
You get a skill, a runner agent (a fresh subagent that does the browser work), three hooks and a token meter (the measure command that counts tokens per step).
Review the installation plan
Install the method, runner, packet briefs and guards into your selected config directory.
Start a fresh session and run doctor
Invoke the skill and inspect installed files, registrations and available companions.
Give the agent a bounded page task
Name the requested fields, save evidence, verify the result and return cleanup proof.
npx lean-browser-use
npx lean-browser-use doctor
npx lean-browser-use install --with-readerPreview the plan first with --dry. Companions use tools you provide separately.
Read the complete installation guide
Requirements
Node 20 or newer
The installer, doctor and transcript meter use Node.js.
Claude Code
Start a fresh session to discover the installed skill and agent. Connected browser work uses your own setup and permissions.
Optional page reader
Python 3 runs the companion. Install Crawl4AI separately for CSS extraction and browser fetch fallback.
Optional search
Provide a SearXNG instance. The included container setup uses Docker.
Prepare one clear page task.
Name the URLs, fields, permitted actions and evidence destination before dispatch.
How the method worksSend the packet to a fresh runner.
The runner batches predictable actions and reads all requested fields together.
Meet the packet guidesCheck the evidence and cleanup.
Verify consequential values from saved reads, then check the owned tabs and processes.
See the evidenceDocs and guides
- Page reader and searchFind public URLs and reuse compiled extraction specs.
- Packet briefsPrepare scope, supplied code, stop conditions and cleanup ownership.
- Measure and doctorInspect your installation and compare local context use.
- Pick, retry and batch guardsChoose the session target, bound retries and group actions.
- Overview
- How it works
- Proof
- Install
Common questions
How do I install browser-use tools for Claude Code?
Run
npx lean-browser-use, then start a fresh Claude Code session and invoke the skill. The installer copies the method, runner, briefs, and guards into your selected Claude config directory.Can a subagent run browser work on its own?
Yes: the subagent runner handles the full browser route with the same packets. Run
npx lean-browser-use doctorto inspect the tools your machine provides, then follow the route table.How do I install into just this project?
Run
npx lean-browser-use --projectto target the current project's.claudedirectory. Check it withnpx lean-browser-use doctor --claude-dir ./.claude.How do I add the page reader and search?
Run
npx lean-browser-use --with-readerto copy both companions. The reader and search companions use tools you install separately; see their setup guides: reader and search.How do I check browser hooks after installing?
Run
npx lean-browser-use doctor; hook behavior on your Claude Code version is confirmed there. For payload examples and stop rules, read the guards guide.
Evidence you can inspect
- -3.15%
- Run 1: 9-step read, in-app Browser panePlain session $0.5975 · With the package $0.5787
- -25.26%
- Run 2: one-page task, Claude in ChromePlain session $0.5779 · With the package $0.4319
- -14.02%
- Both runs pooledPlain session $1.1754 · With the package $1.0106
- 0 dependencies
- Runtime dependenciesMeasured 2026-10-25 · Expires 2027-01-25
- 3.16 ratio
- Plain-to-runner median browser-step token ratioMeasured 2026-10-25
- 2657290 tokens
- Plain arm whole-run input-context tokensMeasured 2026-10-25
- 2846792 tokens
- Runner arm whole-run input-context tokensMeasured 2026-10-25
- 0.5975 usd
- Run 1 plain arm dollar cost at list API pricesMeasured 2026-10-25
- 0.5787 usd
- Run 1 runner arm dollar cost at list API pricesMeasured 2026-10-25
- 0.5779 usd
- Run 2 plain arm dollar cost at list API pricesMeasured 2026-10-25
- 0.4319 usd
- Run 2 runner arm dollar cost at list API pricesMeasured 2026-10-25
- 25.26 percent
- Best dollar saving in two measured runs on one setupMeasured 2026-10-25
Two runs cut task dollar cost by 3% and 25%, about 14% combined at list API prices.
Dollar cost rows describe two measured runs on one setup at list API prices. Savings vary with model, task and session size. Whole-run context totals and browser-step context totals measure different things. The break-even row is an estimate.
A browser step re-reads about 3x fewer tokens in the runner. Whole-run tokens rose in both measured runs. The break-even estimate is unmeasured.
Dated measurements and saved benchmark rows. Measure your own transcripts.
Releases
lean-browser-use 0.1.4
- Hardened workflow credentials and published the verified package artifact.
- Documented security response targets and current repository protections.
- Test jobs run on GitHub-hosted runners.
lean-browser-use 0.1.3
- Docs, agent and skill text run the CLI as npx lean-browser-use <verb>, since npx installs nothing on PATH.
- Installed files no longer link to docs that are not installed.
- The privacy gate accepts Dependabot's sign-off trailer; every other email stays blocked.
lean-browser-use 0.1.2
- PostToolUse touch hook records browser actions and successful closes per session and subagent.
- Stop and runner SubagentStop gate requests closure once per dirty stretch, with the exact close tool.
- keep --reason command holds browser surfaces for the user, including subagent surfaces.
lean-browser-use 0.1.1
- Full after-use cleanup steps for the runner and main session, including tabs, Browser panes, shell tasks, scratch files and verification.
- Cleanup guide on the website, with links from the README, runner agent, skill reference and llms.txt.
- cleanup command: dry run by default, --apply ends only leased automation processes, children first, with SIGTERM, a 3 second wait, then SIGKILL for the same process. It prints one summary line.
lean-browser-use 0.1.0
- Dollar cost rows and an about 25% cheaper headline, the best of two measured runs on one setup.
- Whole-run context totals of 2,657,290 plain and 2,846,792 runner, with the 15.54-step break-even flagged as an estimate.
- One paired browser-token benchmark with static proof, exact counts, and reproduction guidance.