A smaller, lighter-weight version of OpenClaw, natively multi-agent, compiles to Rust, and built on the Swarms framework and Swarms ecosystem. One API, unified messaging across Telegram, Discord, and WhatsApp with optional Claude-powered reasoning.
# Add to your Claude Code skills
git clone https://github.com/The-Swarm-Corporation/ClawSwarmClawSwarm is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by The-Swarm-Corporation. A smaller, lighter-weight version of OpenClaw, natively multi-agent, compiles to Rust, and built on the Swarms framework and Swarms ecosystem. One API, unified messaging across Telegram, Discord, and WhatsApp with optional Claude-powered reasoning. It has 185 GitHub stars.
ClawSwarm's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/The-Swarm-Corporation/ClawSwarm" and add it to your Claude Code skills directory (see the Installation section above).
ClawSwarm is primarily written in Python. It is open-source under The-Swarm-Corporation on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh ClawSwarm against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.

ClawSwarm is a multi-agent personal productivity operating system powered by hundreds of agents designed to enhance your productivity.
requirements.txt (no version pins; use a venv and pin locally if needed)pip3 install -U claw-swarm
Set these in your shell or in a .env file (e.g. --env-file .env with Docker). Omit a platform’s credentials to disable that channel.
| Variable | Purpose | Default |
|---|---|---|
| Gateway | ||
GATEWAY_HOST |
Bind address (gateway) or gateway host (agent) | [::] (server), localhost (agent) |
GATEWAY_PORT |
gRPC port | 50051 |
GATEWAY_TLS |
Enable TLS: 1, true, or yes |
- |
GATEWAY_TLS_CERT_FILE |
Path to TLS certificate file | - |
GATEWAY_TLS_KEY_FILE |
Path to TLS private key file | - |
| Channels | ||
TELEGRAM_BOT_TOKEN |
Telegram Bot API token | - |
DISCORD_BOT_TOKEN |
Discord bot token | - |
DISCORD_CHANNEL_IDS |
Comma-separated Discord channel IDs | - |
WHATSAPP_ACCESS_TOKEN |
WhatsApp Cloud API access token | - |
WHATSAPP_PHONE_NUMBER_ID |
WhatsApp Cloud API phone number ID | - |
WHATSAPP_QUEUE_PATH |
Optional WhatsApp queue path | - |
| Agent | ||
AGENT_MODEL |
Swarms director / default agent model | gpt-4o-mini |
WORKER_MODEL_NAME |
Worker agents model (Response/Search/TokenLaunch/Developer). If set, overrides AGENT_MODEL for workers. |
- (falls back to AGENT_MODEL then gpt-4o-mini) |
OPENAI_API_KEY |
OpenAI API key (for agent model) | - |
ANTHROPIC_API_KEY |
Anthropic API key (for Claude tool) | - |
| Memory | ||
AGENT_MEMORY_FILE |
Agent memory markdown filename (project root) | agent_memory.md |
AGENT_MEMORY_MAX_CHARS |
Max characters of memory to load into context | 100000 |
1. Install:
pip install -U claw-swarm
2. Create your config - run the interactive wizard to generate claw_config.yaml:
clawswarm onboarding
Press Enter to accept defaults. This writes claw_config.yaml to your project root with gateway host/port/TLS, HTTP API port/key, agent name, worker model, and verbose mode.
3. Set secrets - copy .env.example to .env and fill in your credentials:
cp .env.example .env
# then edit .env with your tokens and API keys
4. Run the full stack:
clawswarm run # gateway + agent (messaging platforms only)
clawswarm run --api # + public REST API on the configured port
ClawSwarm is a streamlined, multi-agent alternative to OpenClaw. It delivers natively multi-agent AI that responds to users on Telegram, Discord, and WhatsApp through a centralized Messaging Gateway. The gateway normalizes incoming messages; the ClawSwarm Agent (Swarms framework, configurable system prompt, Claude as a tool) processes each message and replies via a Replier back to the originating channel. Built on the Swarms ecosystem for reliability, security, and minimal operational overhead-with a path to compile to Rust for performance and deployment flexibility.
| Feature | Description |
|---|---|
| Multi-channel messaging | One API for Telegram, Discord, and WhatsApp. The gateway normalizes messages; the agent replies back to the correct channel. |
| Hierarchical multi-agent architecture | A director agent (ClawSwarm) receives each message, creates a plan, and delegates to specialist worker agents via structured orders (SwarmSpec). Workers handle response, search, token launch, or code; the director orchestrates and the Telegram Summarizer turns combined output into a concise, emoji-free reply for chat. |
| Specialist workers | ClawSwarm-Response (greetings, short answers), ClawSwarm-Search (web/semantic search via Exa), ClawSwarm-TokenLaunch (launch tokens and claim fees on Swarms World/Solana), ClawSwarm-Developer (implementation and debugging via Claude Code). Each worker has a focused role and tools; the director chooses who does what. |
| Claude as a tool | Deep reasoning and code are handled by Claude (e.g. via the Developer worker’s run_claude_developer). Configurable system prompts in claw_swarm.prompts; override with create_agent(system_prompt=...). |
| Unified gRPC gateway | Single ingest API for all channels; add or remove platforms without changing agent logic. Optional TLS, health checks, and normalized UnifiedMessage schema. |
| Lighter than OpenClaw | Smaller footprint and simpler stack; same multi-channel, multi-agent vision without the full OpenClaw surface area. Path to compile to Rust for performance and deployment flexibility. |
| Production-ready | Environment-based configuration, long-running agent loop, Dockerfile, and 24/7 operation under systemd or managed runtimes. |
Telegram Discord WhatsApp
\ | /
\ v /
+--------------+
| Gateway | unified ingest (gRPC)
+------+-------+
|
v
+--------------+
| Agent | Hierarchical Swarm + Summarizer
+------+-------+
|
v
+--------------+
| Replier | send back to each channel
+------+-------+
|
Telegram Discord WhatsApp
ClawSwarm starts with a gRPC gateway that ingests messages from Telegram, Discord, and WhatsApp, normalizing each into a unified schema. An agent runner polls the gateway on a short cadence, pulling new messages in batches and maintaining its own cursor for reliable delivery without an external broker.
Each message is routed into a hierarchical multi-agent system: a director agent plans and delegates to specialist workers covering simple responses, web search, token operations, and code execution then a summarizer agent condenses the combined output into a clean, concise reply. That reply is delivered back to the originating platform and channel, and the full interaction is saved to a shared memory file so context persists across all channels and restarts.
The core of ClawSwarm is a hierarchical multi-agent system built on Swarms’ HierarchicalSwarm. A single director agent sits at the top: it receives every user message, decides what to do, and delegates to one or more worker agents by emitting structured SwarmSpec orders (plan + task assignments). Workers are specialists with narrow roles and tools; they run their tasks and return results. The director does not execute tools itself-it only plans and delegates. After the swarm finishes, a dedicated Telegram Summarizer agent condenses the raw output into a short, plain-text reply suitable for chat (no emojis).
This design keeps the director focused on orchestration and intent, while search, code, token operations, and simple replies are handled by the right worker. You get multi-agent behavior with a clear chain of responsibility and a single, chat-friendly response to the user.
flowchart TB
subgraph swarm["Hierarchical Swarm"]
DIR[Director\nClawSwarm]
DIR --> W0[ClawSwarm-Response]
DIR --> W1[ClawSwarm-Search]
DIR --> W2[ClawSwarm-TokenLaunch]
DIR --> W3[ClawSwarm-Developer]
end
USER[User message] --> DIR
W0 --> OUT[Swarm output]
W1 --> OUT
W2 --> OUT
W3 --> OUT
OUT --> SUM[Telegram Summarizer]
SUM --> REPLY[Reply to user]