🚀 启动
① 直接运行(推荐)
chmod +x agentgw-macos-arm64
./agentgw-macos-arm64
② cargo run ③ Docker
docker compose up --build
# http://agentgw.app.localhost
🌐 Chrome CDP
# AgentWeb managed browser
--remote-debugging-address=127.0.0.1
--remote-debugging-port=9223
# Verify through LGW/RGW proxy, not raw Chrome CDP
验证:
LGW /browser/status
⚙️ 环境变量
AGENTGW_BIND=0.0.0.0:17888
AGENTGW_CDP_HTTP=http://127.0.0.1:9223
AGENTGW_REMOTE_GW=wss://remote-host/ws?role=upstream
AGENTGW_DIST_DIR=dist
RUST_LOG=agentgw=info
🔗 双 GW 模式
mac-gw 启动时设置 AGENTGW_REMOTE_GW,自动连接远端 GW 并注册为 upstream peer。远端 GW 可通过 /api/cmd 将命令路由给本机 Chrome。
AGENTGW_REMOTE_GW=wss://agentgw.app.localhost/ws?role=upstream \
./agentgw-macos-arm64