Agent Chrome
dev.agentchrome由 agentchrome.dev 發布官方發布者v0.1.0更新於 Nov 4, 2026
Let AI agents use your real, signed-in Chrome: tabs, clicks, forms, screenshots and video.
概覽
Chrome 擴充功能加遠端 MCP 伺服器,讓 AI 代理操作你真實已登入的 Chrome:分頁、點擊、表單、截圖與錄影。
- 可以做什麼
- 開啟、關閉、切換分頁並管理分頁群組,瀏覽頁面,列出並選擇已配對的 Chrome 設定檔
- 依座標或元素參照點擊、輸入、拖曳、捲動、懸停並填寫表單,讀取頁面的無障礙樹或正文
- 擷取視窗或整頁截圖,錄製 MP4/WebM 片段或 GIF,並儲存產出檔案
- 在頁面中執行 JavaScript,讀取主控台訊息與網路請求
- 把本機檔案上傳到輸入框與拖放區,處理 alert/confirm/prompt 對話框,等待文字、選擇器或網址出現
- 在明確開啟後搜尋瀏覽紀錄
- 適用情境
- 適合讓代理在你已登入的瀏覽器中工作,例如測試網頁應用程式、填寫真實表單、截圖或錄製示範,而不是另開一個無頭瀏覽器。也適合 Claude、ChatGPT 等透過 OAuth 連接遠端 MCP 伺服器的聊天應用程式。
- 執行需求
- 遠端端點 agentchrome.dev/mcp,使用 OAuth(或 bearer 帳戶金鑰)。完整安裝需要 Node.js 18 或更新版本、Google Chrome,並在每個 Chrome 設定檔中以未封裝方式載入 Agent Chrome 擴充功能,再用一次性配對碼連線。本機模式在 127.0.0.1 上執行伺服器,不需雲端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Agent Chrome,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/dev.agentchrome%2Fagentchrome/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"agent-chrome": {
"type": "http",
"url": "https://agentchrome.dev/mcp"
}
}
}README
agentchrome
Let your coding agents use the Chrome you already use.
[GitHub stars] [MIT license] [Hosted on Cloudflare]
Install · Let your agent install it · What it does · Tools · Security
Agent Chrome is a Chrome extension and an MCP server that let coding agents use your real, signed-in Chrome profiles. It works with Claude Code, Codex, Gemini CLI, Antigravity, Grok, Muse, Cursor, opencode and any other MCP client. Each agent works in its own tab group, and a blue border and an animated cursor show what it is doing. It can take screenshots and record video clips, and you can connect several Chrome profiles at once. The server runs on Cloudflare, or locally on your machine.
[Claude Code searching Wikipedia in Chrome: a blue border around the page, an animated cursor with the Claude Code logo, and a status pill with a Stop button]
What you see while an agent works. This clip was recorded by the extension itself (MP4).
If it's useful to you, please star the repo. It helps other people find it.
Install
You need Node.js 18 or newer and Google Chrome.
1. Run the installer
In one pass, the installer:
- Creates your account and saves the key to
~/.config/agentchrome/config.jsonwithchmod 600. - Adds an MCP server named
agentchrometo every agent it finds, in that agent's user-level config (table below). - Writes the
agentchromeskill once, to~/.agents/skills/agentchrome, and symlinks it into each agent's skills folder. - Unpacks the extension to
~/.agentchrome/extension. - Prints a pairing code and copies it to your clipboard.
To keep everything on your machine with no cloud at all, add --local. See Local mode.
2. Load the extension, once per Chrome profile
The installer opens chrome://extensions and shows the folder in Finder for you.
- In
chrome://extensions, turn on Developer mode. - Click Load unpacked and choose
~/.agentchrome/extension. Runagentchrome extension --pathto print the full path. - Pin Agent Chrome, click it, paste the pairing code and press Connect.
To add another profile (Work, Personal, a client's), switch to that profile, load the same folder, and run agentchrome pair for a new code. Each profile appears as its own browser in list_browsers.
3. Use it
Ask any agent:
Use agentchrome to open news.ycombinator.com, screenshot it, and record a short clip scrolling the front page.
Or let your agent install it
Paste this into Claude Code, Codex or any other coding agent:
Install agentchrome for me by following https://github.com/ShadowWalker2014/agentchrome/blob/main/AGENT_INSTALL.md
The agent runs the installer, then tells you the one step only you can do: loading the extension in Chrome and pasting the code.
Use it from Claude.ai or ChatGPT
The server is a standard remote MCP server with OAuth, so chat apps can use it as a connector. You don't need the command line tool for this.
Claude (claude.ai, Claude Desktop, Cowork): open Customize > Connectors > Add custom connector, enter https://agentchrome.dev/mcp and press Connect.
ChatGPT: turn on Developer mode under Settings > Apps & Connectors > Advanced, then create a connector with the same URL and choose OAuth.
A sign-in page opens. Paste your account key, or press Create an account if you don't have one. Then ask in chat: "Connect my Chrome." The assistant calls pairing_code and walks you through loading the extension and pasting the code.
Where each agent is configured
The installer backs up every JSON or TOML file it edits as <file>.bak-agentchrome. The skill is linked into ~/.claude/skills, ~/.codex/skills, ~/.gemini/skills, ~/.gemini/antigravity/global_skills, ~/.cursor/skills and ~/.config/opencode/skills.
Gemini CLI note: Gemini turns off every MCP server in folders you haven't trusted, so
gemini mcp listshows "Disabled" there. Trust the folder with/permissionsinside Gemini, and the server turns on.
Pick agents, or use OAuth instead of a key
With OAuth, agents that support MCP sign-in (Claude Code, Codex, Gemini CLI and others) open a sign-in page on first use. Paste your account key once (agentchrome key prints it) and the agent receives short-lived tokens, refreshed for 90 days.
Add it by hand
Any MCP client that speaks Streamable HTTP works. Use https://<server>/mcp with a bearer key, or point it at the URL and let OAuth discovery do the rest.
What it does
It also handles the parts of real websites that usually break browser agents:
- Drag and drop works for native HTML5 drag events (Trello-style boards, file drop areas) and for pointer-based sliders and sortable lists.
- File uploads never open the native file picker. The agent can pass real file paths from your computer, or file contents. If a click tries to open the picker, it is held back and the agent is told to fill it.
alert,confirm,promptand "Leave site?" dialogs are reported to the agent instead of freezing it. A navigation the agent asks for leaves an unsaved page and says so.- New tabs opened by a link join the agent's group, and downloads are reported in the result of the click that caused them.
- Pages that fail are explained: HTTP errors such as 404, DNS failures, crashed tabs,
chrome://pages that extensions can't touch, andfile://pages that need permission. - If you press Cancel on Chrome's "started debugging this browser" bar, every agent stops and is told why.
CLI
Tools
The tool names match Claude in Chrome, so prompts and skills written for it work unchanged.
Feature parity
Local mode
The server listens only on 127.0.0.1:47823 and rejects requests from web pages. In the extension popup, open Server and set it to http://127.0.0.1:47823 before connecting. Screenshots and recordings are saved to ~/.agentchrome/artifacts.
Self-host on Cloudflare
The script creates a D1 database, a KV namespace and an R2 bucket, runs the migrations, deploys the Worker with its Durable Object, sets a session secret, and prints your own install line (curl -fsSL https://my-agentchrome.<you>.workers.dev/install | sh). After you create your own account, set SIGNUP_MODE to "closed" so nobody else can sign up.
It runs comfortably on the Workers free tier for personal use. Durable Objects hibernate between calls, so an idle extension connection costs nothing.
Security
- Keys: account keys (
acm_sk_…) and device tokens (acm_dt_…) are 256-bit random values. The server stores only their SHA-256 hashes. The local config file ischmod 600. - Pairing: a browser joins your account only with a single-use 10-character code that expires after 15 minutes, created by someone who already holds the account key. Each Chrome profile gets its own device token, which you can revoke on its own.
- OAuth 2.1: PKCE (S256), dynamic client registration, refresh-token rotation and RFC 9728 discovery, using
@cloudflare/workers-oauth-provider. - Isolation: each account has its own Durable Object. MCP session ids are signed with HMAC and bound to the account, so one account cannot use another's session.
- Recordings: screenshots and videos you choose to save go to R2 behind unguessable 144-bit links and are deleted after 7 days.
- Control in the browser: the Stop button on the page or in the popup pauses every agent at once. You can also ask before each new site, block sites, and keep history access off, which is the default.
- Rate limits: sign-up, pairing and the sign-in page are rate-limited per IP address.
- Untrusted pages: the skill and the server instructions tell agents never to follow instructions found inside web pages.
Please report vulnerabilities through a private GitHub security advisory.
How it works
The extension keeps one WebSocket open to the server. The server runs on Cloudflare Workers with one Durable Object per account. Each MCP session gets its own tab group in every paired profile. Tools that act on a page use the Chrome debugger protocol for input, screenshots, console and network logs. A small content script provides element refs, the accessibility tree, the overlay and the agent cursor.
Development
See AGENTS.md for the architecture and the rules for contributors.
Star history
[Star history chart for agentchrome]If agentchrome saves you time, please star it. Stars help other developers find the project.
License
MIT
來源:README.md,提交 aa04500
工具
0版本歷史
1- v0.1.0最新Nov 4, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分