XAI Agent Browser 係一款开源共享瀏覽器,讓 AI Agent 與人類用戶喺同一個 Chromium 實例中並肩工作——睇到同一個頁面、分享同一個登入狀態、即時對話。
AI Agent 與人類用戶共享同一個真實 Chromium,無需無頭模式
AI Agent 與人類睇到完全一樣嘅頁面狀態,包括所有 JS 渲染、CSP 限制、CORS 行為——唔係截圖,係真實 DOM。
一鍵切換「5仔控制」與「老闆控制」,423 Lock 機制確保雙方唔會搶 mouse/keyboard。雙方都能隨時接管。
內置 AI Chat 面板,直接問:「呢個係咩網頁?」「我想點呢個掣」—— 支援本地 LM Studio,唔使 API 費用。
AI Agent 操控瀏覽器時,cursor 位置實時顯示喺頁面上,人類可以睇到 AI 喺做乜,包括 cursor 動畫轨迹。
REST IPC Server 內置喺瀏覽器進程,Hermes Agent 可以直接控制導航、click、type、scroll、snapshot、screenshot。
支援多個獨立 Tab,可新增、關閉、切換,每個 Tab 有自己嘅 URL、標題、載入狀態。
Electron + Wayland + Hermes Agent,三層分離,各司其職
Electron app 用 BrowserView 載入真正嘅 Chromium,支援 GPU 加速、Wayland 顯示。
Browser 內置 HTTP server,listen 127.0.0.1:9876,提供 REST endpoints。
GET /health, /tabs, /screenshot, /snapshot POST /navigate, /click, /type, /scroll, /chat
Hermes 透過 HTTP 發送指令,browser 執行並返回結果。人類用戶可以隨時切換為「老闆控制」。
Chat 面板直接對話本地 LLM,唔使任何第三方 API。所有對話完全私隱,唔經過任何 server。
需要 Linux 桌面環境 + Electron + Hermes Agent
Wayland 或 X11,有 display 輸出(非純 headless)
已在專案 node_modules,無需額外安裝
v0.17+(用於 AI 自動化控制)
本地 LLM,Port 1234,支援 OpenAI-compatible API
cd ~/Downloads wget 'https://e5825.taile1991c.ts.net/xai-browser/download/XAI%20Agent%20Browser-0.3.0-mvp2-linux-x86_64.AppImage' chmod +x "XAI Agent Browser-0.3.0-mvp2-linux-x86_64.AppImage" ./"XAI Agent Browser-0.3.0-mvp2-linux-x86_64.AppImage"
cd ~/Downloads wget 'https://e5825.taile1991c.ts.net/xai-browser/download/XAI%20Agent%20Browser-0.3.0-mvp2-linux-x64.tar.gz' tar xzf "XAI Agent Browser-0.3.0-mvp2-linux-x64.tar.gz" ./xai-agent-browser
git clone https://github.com/YOUR_USERNAME/xai-browser.git cd xai-browser && npm install npm run build:linux # Linux ✅ npm run build:win # Windows(需 Windows/macOS 機) npm run build:mac # macOS(需 macOS 機)
Ubuntu 20.04+ / Wayland 或 X11
本地 LLM,Port 1234
AI 自動化控制,v0.17+
# AppImage 雙擊運行,或喺終端: ./"XAI Agent Browser-0.3.0-mvp2-linux-x86_64.AppImage" # 多實例(不同 project) AI_BROWSER_PORT=9877 ./"XAI Agent Browser..."
export AI_BROWSER_IPC_URL="http://127.0.0.1:9876" export LM_STUDIO_URL="http://127.0.0.1:1234" # 可選 export LM_MODEL="qwen3.8-27b-uncensored-hauhaucs-aggressive-mtp"
# 在 Hermes 配置中加入 browser provider: browser: provider: xai-browser ipc_url: "http://127.0.0.1:9876" # CDP remote debugging(進階) cdp_url: "ws://127.0.0.1:9222"
npx agent-browser --cdp 9222 open https://example.com npx agent-browser --cdp 9222 snapshot
為乜要用 XAI Agent Browser?以下是 2026 年主要 AI Browser 方案横評
| 功能 | XAI Agent Browser | Perplexity Comet | OpenAI Operator | Claude Computer Use | Skyvern | Browserbase |
|---|---|---|---|---|---|---|
| 真實有頭 Chromium | ✔ | ✔(自家 Chromium) | ✔ | 截圖驅動 | ✔(Playwright) | 雲端 browser farm |
| 人類可見 AI cursor | ✔ 即時顯示 | ✘ | ✘ | ✘ | ✘ | ✘ |
| AI/人類即時切換 | ✔ 423 Lock | ✘ | ✘ | ✘ | ✘ | ✘ |
| 共享登入狀態 | ✔ 同進程 | 需登入 Comet | ✘ 獨立 session | ✘ VM 隔離 | 需 profile sharing | 共享 session |
| 側邊 Chat 面板 | ✔ 本地 LLM | ✔ Perplexity AI | ✘ | ✘ | ✘ | ✘ |
| 本地 LLM(自己嘅模型) | ✔ LM Studio | ✘ | ✘ | ✘ | 可自托管 | ✘ |
| 完全私隱(數據不外傳) | ✔ 100% 本地 | ✘ 雲端上網 | ✘ 雲端操作 | 可 self-host | self-host 可達 | ✘ 雲端 |
| 開源 | ✔ MIT | ✘ 封閉 | ✘ 封閉 | Computer Use API 開源 | ✔ AGPL / 開源 | ✘ 封閉 |
| 免費(無 API 費用) | ✔ 完全免費 | 有付費版 | 需 OpenAI 訂閱 | 需 Anthropic API | ✔ self-host 免費 | ✘ 收費服務 |
| Hermes Agent 原生整合 | ✔ 內置 IPC | ✘ | ✘ | MCP 整合 | ✘ | ✘ |
| 支援 Linux 桌面 | ✔ Wayland/X11 | ✘ Mac/Win/iOS/Android | Browser in cloud | ✔ | ✔ self-host | ✔(雲端) |
| 多 Tab 管理 | ✔ | ✔ | ✘ | ✘ | 單頁流程 | 1 個 page/session |
| 企業合規 / 數據隔離 | ✔ 完全隔離 | ⚠️ 用戶數據爭議 | 企業版有控制 | ✔ | ✔ 自托管 | 有合規方案 |