Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

machinepulse-ai/karpo-browser

AI Engineering

A browser automation runtime that offloads page actions to a small decision model while an agent model plans and reads results.

This repo is an agent skill pack · 1 skillsSkill list and install →
134
15
TypeScript
Apache-2.0
5 days old

What it does

karpo-browser is a browser automation runtime for AI agents that splits control between two models. A decision model (System 1) handles low-level page interaction, choosing one action per step from numbered page elements. A general agent model (System 2), such as Claude Code, Codex or a custom setup, supplies goals, reads the resulting page, and answers questions. It uses Chrome over the DevTools Protocol and exposes the runtime as a TypeScript library, a CLI, and an MCP server.

The project is aimed at developers building agent workflows that need reliable web interaction without asking a large model to choose every click. It can also be installed as a Claude Code plugin or wired into Codex and other MCP clients. Secret values are typed into the page by name and never sent to models.

Quick start

You need Node.js 22.18 or later and a local Chrome or Chromium. If Chrome is not installed in a usual location, set CHROME_PATH. A decision model endpoint is also required. The examples use OpenRouter.

npm install -g karpo-browser
export SYSTEM1_MODEL=typesafe/jev-1.14
export SYSTEM1_API_KEY=sk-or-...
karpo-browser run --url https://en.wikipedia.org/ \
  --goal "Open the Wikipedia article about the Apache License" \
  --value "search=Apache License"

run prints each step and the final status. Values that may be typed must be given with --value; a value written only in the goal is not typed by System 1. To drive an already running browser, pass --cdp <ws address> instead of letting the CLI start Chrome. For Claude Code, add the plugin marketplace and install the plugin; for Codex, use codex mcp add with the SYSTEM1_* variables, then npx skills add machinepulse-ai/karpo-browser. The MCP tools include open, run_browser_agent, read_page, manual click/type/select actions, and screenshot.

Library use

The package exports a typed API. Browser.launch() starts Chrome and takes a decider configuration; Browser.connect(wsUrl) reuses an existing browser. browser.run({ goal, values, secrets }) returns a status and the reached URL, while browser.read() returns the page as numbered elements. If decider is omitted, the SYSTEM1_* environment variables are used. A custom object with ask(request, context) can replace the default decision-model client.

Run outcomes and limits

A run ends with a status such as done, needs_from_person, needs_approval, site_cannot, blocked, looping, limit, interrupted, or failed. System 2 is expected to inspect the resulting page and decide whether to continue, supply missing information, or report the failure. Steps that pay, book or cannot be undone are marked needs_approval and should proceed only when the task explicitly permits it.

The MCP server opens only http and https pages and does not open local files. Page text is treated as untrusted data; the skill and server instructions tell the agent not to follow instructions found on a page. The System One protocol posts a JSON request to SYSTEM1_URL and reads answers back. Screenshot placement differs between OpenRouter and a custom server, and can be controlled with imagesAsStateItems in the library. The CLI and library have no runtime dependencies, but the controller under test/controller requires cloning the repository because the npm package ships only dist/. The code is Apache-2.0 licensed, except the Stagehand patch, which follows Stagehand's MIT license.

HotRepo's take

HotRepo recorded the repository at 115 stars and 14 forks on 2026-11-26, with 14 stars added in the tracked new-project window on the TypeScript list. The hourly samples show a small evening rise from 101 to 115 stars over roughly six hours. There is no GitHub daily-rank record and no Hacker News discussion to add context. The README presents a concrete split between a decision model and an agent model, with CLI, library and MCP integration paths, rather than a generic browser-agent wrapper; the main thing to check for a specific workflow is whether the chosen System 1 model and the needs_* statuses fit how much autonomy you want to grant.

Project source and documentation

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. vercel-labs/agent-browserA Rust CLI that lets AI agents drive a browser command by command, reading compact page snapshots and acting on element refs.Rust50,711
  2. osolmaz/switchBuild harnesses that let classifier decision models pick actions step by step until a task is answered.TypeScript236