Custom Agent
TypeScript or Python. Full programmatic control. Best for agents you build from scratch.
MCP (Claude / Smithery)
Works in Claude Desktop, Cursor, Windsurf, and any MCP-compatible host. Zero code required.
OpenClaw Skill
Install the commune-sms skill with one command. Runs in OpenClaw agent environments.
Custom Agent (SDK)
Build a full send/receive agent with TypeScript or Python.1
Install the SDK
2
Initialize the client
Get your API key from the dashboard.
3
Search for available numbers
Find a phone number for your region.
4
Purchase the number
Buying a number makes it active immediately and starts the billing cycle.
150 credits are charged immediately and monthly thereafter. Check your balance at Dashboard → Credits.
5
Send your first SMS
6
Receive inbound SMS via webhook
Configure a webhook on your phone number so your agent is notified in real time.When an inbound SMS arrives, Commune POSTs to your webhook:
7
Build a responding agent
A full inbound handler — reads the message, generates a reply, sends it back in the same thread:
MCP (Smithery / Claude Desktop)
Use Commune Phone & SMS directly inside Claude Desktop, Cursor, Windsurf, or any MCP-compatible host — no code required.Install via Smithery
The fastest path. Smithery handles installation and configuration automatically:COMMUNE_API_KEY and write the MCP config automatically.
Manual MCP config
To configure manually, add this to your host’s config file:uvx runs commune-mcp directly from PyPI with no global install required. If you’d rather install it permanently: pip install commune-mcp, then use "command": "commune-mcp", "args": [].What you can ask Claude
Once configured, Claude has full access to all Commune Phone & SMS tools:OpenClaw Skill
Install thecommune-sms skill to give any OpenClaw agent full phone number and SMS capabilities.
Install
Set your API key
~/.bashrc, ~/.zshrc) to persist across sessions.
Alternatively, store a credentials file:
Verify the install
What the skill enables
Once installed, your OpenClaw agent can:- Buy and release phone numbers across 38 countries
- Send SMS and MMS outbound
- Receive inbound SMS via webhook (real-time, no polling)
- Reply to conversations in-thread with full context
- Manage STOP / opt-out suppressions automatically
- Search SMS history by semantic meaning
- List and manage all owned numbers
Skill reference
The fullSKILL_sms.md is available on GitHub — paste it as system prompt context for any agent that needs complete phone/SMS access:
What’s next?
Phone Numbers
Number types, capabilities, allow/block lists, and full API reference.
SMS
MMS, conversation threads, delivery tracking, suppressions, and compliance.
Credits
How credits work, SMS costs per segment, and how to top up.
Email Quickstart
Add email alongside SMS for full multi-channel agent communication.

