Auny in a hood

lean-browser-use

Cut Claude Code browser costs with a fresh runner, bulk reads and three guards.

Page task URLs and fields Task packet Main session Fresh runner Bulk work Saved evidence Cleanup check
npx lean-browser-use
Star on GitHub

Page taskURLs, fields, scope and done check

Main session + task packet
  • 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

Silent video

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).

  1. Review the installation plan

    Install the method, runner, packet briefs and guards into your selected config directory.

  2. Start a fresh session and run doctor

    Invoke the skill and inspect installed files, registrations and available companions.

  3. 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-reader

Preview 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 works

Send the packet to a fresh runner.

The runner batches predictable actions and reads all requested fields together.

Meet the packet guides

Check the evidence and cleanup.

Verify consequential values from saved reads, then check the owned tabs and processes.

See the evidence

Docs and guides

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

npm latest 0.1.4 ↗

v0.1.4

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.

Read release notes on GitHub ↗

v0.1.3

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.

Read release notes on GitHub ↗

v0.1.2

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.

Read release notes on GitHub ↗

v0.1.1

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.

Read release notes on GitHub ↗

v0.1.0

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.

Read release notes on GitHub ↗

Full version history