karpo-browser
A browser for AI agents that splits the work in two: a fast decision model (System 1) does the steps on the
page, one choice per step; your agent's model (System 2) plans, reads and answers.
Most browser agents ask a large model for every click. karpo-browser asks a large model only for what needs judgment
(the plan, the reading, the answer) and gives the clicking, typing, choosing and scrolling to a decision model that
picks one action per step from the page's own options.
flowchart LR
subgraph S2["System 2: your agent (Claude Code, Codex, your own)"]
LLM["General model<br/>plans, reads, answers"]
end
subgraph KB["karpo-browser"]
MCP["MCP server<br/>open · run_browser_agent · read_page<br/>actions by hand · screenshot"]
RUN["Run loop<br/>read the page · ask · act · settle"]
end
S1["System 1: decision model<br/>(System One protocol)"]
CH["Chrome<br/>(DevTools Protocol)"]
LLM -- "goal + values" --> MCP
MCP -- "how the run ended + the page it reached" --> LLM
MCP --> RUN
RUN -- "state + questions" --> S1
S1 -- "one choice per step" --> RUN
RUN -- "click · type · choose · scroll" --> CH
Why karpo-browser
- Fast, cheap steps. Each step is one choice among the page's numbered options, answered by a decision model
instead of written out by a chat model.
- Your agent stays in charge. System 2 decides what to do and checks the result; System 1 only gets the page
from one state to the next, and says how it ended when it cannot.
- Any decision model. System 1 is asked over the System One protocol: decision models hosted on OpenRouter, or a
model on your own server.
- Plugs into the agents you use. A Claude Code plugin, Codex, or any MCP client; a skill tells the agent how to
work the tools.
- A library and a command line. A typed TypeScript API and the
karpo-browser command, with no runtime
dependencies.
- Secrets stay out of the model. A password or a card number is typed into the page by name; no model sees it.
Install
npm install -g karpo-browser
karpo-browser drives a local Chrome or Chromium (set CHROME_PATH when it is not in the usual place), or one that
runs already (--cdp, or BROWSER_CDP_URL for the MCP server). It needs Node.js 22.18 or later.
Quick start
export SYSTEM1_MODEL=typesafe/jev-1.14 # a decision model on OpenRouter
export SYSTEM1_API_KEY=sk-or-... # your OpenRouter key
karpo-browser run --url https://en.wikipedia.org/ --goal "Open the Wikipedia article about the Apache License" \
--value "search=Apache License"
run gives one goal to System 1 and prints each step and where the run ended. System 1 types only the values it is
given (--value name=text): a value written only in the goal is not typed.
How it works
- System 1 is a decision model. At each step karpo-browser reads the page into numbered elements and asks the
model which one step moves the goal forward, and whether the run is going in circles; the model answers by
choosing, and karpo-browser carries the step out and waits for the page to settle.
- System 2 is a general model in an agent: Claude Code, Codex, or your own. It gives System 1 goals through
run_browser_agent, reads the page a run returns, acts by hand where a run is stuck, and answers.
A run ends with one of these statuses, and the page it reached: