logo
icon

OpenAB MS Teams Bundle

一键部署的 Microsoft Teams Bot,集成 OpenAB + Kiro。同时部署 OAB agent 与 Teams gateway,只需在 Azure 注册 Bot Framework app、粘贴 messaging endpoint 即可使用。无需另外部署 gateway、无需手动修改 config.toml。 来源:https://github.com/openabdev/openab

template cover
部署次数0
发布者zeaburZeabur
创建于2026-05-21
最低配置2 核心4 GB
推荐配置4 核心8 GB
标签
AIDeveloper ToolsMS TeamsMicrosoft Teams

OpenAB MS Teams Bundle

一键部署的 OpenAB Microsoft Teams bot — bot agent 与 Bot Framework gateway 打包在一起,在 Azure 注册 bot、粘贴 messaging endpoint 即可。

前置需求:拥有可注册 Bot Service / App Registrations 的 Azure 账号,以及可 sideload 或发布 Teams app 的 Microsoft 365 tenant。个人 Microsoft 账号(Hotmail / Live)通常无法注册 Azure Bot Service,请使用 Azure AD 工作 / 学校账号。

部署内容

服务用途公开
openab运行 Kiro CLI 的 OAB agent
openab-gatewayTeams Bot Framework → WebSocket 桥接是(自动 HTTPS)

设置步骤

1. 在 Azure 创建 Bot

  1. Azure Portal创建资源 → 搜 Azure Bot → 创建。
  2. Bot handle:填一个唯一名称。Subscription / Resource group 自选。Pricing tier:dev 用 F0(免费)。
  3. Microsoft App ID:选 Type → Multi TenantCreation type → Create new Microsoft App ID
  4. Review + create → Create。等部署完成。
  5. 打开新建的 Azure Bot 资源 → Configuration
    • Microsoft App ID → 复制 → 粘贴到 Teams App ID
    • Messaging endpoint → 先留空
  6. 同 Configuration 页 → 点 Manage Password → 开启 App Registration → Certificates & secretsNew client secret → 复制 Value → 粘贴到 Teams App Secret

2. (选填)获取 Kiro API Key

如有付费 Kiro 订阅,前往 kiro.dev → Settings → API Keys 创建 key,填入 KIRO_API_KEY。免费方案跳过此步骤。

3. 部署

确认 App ID 与 App Secret 都填好 → 点部署。系统会自动分配公开 HTTPS 域名给 gateway 服务。

4. 设置 Messaging Endpoint

Bot Framework 没有 setEndpoint API——必须在 Azure Portal 手动粘贴 URL。

  1. 打开 openab-gateway 服务页面 → 查自动分配的域名。
  2. 完整 messaging endpoint:https://<你的_GATEWAY_域名>/webhook/teams
  3. 回 Azure Portal → 你的 Azure Bot 资源 → ConfigurationMessaging endpoint → 粘贴 → Apply

openab-gateway 服务 Instructions 区显示已自动填好的完整 endpoint,可直接复制。

5. 通过 Device Flow 认证 Kiro(仅免费方案)

若步骤 2 已填入 KIRO_API_KEY,跳过此步骤。

openab 服务启动后,在 Zeabur Dashboard 打开该服务的终端,运行:

runuser -u agent -- kiro-cli login --use-device-flow

6. 把 Bot 加进 Teams

  1. Azure Bot 资源 → ChannelsMicrosoft Teams → 同意条款。
  2. Teams Developer PortalApps+ New app → 填基本资料 → App featuresBot → 选刚才创建的 bot。
  3. 设置 scope(Personal / Team / Group chat),下载或发布 app manifest。Dev 阶段可用:Preview in Teams → 安装到 chat / channel。

7. 测试

打开 Teams → DM bot 或在 app 安装过的 channel @mention。Gateway 收到 activity → 通过 WebSocket 转发给 OAB → OAB 回复通过 Bot Framework reply API 发出。

想换不同的 agent 后端?

本 bundle 默认使用 Kiro。若想用 Claude / Codex / Cursor / Gemini / OpenCode / Hermes / Grok,请改部署对应的 bot template 搭配独立的 OpenAB Gateway

想用其他通讯平台?

请参考 OpenAB Telegram Bundle / Feishu Bundle / LINE Bundle / WeCom Bundle 或独立的 OpenAB Gateway,支持 Google Chat。

链接