一鍵部署的 Google Chat Bot,整合 OpenAB + Kiro。同時部署 OAB agent 與 Google Chat gateway,只需貼上 Service Account JSON、於 Google Cloud Console 設定一次 App URL 即可使用。無需另外部署 gateway、無需手動修改 config.toml。 來源:https://github.com/openabdev/openab

一鍵部署的 OpenAB Google Chat bot — bot agent 與 gateway 打包在一起,貼上 Service Account JSON、在 Google Cloud Console 設定一次 App URL 即可。
前置需求:Google Workspace 帳號(Business / Enterprise 方案)。消費者
@gmail.com帳號無法建立 Google Chat App。 同時需要可在 Google Cloud Console 啟用 Chat API 並建立 service account 的專案存取權。
| 服務 | 用途 | 公開 |
|---|---|---|
openab | 執行 Kiro CLI 的 OAB agent | 否 |
openab-gateway | Google Chat 事件 → WebSocket 橋接 | 是(自動 HTTPS) |
無需共用 PVC、無需手動修改 config.toml。Agent 的 config.toml 在首次啟動時自動生成,gateway URL 已預先設為 ws://openab-gateway:8080/ws、platform = "googlechat"。
GOOGLE_CHAT_ENABLED=true 與 GOOGLE_CHAT_AUDIENCE(JWT 驗證的 audience)由 bundle 自動設定,無需手動輸入。
如果你有付費的 Kiro 訂閱,前往 kiro.dev → Settings → API Keys 建立 key,填入 KIRO_API_KEY。免費方案跳過此步驟,於步驟 4 部署後再認證。
點擊部署。系統會自動分配公開 HTTPS 網域給 gateway 服務。
若步驟 2 已填入 KIRO_API_KEY,跳過此步驟。
待 openab 服務啟動後,於 Zeabur Dashboard 開啟該服務的終端機,執行:
runuser -u agent -- kiro-cli login --use-device-flow
依照畫面顯示的 URL 與 code 完成瀏覽器授權。
Google Chat App URL 必須在 GCP 手動設定——沒有 API。
https://<你的_GATEWAY_網域>/webhook/googlechatopenab-gateway 服務 Instructions 區會顯示已自動填好的完整 App URL,可直接複製。
在 Google Chat(mail.google.com/chat 或獨立 app)內以 app 名稱搜尋 → 開 DM → 發訊息。Gateway 驗證 JWT → 透過 WebSocket 轉發給 OAB → OAB 透過 service account 呼叫 Chat REST API 回覆。
Space / group chat:從 space 的 Apps & integrations 選單邀請 app 加入。
/home/agent/.config/openab/config.toml — OAB 設定(sessions、reactions 等)。首次啟動時從內建範本建立,[gateway] 區塊已預先設好。如需重建,刪除檔案後重啟服務。stable 標籤(ghcr.io/openabdev/openab:stable),OpenAB 推出新穩定版時自動更新。Gateway 目前 pin 在 ghcr.io/openabdev/openab-gateway:0.5.1(尚未發布 :stable 標籤)。可至 Zeabur Dashboard → 服務 → 設定修改映像標籤。Google Chat 對每個 incoming POST 都會簽 JWT。Gateway:
iss claim 為 [email protected]。aud claim 與 GOOGLE_CHAT_AUDIENCE 相符(bundle 自動設為 ${gateway-url}/webhook/googlechat)。任何被竄改或 replay 的 request 都會被其中一項驗證攔下,回 401。
本 bundle 預設使用 Kiro。若想用 Claude / Codex / Cursor / Gemini / OpenCode / Hermes / Grok,請改部署對應的 bot template 搭配獨立的 OpenAB Gateway。
請參考 OpenAB Telegram Bundle / Feishu Bundle / LINE Bundle / WeCom Bundle / MS Teams Bundle 或獨立的 OpenAB Gateway。