
channels-sdk
Bring AI agents into chat platforms with native, interactive UI
Replaces —

Who it's for
If your team has built a LangGraph or CrewAI agent for internal workflows (incident triage, docs Q&A, deployment automation) and needs it accessible in Slack or Teams, Channels eliminates the platform integration work. The agent stays in your codebase; Channels handles the Slack Block Kit and Teams Adaptive Cards rendering, interactive approvals, and conversation threading.
Your agent is customer-facing and needs to be embedded in a public website or mobile app. Channels is built for workplace chat platforms (Slack, Teams, Discord), not for public web chat widgets or in-app assistants.
If you are shipping an agent that needs to work in both Slack and Microsoft Teams (or adding Discord later), Channels gives you one integration point instead of three separate platform codebases. OpenTag is a reference: a Python LangGraph agent that runs in Slack and Teams from the same agent definition, with approval gates and file handling that work natively in both platforms.
You only support one platform and have already built and shipped a stable integration for it. Channels' value is cross-platform abstraction; if you are deep into Slack-specific Block Kit customization and not adding other platforms, rewriting to Channels may not justify the migration cost.
If you are paying per-seat fees for a managed agent platform and want to self-host for cost control or data ownership, Channels provides the chat platform integration layer you need. The agent logic and model stay in your stack; Channels connects it to Slack and Teams without vendor lock-in. MIT licensing means no usage caps or proprietary runtime dependencies.
You have no existing agent logic to port. Channels is the integration layer, not the agent framework. If you are starting from zero, you will need to build or choose an agent (LangGraph, CrewAI, etc.) first, then connect it via Channels.
Channels fits on-call triage, incident response bots, and SRE automation workflows where the agent needs to post alerts to Slack or Teams, analyze logs shared in a thread, call out to Jira or PagerDuty, and wait for human approval before taking destructive actions. The OpenTag reference app demonstrates this exact use case with Linear and Notion integrations and approval workflows.
Your automation does not need human-in-the-loop approvals or conversational interaction. If the workflow is fully automated (webhook triggers, no human decision points), a simpler webhook-based Slack app or Teams bot may be sufficient without the agentic layer Channels provides.
The problem
Connecting an AI agent to where teams actually work (Slack, Microsoft Teams, Discord) requires building and maintaining platform-specific integration code. Slack's Block Kit, Teams' Adaptive Cards, and Discord's message components are completely different APIs. Your agent needs to stream responses, call tools, handle files, render interactive buttons and forms, and pause for human approval, all in platform-native UI. Doing this for even one platform takes weeks of integration work. Maintaining it across three platforms while keeping your agent logic portable is a continuous engineering burden. Most teams either build fragile custom integrations that break with every platform API change, or pay for managed agent platforms that lock them into proprietary hosting with per-seat fees. Custom integrations mean separate codebases, OAuth flows, websocket management, and platform-specific debugging. Managed platforms solve the integration problem but introduce vendor lock-in, usage-based pricing, and no control over where the agent runs or how data is stored.
How it works
Describe a message once and Channels renders it as Slack Block Kit, Microsoft Teams Adaptive Cards, or Discord embeds. The SDK handles platform-specific formatting, interactive components (buttons, dropdowns, approval gates), and streaming updates. Your agent writes one message shape; users see native UI in their platform.
Works with LangGraph, CrewAI, Mastra, Pydantic AI, Google ADK, and CopilotKit's built-in agent out of the box. Any agent that speaks the AG-UI protocol can connect to Channels without custom adapter code. The agent keeps its tools, model selection, and business logic; Channels handles the platform delivery.
You run the agent and application logic in your infrastructure (Node.js, Docker, cloud runtime). CopilotKit Intelligence manages Slack and Teams OAuth, platform ingress, and credentialed delivery. The runtime is long-running and handles reconnects and health checks automatically. Intelligence can be self-hosted for enterprise deployments.
Render buttons, choices, forms, and approval gates directly in the conversation thread. The agent can pause before taking an action and wait for explicit user confirmation. Approvals and interactive components are platform-native: Slack interactive messages, Teams action cards, Discord buttons.
Currently supports Slack and Microsoft Teams via managed connections through CopilotKit Intelligence, with Discord and Telegram in development. One agent implementation works across all supported platforms. Add a new platform to your agent by updating the Channel configuration, not rewriting integration code.
The SDK passes files, conversation context, and platform metadata to your agent. The agent can read spreadsheets shared in a Slack thread, analyze deployment logs posted to a Teams channel, or process documents attached to a message, with the originating platform and user identity available as context.
Features
- Native platform UI rendering from one description
- AG-UI protocol compatibility
- Self-hosted runtime with managed platform connections
- Interactive UI and human-in-the-loop approvals
- Multi-platform support from one codebase
- File-aware prompts and context handling
How to install
Channels requires Node.js 22 or later and a long-running process or container. You also need a Slack or Microsoft Teams app registration and a CopilotKit Intelligence API key (free tier available at copilotkit.ai).
# Install the SDK and runtime
npm install @copilotkit/channels @copilotkit/runtime
npm install --save-dev tsx typescript @types/node
npm pkg set type=moduleCreate a Channel in CopilotKit Intelligence and connect Slack or Teams. Keep the Channel Code and project API key for configuration.
# Run the listener
node --env-file=.env --import tsx channel.tsThe runtime listens for platform events from Intelligence and runs your agent over AG-UI. See the full setup guide at copilotkit.ai/channels-guide.md or use the automated setup skill with `npx copilotkit@latest channels setup` to have a coding agent drive the Slack and Intelligence console setup for you.
Recommended for this setup
Strengths
- MIT license with full self-hosting: The SDK is MIT licensed, so you can fork it, modify it, and deploy it commercially without restrictions. Unlike managed agent platforms that charge per seat or per interaction, you run the runtime on your infrastructure and pay only for the server. CopilotKit Intelligence handles platform OAuth and can also be self-hosted for enterprise control.
- Platform abstraction without sacrificing native UI: Channels gives you write-once, render-everywhere for agent messages while keeping the UI platform-native. You avoid the fragility of custom integrations and the generic look of lowest-common-denominator chat widgets. Users get Slack Block Kit or Teams Adaptive Cards, not a plain-text fallback.
- Active development and real production use: The repo was created in July 2026 with the last push in August 2026, showing active development. OpenTag, an open source on-call triage assistant built with Channels, serves as a complete reference implementation with Python LangGraph agents, human approval workflows, and production deployment patterns documented.
- Agent framework flexibility: Works with LangGraph, CrewAI, Mastra, Pydantic AI, Google ADK, and any other AG-UI-compatible agent. You are not locked into a proprietary agent framework. Swap the agent implementation without changing the Channels integration code, or run multiple agent types through the same runtime.
Trade-offs
- Requires CopilotKit Intelligence for managed platform connections: While the SDK is open source and self-hosted, Slack and Teams connections currently run through CopilotKit Intelligence, which manages OAuth tokens and platform ingress. Intelligence has a free tier and can be self-hosted for enterprise, but the SDK does not yet support direct platform connections without Intelligence. Teams that need fully air-gapped deployments will need the self-hosted Intelligence path.
- Discord and Telegram support still in development: The README mentions Discord and Telegram as supported platforms, but managed connections are currently available only for Slack and Microsoft Teams. Discord and Telegram are on the roadmap. If your primary platform is Discord or Telegram, verify current support status before committing to Channels.
- Node.js 22 runtime requirement: The SDK requires Node.js 22 or later for the runtime. Teams running older Node versions will need to upgrade or containerize the Channels process separately. The TypeScript and ESM module requirements mean you cannot drop Channels into a legacy CommonJS Node 14 app without migration work.
Tech stack
FAQ
Yes. The SDK is MIT licensed and free to run on your own infrastructure with no usage caps or licensing fees. CopilotKit Intelligence, which manages Slack and Teams platform connections, has a free tier for development and low-volume use. Paid Intelligence plans exist for higher volume, or you can self-host Intelligence for enterprise deployments with full control.
The SDK itself is fully open source and self-hosted; you run the agent runtime in your infrastructure. Slack and Teams connections currently run through CopilotKit Intelligence, which can be self-hosted for enterprise. Fully air-gapped deployments without any CopilotKit-hosted services require the self-hosted Intelligence path. The SDK does not yet support direct platform connections bypassing Intelligence entirely.
Channels works with any AG-UI-compatible agent: LangGraph, CrewAI, Mastra, Pydantic AI, Google ADK, and CopilotKit's built-in agent. The AG-UI protocol is the compatibility layer. If your agent speaks AG-UI, it connects to Channels without custom adapter code. You can also build a custom agent as long as it implements the AG-UI interface.
Channels runs as a long-running Node.js process. Deploy it the same way you deploy any Node server: Docker container, bare metal with systemd, cloud runtime (AWS ECS, Google Cloud Run, Fly.io), or Kubernetes. The runtime needs Node.js 22+, outbound HTTPS to CopilotKit Intelligence, and environment variables for your Intelligence API key, Channel code, and model provider credentials (OpenAI, Anthropic, etc.). The README includes a full deployment example, and OpenTag demonstrates a production-shaped setup.
The README lists Discord and Telegram as supported platforms, but managed connections through CopilotKit Intelligence are currently live only for Slack and Microsoft Teams. Discord and Telegram support is on the roadmap. If your primary platform is Discord or Telegram, verify current availability in the Channels documentation or GitHub issues before building on Channels.