Caspian is an open-source SDK and gateway that lets AI agents communicate across multiple channels (Slack, Discord, Telegram, email, etc.) through a single handler, eliminating per-channel adapter code.

Stars

274

7-day growth

+102

Forks

124

Open issues

18

License

AGPL-3.0

Last updated

2026-07-27

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It solves a common pain point in agent development—channel plumbing—by providing a unified interface that handles webhook verification, threading, and platform quirks, backed by real usage data (8–15% of issue tracker effort in other agent frameworks).

Who it is for

  • AI agent developers
  • Teams building multi-channel customer support bots
  • Open-source projects wanting to reduce maintenance overhead
  • Developers using coding agents (Claude Code, Cursor, etc.)

Use cases

  • Customer support agents handling email, Slack, and Instagram DMs from one codebase
  • Personal assistants with a single identity across Telegram, email, and Slack
  • Community bots that work in Discord, Slack, and DMs
  • Sales follow-up bots that initiate on one channel and continue on another

Strengths

  • One on_message handler for all channels, drastically reducing code duplication
  • Automated webhook verification and signature checking for security across platforms
  • Offline fakes for every channel using real payload shapes, enabling 80+ tests without network
  • Behavior prompts that let the agent adapt its tone per channel dynamically

Considerations

  • Some channels (X, WhatsApp, iMessage) require paid subscriptions or developer sign-in
  • Telegram user-account automation is against ToS and carries risk of bans
  • Default use requires the hosted gateway; self-hosting needs manual CASPIAN_BASE_URL configuration

README quick start

Website · PyPI · npm · llms.txt for agents · Contributing · Discord

English · 简体中文

The largest OSS agent frameworks each built 25+ channel adapters — and still spend8–15% of their issue trackers on channel plumbing. Caspian makes it one handler.


Your agent's reasoning decides what to say. Caspian is how it exists on Slack, Discord, GitHub, Telegram, Instagram, email, X, Bluesky, and beyond — one connect call per channel, one handler for all of them, threading, webhook verification, and platform quirks handled.

Get started in 30 seconds

Building in a coding agent (Claude Code, Codex, Cursor, Kimi, …)? Paste this — it reads the live guide and does the whole integration for you:

Integrate Caspian so my agent can message people on email, Slack, Discord, Telegram, and more.
Read https://api.trycaspianai.com/SKILL.md and follow it end to end.

That's the fastest path — the guide at /SKILL.md is always current, so your agent installs the SDK, mints a key, connects a channel, and writes the handler itself.

Or set it up by hand:

cd your-project
pip install caspian-sdk        # the library (import into your code)
pipx install caspian-cli       # the CLI (gives the `caspian` command) — or: uvx caspian-cli
caspian init                   # mints a key, writes CASPIAN_API_KEY + CASPIAN_BASE_URL to .env
caspian connect email          # free, instant

Then in your code:

from caspian_sdk import CommClient

client = CommClient()  # reads CASPIAN_API_KEY / CASPIAN_BASE_URL from .env
email = client.connect_email(username="example-agent")
print(f"Agent email: {email['address']}")
print("Listening (Ctrl+C to stop).")


@client.on_message
def handle(message):
    sender = (message.sender or {}).get("address", "?")
    print(f" **Node / TypeScript:** the library is `npm install caspian-sdk`. The `caspian` CLI is a
> standalone tool (Python) — run it with `uvx caspian-cli init` / `pipx install caspian-cli`,
> or just use the SDK directly (below); nothing else about the flow changes.

The SDK talks to the **hosted gateway at `https://api.trycaspianai.com`** by default (set `CASPIAN_BASE_URL` to point at a self-hosted one). **Free channels — email, Telegram, Slack, Discord, Bluesky — connect instantly, no sign-in.*

Description

One identity for your AI agent across Slack, Discord, Telegram, WhatsApp, Instagram, email, SMS, X — a single on_message handler. Open-source channel adapters + bot SDK (Python & TypeScript) + CLI.

Related repositories

Similar projects matched by category, topics, and programming language.

makecindy
Featured
makecindy GitHub avatar

cindy

Cindy is an open-source AI agent that runs locally on your machine, integrates multiple AI harnesses and models, and provides memory, skills, and automation to perform real work in your projects and apps.

AI & Machine LearningLarge Language Models
958
deerwork-ai
Featured
deerwork-ai GitHub avatar

deer-workflow

An open-source Dynamic Workflow runtime that combines deterministic TypeScript orchestration with replaceable Agent runtimes.

AI & Machine LearningLarge Language Models
312
hahhforest
Featured
hahhforest GitHub avatar

pi-textbook

A hands-on course that walks through building a Pi-style coding agent from scratch across 15 checkpoints, starting from an offline agent trajectory.

AI & Machine LearningLarge Language Models
625