TL

trevin-lee/cobrowser

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

0 stars 0 forks 质量 79 趋势 14MIT

一个嵌入在VS Code / Cursor内的代理可控浏览器——你和你的AI代理共同驱动一个基于MCP的持久化Chromium。

概览

一个嵌入、由代理控制的浏览器——由你和你的 AI 代理共同操作。一个小型配套应用在屏幕外渲染每个工作区的一个独立浏览器,并将其流式传输到 VS Code / Cursor 的网页视图面板中。你驱动它(帧数 + 输入);你的代理通过 MCP(Claude Code、光标或 VS Code 代理)驱动相同的标签页。登录一次网站——会话会持续,代理作为你,从你的日常浏览器中沙箱中运行。 在macOS上的日常使用中。它故意不做的是限制。 在编辑器的扩展视图中搜索并安装;编辑器会保持更新。VS Code 从Visual Studio Marketplace安装;通过Cursor、VSCodium和其他编辑器安装OpenVSX。这两个版本只列出macOS版本。 每个版本的 .vsix 也都发布在 GitHub,供手动安装:苹果硅片的 cobrowser-darwin-arm64- .vsix,Intel 的 cobrowser-darwin-x64- .vsix,代码为 --install-extension 或命令。 安装后,从命令面板运行。

概述(AI 翻译)

一个嵌入、由代理控制的浏览器,位于你的编辑器内——由你和你的AI代理共同驱动。一个小型配套应用在每个工作区屏幕外渲染一个独立浏览器,并将其流式传输到VS Code / Cursor的网页视图面板中。你驱动它(帧数+输入);你的代理通过MCP(Claude Code、光标或VS Code代理)驱动相同的标签页。登录一次网站——会话会持续,代理作为你,从你的日常浏览器中沙箱化。

**状态:**在macOS日常使用中。它故意不做的事情属于限制范围内。

安装

在编辑器的扩展视图中搜索“Cobrowser并安装;编辑器会保持更新。VS Code通过Visual Studio Marketplace安装;通过Cursor、VSCodium和其他编辑器从Open VSX安装。这两个版本只列出macOS版本。

每个版本的 .vsix 也在 GitHub 上,方便手动安装:Apple 硅片上的 cobrowser-darwin-arm64- .vsix 安装,Intel 上的 cobrowser-darwin-x64- .vsix 使用,使用 code --install-extension 或 *Extensions: 从 VSIX… 安装命令。

安装后,从命令面板中运行Cobrowser: Open Browser。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Cobrowser

An embedded, agent-controllable browser inside your editor — co-driven by you and your AI agent. A small companion app renders one isolated browser per workspace offscreen and streams it into a webview panel in VS Code / Cursor. You drive it (frames + input); your agent drives the same tabs over MCP (Claude Code, Cursor, or VS Code’s agent). Log into a site once — the session persists and the agent acts as you, sandboxed from your daily-driver browser.

Status: in daily use on macOS. What it deliberately does not do is under Limits.

Install

Search for Cobrowser in your editor’s Extensions view and install it; the editor keeps it up to date. VS Code installs it from the Visual Studio Marketplace; Cursor, VSCodium and other editors from Open VSX. Both list the macOS builds only.

Each release’s .vsix is also on GitHub, for installing by hand: cobrowser-darwin-arm64-.vsix on Apple silicon, cobrowser-darwin-x64-.vsix on Intel, with code --install-extension or the Extensions: Install from VSIX… command.

After installing, run Cobrowser: Open Browser from the Command Palette. After an update, restart extensions when the editor offers to (or reload the window); the browser app and the daemon replace themselves with the new version, and windows still on the old one keep working with them.

No browser setup required — the companion app (a pinned Electron, ~120 MB) downloads on first run (see Requirements).

Why

  • Agent acts as you, but isolated. Each workspace gets its own browser profile inside the app, separate from your everyday Chrome or Firefox and outside the repo working tree. Manual logins persist there; the agent inherits them. (If you want the agent in your own browser instead, the bridge does that, one tab group or container at a time, when you turn it on.)
  • No floating browser windows. Tabs render offscreen — there is no OS window at all — and appear as editor tabs next to your code.
  • Consistent tool surface. MCP tool names mirror chrome-devtools-mcp (navigate_page, take_snapshot, click, fill, …).

Architecture

┌──────── cobrowser app (Electron, menu-bar icon; one per machine) ────────┐
│  workspace A ─ partition persist:A ─ tab ─ tab      (offscreen webContents)│
│  workspace B ─ partition persist:B ─ tab                                   │
│  paints → JPEG frames over a local WebSocket   ·   protocol relay          │
└───────────────┬──────────────────────────────────────────┬────────────────┘
                │ frames / resize / open / close            │ CDP over the same socket
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →