# Repository Briefing: anomalyco/browse
> Source: https://repoforai.com/repo/anomalyco/browse (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/anomalyco/browse
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A+ (89/100 · Maintenance 35/35 · Adoption 14/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.3.0 (2026-12-04) — https://github.com/anomalyco/browse/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: MCP, CLI, Self-Hosted
- **Momentum**: 1,284 ★ total (+7 24h / +146 7d) · 97 forks
- **When to Use**: Best for: Interactive browser tasks and debugging that need an existing session, tab-level diagnostics or human confirmation before the agent continues. Skip if: You need deterministic, unattended CI, cannot grant the Chromium extension broad browser permissions, or cannot let an agent work with authenticated page data.

## Overview
```text
### Architecture & Core Mechanics
The MCP client starts `browse mcp`, a stdio proxy that launches the native relay on demand and forwards calls to loopback port 19988, falling back to an available port in 19990–19997. The Rust relay (`browse serve`, in `rust/`) manages tabs, handoffs and capture state. The Chromium extension (`src/`) connects over WebSocket and drives tabs via CDP using `chrome.debugger`; Firefox-family browsers connect directly over WebDriver BiDi.

The relay embeds QuickJS for tool orchestration through `execute`, distinct from `eval`, which runs JavaScript in the page. OpenCode receives individual tools by default; other clients receive `execute`, `status` and `tabs`. `OPENCODE_BROWSER_TOOLS=plain|execute|all` overrides that selection. The TypeScript UI stack lists `solid-js`, `@solidjs/meta`, `@kobalte/core` and `@opencode/ui`, with Vite configuration for the main and content builds.

### Key Capabilities & Differentiators
Browse uses a tab ID as the unit of work. Opening a named tab again returns the existing tab without navigating it; sessions can group tabs and set per-tab options such as `allowedOrigins`, `readOnly` and `keepOpen`. Page snapshots include iframes and compact element references for actions such as clicking and filling forms. The tool surface includes screenshot diffs, console logs, credential-redacted network captures and tab video recording. PDF export is experimental and off by default.

Handoff is part of the task flow: a person can complete login, 2FA or payment in the same tab and select Continue to resume the agent. A separate demonstration tool records a flow the person performs. Chromium and Firefox can be connected at the same time; a client can use the browser identifier from `status` when opening a tab or navigating without an existing tab.

### Trade-offs & Limitations
Unlike direct Playwright automation in a dedicated test profile, Browse is built to reuse an existing browser session and let a person take over the same tab. That saves session setup for interactive work, but existing session state, extensions and human intervention make it a weaker default for deterministic CI. Firefox's beta driver does not require an extension, but Firefox must be running with remote control enabled, and pages can see `navigator.webdriver = true` while it is driven.

The trust boundary is the signed-in browser: the Chromium extension needs debugger permission and access to all sites, and page content can try to steer the agent. A per-user relay token and per-browser pairing keys control access to the relay connection; they do not decide which page instructions or authenticated actions are safe. Use a separate profile for sensitive work where practical, narrow tab scope with origin restrictions and read-only mode, and assess what the MCP client sends to its model provider. A local relay alone does not keep every page result on-device.

### Hardware & Deployment Guide
The native CLI is available for macOS, Linux and Windows. `npx @opencode/browse install` is one installation route; the npm launcher requires Node 22 or newer. The installer can configure agent clients and pair a Chromium extension; an already-running client needs an MCP reload or restart. For Firefox, `browse firefox --dedicated` selects a separate clean profile, and `--headless` starts a dedicated headless profile. No GPU or model runtime is required by Browse; plan capacity around active browser pages and the volume of recordings and captures.

For separate agent and browser hosts, `browse install --remote` exposes the extension connection while keeping the HTTP API on loopback. That connection is not encrypted by Browse, so use a private encrypted network such as WireGuard or Tailscale rather than exposing it to the public internet. Release v0.3.0 adds beta Firefox and Zen support; v0.1.5 records the OpenCode Browse extension name, and v0.1.4 makes update checks run at startup and hourly even when automatic installation is disabled.
```

## Key Capabilities
```text
- Transport: `browse mcp` accepts stdio calls and starts a local Rust relay on demand.
- Browser drivers: Chromium uses CDP through `chrome.debugger`; Firefox-family support uses direct WebDriver BiDi and is in beta.
- Tool routing: OpenCode gets individual tools by default; other clients get `execute`, `status` and `tabs`, with JavaScript running in QuickJS.
- Tab controls: Named tabs can survive a relay restart or extension reload, but not a browser restart; tabs can carry `allowedOrigins` and `readOnly` settings.
- Human handoff: A person can finish login, 2FA or payment in the same tab, then select Continue to resume the task.
- Diagnostics: Page snapshots expose element references; screenshots can be compared against a baseline, and tab network captures redact credentials.
```

## Quick Start / Clone
```bash
curl -fsSL https://opencode.ai/browse/install | bash
```
