v0.3.0-mvp2 · Hermes AI 原生瀏覽器

共享瀏覽器,
AI 與人類同行

XAI Agent Browser 係一款开源共享瀏覽器,讓 AI Agent 與人類用戶喺同一個 Chromium 實例中並肩工作——睇到同一個頁面、分享同一個登入狀態、即時對話。

⚡ 快速安裝 📖 了解原理

✨ 核心功能

AI Agent 與人類用戶共享同一個真實 Chromium,無需無頭模式

👁️

同步視覺

AI Agent 與人類睇到完全一樣嘅頁面狀態,包括所有 JS 渲染、CSP 限制、CORS 行為——唔係截圖,係真實 DOM。

🤖

AI / 人類模式切換

一鍵切換「5仔控制」與「老闆控制」,423 Lock 機制確保雙方唔會搶 mouse/keyboard。雙方都能隨時接管。

💬

側邊 Chat

內置 AI Chat 面板,直接問:「呢個係咩網頁?」「我想點呢個掣」—— 支援本地 LM Studio,唔使 API 費用。

🖱️

AI Mouse 模擬

AI Agent 操控瀏覽器時,cursor 位置實時顯示喺頁面上,人類可以睇到 AI 喺做乜,包括 cursor 動畫轨迹。

🔗

Hermes IPC

REST IPC Server 內置喺瀏覽器進程,Hermes Agent 可以直接控制導航、click、type、scroll、snapshot、screenshot。

📑

多 Tab 管理

支援多個獨立 Tab,可新增、關閉、切換,每個 Tab 有自己嘅 URL、標題、載入狀態。


⚙️ 系統架構

Electron + Wayland + Hermes Agent,三層分離,各司其職

# ── XAI Agent Browser Architecture ────────────────── # Layer 1: User Interface (Wayland/X11 Display) ┌─────────────────────────────────────────┐ │ Browser Window (Electron) │ │ ┌─────────────────┬────────────────┐ │ │ │ Chromium │ Side Panel │ │ │ │ BrowserView │ (React/HTML) │ │ │ │ 真正 Web 頁面 │ Chat / Tabs │ │ │ └─────────────────┴────────────────┘ │ └──────────────────┬──────────────────────┘ ↕ IPC (Electron contextBridge) # Layer 2: Hermes Agent (本機或遠程) ┌─────────────────────────────────────────┐ │ Hermes Agent (另一 process) │ │ 控制方式:HTTP REST (127.0.0.1:9876) │ │ 工具:agent-browser CLI (CDP :9100) │ └──────────────────┬──────────────────────┘ ↕ OpenAI-compatible API # Layer 3: AI Brain (本地) ┌─────────────────────────────────────────┐ │ LM Studio (127.0.0.1:1234) │ │ qwen3.8-27b / qwen2.5 / 其他本地模型 │ │ 零 API 費用,完全私隱 │ └─────────────────────────────────────────┘
1

Electron 起動 Chromium

Electron app 用 BrowserView 載入真正嘅 Chromium,支援 GPU 加速、Wayland 顯示。

2

Hermes IPC Server 啟動

Browser 內置 HTTP server,listen 127.0.0.1:9876,提供 REST endpoints。

GET  /health, /tabs, /screenshot, /snapshot
POST /navigate, /click, /type, /scroll, /chat
3

Hermes Agent 接管控制

Hermes 透過 HTTP 發送指令,browser 執行並返回結果。人類用戶可以隨時切換為「老闆控制」。

4

LM Studio 提供智能

Chat 面板直接對話本地 LLM,唔使任何第三方 API。所有對話完全私隱,唔經過任何 server。


⚡ 快速安裝

需要 Linux 桌面環境 + Electron + Hermes Agent

🐧

Linux 桌面

Wayland 或 X11,有 display 輸出(非純 headless)

⚡

Electron

已在專案 node_modules,無需額外安裝

🤖

Hermes Agent

v0.17+(用於 AI 自動化控制)

🧠

LM Studio(可選)

本地 LLM,Port 1234,支援 OpenAI-compatible API

📦 步驟 1:直接下載(二選一)

Linux AppImage(推薦,105MB)

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"

Linux tar.gz(99MB)

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 機)
⚠ Windows / macOS 版本需喺對應平台機上編譯。Linux AppImage 可直接下載使用,雙擊運行。
📦 步驟 2:系統需求
🐧

Linux

Ubuntu 20.04+ / Wayland 或 X11

🧠

LM Studio(可選)

本地 LLM,Port 1234

🤖

Hermes Agent(可選)

AI 自動化控制,v0.17+

📦 步驟 3:首次啟動
# AppImage 雙擊運行,或喺終端:
./"XAI Agent Browser-0.3.0-mvp2-linux-x86_64.AppImage"

# 多實例(不同 project)
AI_BROWSER_PORT=9877 ./"XAI Agent Browser..."
📦 步驟 4:Hermes Agent 配置(可選)

設定環境變數

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 配置示例

# 在 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"

用 agent-browser CLI 測試

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
企業合規 / 數據隔離 ✔ 完全隔離 ⚠️ 用戶數據爭議 企業版有控制 ✔ ✔ 自托管 有合規方案
📌 核心差異: XAI Agent Browser 係唯一同時做到「共享同一個 Chromium 進程」+ 「人類可即時睇到 AI cursor」+ 「完全本地私隱」+ 「Hermes Agent 原生整合」嘅方案。 大部分競爭對手係雲端服務(數據外傳)或只係無頭自動化(人類睇唔到)。