Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jev Browser Control

Let Claude control your own Chrome. A Chrome extension plus a small MCP server: Claude plans, and Jev, TypeSafe's decision model, picks each click, keystroke and scroll in about half a second for a fraction of a cent.

Created by Jeroen Erne (nexibeo.com · completeaitraining.com), built together with Claude.

Measured 27 to 198 times cheaper, and more than twice as fast, than letting Claude's or Codex's own model do the clicking (same tasks, same loop; results).

Website: jevbrowsercontrol.com · Docs: jevbrowsercontrol.com/docs · License: MIT

The Jev side panel in Chrome, showing Claude connected

What you get

  • A Chrome extension that reads the page as numbered elements and acts on them with trusted input. Run tasks from its side panel, or let Claude drive it.
  • An MCP server for Claude Code and Claude Desktop with 17 tools: browser_snapshot, browser_click, browser_type, browser_navigate, browser_read, browser_screenshot and more, plus jev_task (hand a whole sub-task to Jev), jev_find and jev_check.
  • Your choice of who pays for Jev: your own OpenRouter key (free, this repo), prepaid credits from jevbrowsercontrol.com (one key, 5× OpenRouter's price), or any compatible endpoint such as TypeSafe direct.

Quick start

  1. Install the extension. Clone this repo (or download the zip), open chrome://extensions, switch on Developer mode, click Load unpacked and pick the extension/ folder.

  2. Choose a provider in the settings page that opens: paste an OpenRouter key or a jbc_ credits key, and press Test connection.

  3. Connect Claude. Needs Node.js 18+; no other dependencies.

    claude mcp add jev-browser -- node /path/to/jev-browser-control/mcp/server.mjs

    or without cloning:

    claude mcp add jev-browser -- npx -y https://jevbrowsercontrol.com/downloads/jev-browser-control-mcp-0.2.0.tgz

    Claude Desktop: add {"mcpServers": {"jev-browser": {"command": "node", "args": ["/path/to/mcp/server.mjs"]}}} to its config.

Then ask Claude: “Use the browser to search Wikipedia for Ristretto and tell me where the name comes from.”

Grok Bot, ChatGPT, claude.ai and other cloud apps. They can't start a local program, so jevbrowsercontrol.com offers the same tools as a remote MCP server at https://jevbrowsercontrol.com/mcp (bearer: your jbc_ key). Switch on Remote AI apps in the extension's settings and the extension keeps an outbound connection to the relay; it's off by default, and clicks that buy, pay, send, post or delete always wait for your OK in the side panel. For Grok Bot there is a ready-made template: Jev Browser Operator.

Claude Code and OpenAI Codex agent files. agents/ has a skill (works in both) and a Claude Code subagent. node scripts/install-agents.mjs registers the MCP server and installs them for whichever of the two you have.

How a step works

page ──► numbered elements ──► one Jev call ──► stop gates ──► trusted input ──► page
         (extension, ~20 ms)   (~0.5 s)         (code)          (CDP, ~50 ms)
  1. Snapshot. Visible buttons, links and fields become rows [n] role "label" value, with checked/selected state and nearby card text. Password and file fields are never listed. Open shadow roots are included.
  2. One request, three answers. Jev is asked for the operation (CLICK, TYPE_TEXT, SELECT, PRESS_ENTER, SCROLL_*, BACK, WAIT, DONE, BLOCKED), speculatively for the best target of every operation, and, independently, whether the goal is already met. Code uses only the target that matches the chosen operation.
  3. Stop gates in code. DONE counts only when the independent goal check agrees; clicks that buy, pay, send, post or delete stop for confirmation; three actions without a visible change end the run; limits on actions, seconds and dollars.
  4. Act. Before input, the element is re-checked (same node, same state, visible, not covered). If the page moved while Jev decided, nothing is clicked and it looks again. Only TYPE_TEXT needs words: a small LLM writes them from the goal and never invents personal data (it returns null, and the task stops with needs_input).

Jev's answer is always an element number that code maps back to a node it tagged itself. It never becomes a selector, coordinates or code.

The operation-plus-speculative-target design, the freshness guards and the page snapshot are adapted from Browser Use's Jev Ultrafast (MIT); see NOTICE.

Measured

Live runs on September 19, 2026 with typesafe/jev-1.13 (cost at OpenRouter prices; credits cost 5×):

Task Result Actions Time Cost
Wikipedia: search “Ristretto”, open the article done, goal check 0.95 2 (4 Jev calls) 4.9 s $0.0018
httpbin pizza form: 6 requested fields, no email given filled all 6, then needs_input for the email 7 (8 Jev calls) 7.3 s $0.0012
Local pizza form with “then place the order” filled 7 fields, stopped at needs_confirmation before “Place order” 7 5.8 s $0.0014
jev_find “the checkbox for mushrooms” Mushroom, p = 0.86 0.8 s < $0.0002
jev_check true / false statement 0.97 / 0.01 0.9 s < $0.0003

Recorded traces are in results/.

Jev vs. Claude and Codex models

scripts/benchmark.mjs runs three live tasks (search Wikipedia and open an article; fill 7 fields of httpbin's order form without submitting; open the top Hacker News story's comments) through the same loop and page snapshot, changing only who answers each step's questions. With --session, the models run the way Claude Code and Codex run them: tool definitions in the system prompt, the whole conversation resent at every step, reasoning at medium effort, prompt caching on. Every model passed all three tasks; success is checked in code on the final page.

Who picks each step Total cost, 3 tasks Time Cost vs. Jev
Jev Browser Control, open source with your OpenRouter key $0.0057 17.8 s
Jev Browser Control as a service (jevbrowsercontrol.com credits) $0.028 17.8 s
GPT-5.3 Codex $0.153 38.9 s 27×
Claude Sonnet 5 $0.249 43.3 s 44×
Claude Opus 5 $0.795 45.4 s 140×
GPT-6 Astra $1.129 38.3 s 198×

September 19, 2026, OpenRouter prices. Without --session (one bare call per step, reasoning off or low) the models cost about the same or less: $0.167, $0.247, $0.538 and $0.941. Prompt caching keeps the resent conversation cheap on short tasks like these; a long real session, which carries all its earlier work into every step, costs more. On Hacker News Jev reached the right page each time but its own goal check was unsure, so it ended as stuck or done_unconfirmed rather than done. Raw data: results/benchmark-session-2026-09-19.json and results/benchmark-2026-09-19.json.

Repository

Path What
extension/ Manifest V3 extension: background.js (router), lib/agent.js (the loop), lib/policy.js (questions), lib/page.js (in-page snapshot and input), lib/driver.js (Chrome and CDP), lib/provider.js (OpenRouter / credits / custom), side panel and settings
mcp/ Zero-dependency MCP server: stdio JSON-RPC, a small RFC 6455 WebSocket bridge on 127.0.0.1, and peer mode so several Claude sessions share one browser
test/ Unit tests (policy, agent loop, bridge, MCP over stdio), e2e/run.mjs (real Chrome + extension + MCP + live Jev) and e2e/remote.mjs (the same through the jevbrowsercontrol.com relay)
agents/ A skill for Claude Code and Codex, and a Claude Code subagent
scripts/ install-agents.mjs (set up Claude Code and Codex), build-zip.mjs (release zip and npm tarball), record-run.mjs (record a task with every decision), make-icons.mjs
npm install                 # playwright-core, only for e2e and icons
npm test                    # 20 offline tests
CHROME_PATH=... OPENROUTER_API_KEY=... npm run e2e    # live, about $0.005
npm run zip                 # dist/ extension zip + MCP tarball

CHROME_PATH must be Chromium or Chrome for Testing: branded Chrome 137+ ignores --load-extension.

MCP server settings

Variable Default Meaning
JBC_PORT 10522 Bridge port (set the same port in the extension)
JBC_EXTENSION_IDS any Comma-separated extension IDs allowed to connect. The unpacked build's ID is gnnidfbejejocmhhmjneoghkdkjpkbac
JBC_HOME ~/.jev-browser-control Where the peer token for other sessions lives
JBC_DEBUG off Log bridge events to stderr

Safety and limits

  • Remote control is off until you switch it on. While it's on, anyone with that jbc_ key can reach your browser through the relay, so keep the key secret and revoke it in the dashboard if it leaks. Remote callers can never skip the confirmation for irreversible clicks.
  • The bridge listens on 127.0.0.1 only. Web pages can't connect (they can't forge a chrome-extension:// origin); other MCP sessions need a token from your home folder.
  • The agent acts in your normal profile, with your logins. Use a separate Chrome profile for risky work, and list sites like your bank under Blocked sites.
  • Page text is sent to Jev as untrusted data, but prompt injection can still mislead a model. Keep limits on and check results; Jev can pick a confident near-miss between look-alike names.
  • Not supported yet: cross-origin iframes, canvas apps, file uploads, CAPTCHAs, and hover-only menus. English pages work best.

Credits

Created by Jeroen Erne (nexibeo.com · completeaitraining.com), built together with Claude. Loop design from Jev Ultrafast by Browser Use. Jev is a model by TypeSafe. This project is not affiliated with TypeSafe, Browser Use or Anthropic.

About

Let Claude code, chatgpt codex or control your own Chrome. Chrome extension + MCP server: Jev, TypeSafe's decision model, picks each click in ~0.5 s for a fraction of a cent. MIT, bring your own OpenRouter key.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages