K-Browser

Open source · MIT · macOS

Your agents.Your Chrome.Your rules.

K-Browser lets the agents on your Mac use the Chrome you are already signed in to — in a window you can watch. Each agent sees only the tabs it opened, never takes your keyboard, and hands the tab to you when a person is needed.

Install in a few minutes
# 1
$ npm install
# 2 · agents + bridge
$ k-browser install
? Block site categories: banking,email
✓ claude-code  ✓ codex  ✓ antigravity  ✓ gemini-cli
# 3 · pair the extension
$ k-browser pair
$ k-browser doctor
"ok": true, "startedBy": "launchd"
Works withand any program you give its own CDP endpoint

Three small parts, one clear boundary

Agents never touch Chrome directly. Every request goes through a local bridge that knows who is asking and what they may do.

  1. 1

    MCP server

    one per agent

    Each agent gets its own token and permissions. Claude Code, Codex, Antigravity and Gemini CLI are registered for you.

  2. 2

    Bridge

    127.0.0.1:9444

    A small local service, started at login. It enforces each client’s rules, masks secrets and keeps the activity log.

  3. 3

    Extension

    in your Chrome

    Works only the agents’ own tabs, in a separate window that never comes to the front. Paired with a code you hold.

Built so you stay in control

An agent driving your signed-in browser has to be easy to watch, easy to stop, and unable to wander.

See everything, from the side panel

Open the K-Browser side panel to see what each agent is doing, answer hand-offs, and change its rules without touching a config file.

  • Each agent’s tabs and actions, live
  • Hand-offs waiting for you, with Show and Return
  • Blocked site categories, screenshots and eval, per agent
  • Revoke an agent or close its tabs
The K-Browser side panel showing two agents, a pending hand-off, their tabs and an action log.
Side panel, sample data. It follows Chrome’s language (English or Traditional Chinese).

The tools an agent gets

Fifteen MCP tools, each scoped to the agent’s own tabs.

All tools in the docs

Optional: fast, saved flows with Kav

Kav-FastwebAgent runs hand-written website flows without a model call per step. With Kav set up, agents get run_flow — it runs in your Chrome as that agent, under the same rules. Kav’s judgement calls go to a local model by default; the cloud model is opt-in and shows you what it would send.

Kav flows

Get started

macOS, Chrome 125+ and Node.js 22+.

  1. Get the code
    git clone https://github.com/kaiwutech-TW/k-browser.git && cd k-browser && npm install
  2. Register your agents and start the bridge
    k-browser install
  3. Load extension/ in chrome://extensions (Developer mode → Load unpacked)
  4. Pair the extension with the bridge
    k-browser pair
  5. Check, then restart your agent
    k-browser doctor
Full install guide