Skip to content

openabdev/openab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

648 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

OpenAB β€” Open Agent Broker

Stars GitHub Release License

OpenAB banner

A lightweight, secure, cloud-native ACP harness that bridges Discord, Slack, and any Agent Client Protocol-compatible coding CLI (Kiro CLI, Claude Code, Codex, Gemini, OpenCode, Copilot CLI, etc.) over stdio JSON-RPC β€” delivering the next-generation development experience. Telegram, LINE, Feishu/Lark, Google Chat, and other webhook-based platforms are supported via the standalone Custom Gateway.

πŸͺΌ Join our community! Come say hi on Discord β€” we'd love to have you: πŸͺΌ OpenAB β€” Official πŸŽ‰

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  Gateway WS   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  ACP stdio    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Discord    │◄─────────────►│              │──────────────►│  coding CLI  β”‚
β”‚   User       β”‚               β”‚    openab    │◄── JSON-RPC ──│  (acp mode)  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€  Socket Mode  β”‚    (Rust)    β”‚               β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚   Slack      │◄─────────────►│              β”‚
β”‚   User       β”‚               β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€                      β”‚ WebSocket (outbound)
β”‚   Telegram   │◄──webhook──┐         β”‚
β”‚   User       β”‚            β”‚         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€            β–Ό         β–Ό
β”‚   LINE       │◄──webhookβ”€β”€β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   User       β”‚            β”‚  Custom Gateway  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€            β”‚  (standalone)    β”‚
β”‚  Feishu/Lark │◄───WS──────│                  β”‚
β”‚   User       β”‚            β”‚                  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€            β”‚                  β”‚
β”‚ Google Chat  │◄──webhook──│                  β”‚
β”‚   User       β”‚            β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Demo

openab demo

Features

  • Multi-platform β€” supports Discord and Slack, run one or both simultaneously
  • Custom Gateway β€” extend to Telegram, LINE, Feishu/Lark, Google Chat, MS Teams via standalone gateway
  • Pluggable agent backend β€” swap between Kiro CLI, Claude Code, Codex, Gemini, OpenCode, Copilot CLI via config
  • @mention trigger β€” mention the bot in an allowed channel to start a conversation
  • Thread-based multi-turn β€” auto-creates threads; no @mention needed for follow-ups
  • Multi-agent collaboration β€” bot-to-bot messaging for coordinated workflows (docs/multi-agent.md)
  • Edit-streaming β€” live-updates the Discord message every 1.5s as tokens arrive
  • Emoji status reactions β€” πŸ‘€β†’πŸ€”β†’πŸ”₯/πŸ‘¨β€πŸ’»/βš‘β†’πŸ‘+random mood face
  • Image & file support β€” send images and files through chat (docs/sendimages.md, docs/sendfiles.md)
  • Scheduled messages β€” config-driven cron jobs for automated agent prompts (docs/cronjob.md)
  • Slash commands β€” built-in slash command support (docs/slash-commands.md)
  • Session pool β€” one CLI process per thread, auto-managed lifecycle
  • ACP protocol β€” JSON-RPC over stdio with tool call, thinking, and permission auto-reply support
  • Kubernetes-ready β€” Dockerfile + k8s manifests with PVC for auth persistence
  • Voice message STT β€” auto-transcribes Discord voice messages via Groq, OpenAI, or local Whisper server (docs/stt.md)

Quick Start

Prerequisites

Before running openab, enable these in the Discord Developer Portal:

  1. Bot β†’ Privileged Gateway Intents:
    • βœ… Message Content Intent
    • βœ… Server Members Intent
  2. OAuth2 β†’ URL Generator β†’ Bot Permissions:
    • Send Messages, Embed Links, Attach Files
    • Read Message History, Add Reactions

See docs/discord.md for a detailed step-by-step guide.

1. Create a Bot

Discord

See docs/discord.md for a detailed step-by-step guide.

Slack

See docs/slack-bot-howto.md for a detailed step-by-step guide.

Telegram (via Custom Gateway)

See docs/telegram.md for the full setup guide. Requires the standalone Custom Gateway service.

LINE (via Custom Gateway)

See docs/line.md for the full setup guide. Requires the standalone Custom Gateway service.

Feishu/Lark (via Custom Gateway)

See docs/feishu.md for the full setup guide. Requires the standalone Custom Gateway service. Supports WebSocket long-connection (default, no public URL needed) and HTTP webhook fallback.

Google Chat (via Custom Gateway)

See docs/google-chat.md for the full setup guide. Requires the standalone Custom Gateway service.

2. Install with Helm (Kiro CLI β€” default)

helm repo add openab https://openabdev.github.io/openab
helm repo update

helm install openab openab/openab \
  --set agents.kiro.discord.botToken="$DISCORD_BOT_TOKEN" \
  --set-string 'agents.kiro.discord.allowedChannels[0]=YOUR_CHANNEL_ID'

# Slack
helm install openab openab/openab \
  --set agents.kiro.slack.enabled=true \
  --set agents.kiro.slack.botToken="$SLACK_BOT_TOKEN" \
  --set agents.kiro.slack.appToken="$SLACK_APP_TOKEN" \
  --set-string 'agents.kiro.slack.allowedChannels[0]=C0123456789'

3. Authenticate (first time only)

kubectl exec -it deployment/openab-kiro -- kiro-cli login --use-device-flow
kubectl rollout restart deployment/openab-kiro

4. Use

In your Discord channel:

@YourBot explain this code

The bot creates a thread. After that, just type in the thread β€” no @mention needed.

Slack: @YourBot explain this code in a channel β€” same thread-based workflow as Discord.

Other Agents

Agent CLI ACP Adapter Guide
Kiro (default) kiro-cli acp Native docs/kiro.md
Claude Code claude-agent-acp @agentclientprotocol/claude-agent-acp docs/claude-code.md
Codex codex-acp @zed-industries/codex-acp docs/codex.md
Gemini gemini --acp Native docs/gemini.md
OpenCode opencode acp Native docs/opencode.md
Copilot CLI ⚠️ copilot --acp --stdio Native docs/copilot.md
Cursor cursor-agent acp Native docs/cursor.md

πŸ”§ Running multiple agents? See docs/multi-agent.md

Configuration Reference

πŸ“– Full reference with all options, defaults, and Helm mapping: docs/config-reference.md

[discord]
bot_token = "${DISCORD_BOT_TOKEN}"   # supports env var expansion
allowed_channels = ["123456789"]      # channel ID allowlist
# allowed_users = ["987654321"]       # user ID allowlist (empty = all users)

[slack]
bot_token = "${SLACK_BOT_TOKEN}"     # Bot User OAuth Token (xoxb-...)
app_token = "${SLACK_APP_TOKEN}"     # App-Level Token (xapp-...) for Socket Mode
allowed_channels = ["C0123456789"]   # channel ID allowlist (empty = allow all)
# allowed_users = ["U0123456789"]    # user ID allowlist (empty = allow all)

[agent]
command = "kiro-cli"                  # CLI command
args = ["acp", "--trust-all-tools"]   # ACP mode args
working_dir = "/tmp"                  # agent working directory
env = {}                              # extra env vars passed to the agent

[pool]
max_sessions = 10                     # max concurrent sessions
session_ttl_hours = 24                # idle session TTL

[reactions]
enabled = true                        # enable emoji status reactions
remove_after_reply = false            # remove reactions after reply

Kubernetes Deployment

The Docker image bundles both openab and kiro-cli in a single container.

β”Œβ”€ Kubernetes Pod ──────────────────────────────────────┐
β”‚  openab (PID 1)                                       β”‚
β”‚    └─ kiro-cli acp --trust-all-tools (child process)  β”‚
β”‚       β”œβ”€ stdin  ◄── JSON-RPC requests                 β”‚
β”‚       └─ stdout ──► JSON-RPC responses                β”‚
β”‚                                                       β”‚
β”‚  PVC (/data)                                          β”‚
β”‚    β”œβ”€ ~/.kiro/                  (settings, sessions)  β”‚
β”‚    └─ ~/.local/share/kiro-cli/  (OAuth tokens)        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Deploy without Helm

kubectl create secret generic openab-secret \
  --from-literal=discord-bot-token="your-token"

kubectl apply -f k8s/configmap.yaml
kubectl apply -f k8s/pvc.yaml
kubectl apply -f k8s/deployment.yaml
Manifest Purpose
k8s/deployment.yaml Single-container pod with config + data volume mounts
k8s/configmap.yaml config.toml mounted at /etc/openab/
k8s/secret.yaml DISCORD_BOT_TOKEN injected as env var
k8s/pvc.yaml Persistent storage for auth + settings

Inspired By

License

MIT

About

A lightweight, secure, cloud-native ACP harness that bridges Discord and any ACP-compatible coding CLI.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages