Skip to content
View original post on X: meng shaoX· 46/100AI score46/100

LiteLLM open-sources agentchat, an SDK connecting agents to chat platforms

AISummary

LiteLLM has open-sourced agentchat, a Python SDK that connects an AI agent built with any framework to Slack, Teams, iMessage, WhatsApp, and Discord.

The SDK handles OAuth, webhook signatures, socket connections, deduplication, and session isolation, so developers can focus on agent logic.

The post describes a pipeline of channel adapters feeding a core that deduplicates, locks sessions, and dispatches to an application handler, with replies sent back through the original channel.

AIWhy it matters

The post explains agentchat's layered design of channel adapters, deduplication, and session handling, which shows how to connect one agent to many chat platforms.

Post on XView on X
meng shaoVerified on X
@shao__meng

LiteLLM 把 Agent 传输层 SDK 开源了

agentchat 这个 Python SDK 让你可以用任意框架写的 AI Agent 统一接入 Slack、Teams、iMessage、WhatsApp、Discord 五个聊天平台。避免自己处理一遍 OAuth、webhook 签名、Socket 连接、去重、会话隔离这种接入工作。

架构:管道 + 协议 + 值对象
平台事件 → Channel 适配器(解码/路由)→ AgentChat 核心(去重→加会话锁→入历史→分发)
→ 应用 handler(授权、调用你的 agent)→ 回复原路送达

开源地址:https://github.com/BerriAI/agentchat

Ishaan@ishaan_jaff
We're open sourcing agentchat, it's a unified SDK that allows you to connect your agent to Slack, Teams, iMessage, email, and WhatsApp in 2 lines of code and works with any agent SDK We noticed we kept on rebuilding the stack to connect our agents to different channels and ended up building the same shared layer. That's where agentchat came in. This allows you as a developer to focus on your core agent's brain and let the SDK manage your connections with different channels.
View quoted post on X

Source: meng shao · x.comPublished · added here