BerriAI / agentchat
git clone https://github.com/BerriAI/agentchat.git
A unified Python SDK for connecting ai agents to Slack, Discord, Teams, Email
+1
stars, 24h · #9,508
+~7
stars, 7 days · #10,156
+151
stars, 30 days · #3,228
152
★ total · +5% this week
18
forks · 3 open issues
Star history (as recorded here)
LanguageRust
LicenseMIT
Created2026-09-28 (23d ago)
Last push2d ago
Watchers0
OwnerOrganization
Links
README excerpt
# agentchat AgentChat has a shared Rust core with compatible Python, Node.js/TypeScript and Rust interfaces. The native Node/Rust channel currently targets Slack, including the Claude Agent SDK example. Existing Python channel integrations remain supported through native bindings. Implementation code lives under `src/`; `python/agentchat/` contains only the compatible interface. See the migration and support guide. a minimal sdk to connect your agents to slack, teams, imessage, whatsapp, telegram. use any SDK (Claude Agents, OpenAI Agents, Langchain DeepAgents, Pydantic Agents) and instantly connect it to all supported channels. ## Quickstart ### 1. Install Installing from this checkout requires a Rust toolchain. Published binary wheels do not require a compiler. [code] ### 2. Usage Save this as `bot.py`: [code] ## Other agent SDKs ### 1. Claude Agent SDK [code] The mapping connects each chat conversation to its Claude session. Claude session documentation ### 2. Langchain Deep Agents [code] The checkpointer keeps a separate conversation for each thread ID. Deep Agents retains its standard planning, virtual filesystem, and subagent tools. Deep Agents quickstart ### 3. Pydantic AI Install `pydantic-ai-slim[openai]`. Reuse `OPENAI_API_KEY` and `OPENAI_MODEL` from the quickstart. [code] `all_messages()` includes the previous history and the current run. Replace the stored history with this list after each turn. ### 4. LangGraph SDK [code] ## Supported channels | Channel | Connection | Install extra | Setup | | --- | --- | --- | --- | | Slack | Socket Mode | Included | Slack guide | | Microsoft Teams | Authenticated HTTPS endpoint | `teams` | Teams guide | | iMessage | BlueBubbles on a Mac signed into Messages | `imessage` | iMessage guide | | WhatsApp | Business Cloud API with signed webhooks | `whatsapp` | WhatsApp guide | | Discord | Bot gateway | `discord` | Discord guide | | Telegram | Bot API long polling or HTTPS webhook | `telegram` | Telegram guide |