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

243

7-day growth

No data

Forks

110

Open issues

60

License

AGPL-3.0

Last updated

2026-07-25

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

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, Telegram, Instagram, email, X, 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 — connect instantly, no sign-in.** Paid channels (X, WhatsApp, iMessage) pro

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.

mereyabdenbekuly-ctrl
Featured
mereyabdenbekuly-ctrl GitHub avatar

clodex-ide

Clodex is an open-source, local-first agentic IDE that combines persistent AI tasks, code, terminal, browser, Git, models, memory, and governed execution in one Electron workspace, currently in technical preview.

AI & Machine LearningAI Agents
833
NousResearch
Featured
NousResearch GitHub avatar

hermes-agent

Hermes Agent is an open-source, self-improving AI agent with a built-in learning loop that creates skills from experience, runs across platforms, and supports any LLM provider.

AI & Machine Learning
215,644
lopopolo
Featured
lopopolo GitHub avatar

harness-engineering

Harness Engineering is a methodology for improving coding agent outputs by carefully crafting the environment around them—providing curated context, tools, and executable constraints that encode an organization’s nonfunctional requirements and cumulative lessons.

AI & Machine LearningAI Agents
2,320