aunysillyme/lean-browser-use

8 stars · Last commit 2026-11-30

Cut Claude Code browser use cost 3% to 25% (about 14% in 2 runs): fresh runner subagent, bulk reads, 3 guards and a token meter. One npx command.

README preview

# lean-browser-use

[![npm version](https://img.shields.io/npm/v/lean-browser-use)](https://www.npmjs.com/package/lean-browser-use) [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/aunysillyme/lean-browser-use/badge)](https://scorecard.dev/viewer/?uri=github.com/aunysillyme/lean-browser-use)
[![CI](https://github.com/aunysillyme/lean-browser-use/actions/workflows/check.yml/badge.svg)](https://github.com/aunysillyme/lean-browser-use/actions/workflows/check.yml)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
[![Node](https://img.shields.io/badge/Node-supported-green)](package.json)

**Cut browser use cost 3% to 25% (about 14% across two runs) in Claude Code: run page work in a fresh runner, send it in bulk, and see your own saving.**

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).
Next: start a fresh Claude Code session and ask it to use the `lean-browser-use` skill.

Bulk means many steps and reads sent in one call; a packet is the brief that carries those steps.
A guard is a small hook that blocks a wasteful or unsafe step.

In two measured runs the same browser task cost 3% and 25% less than in a plain session, about 14% less together (list API prices).
A browser step re-reads about 3x fewer tokens in the runner; the whole run reads a few percent more tokens, but the runner uses a cheaper model, so the bill falls: [see the benchmark](docs/benchmark.md).

```sh

View full repository on GitHub →