commune-sms

commune-sms is a skill for Claude Code, Codex from commune-dev/commune-cookbook. It costs 0 tokens per session (1,395 once invoked), scanned A, a copy of commune-sms, MIT.

A connection to a real phone number through the Commune API, a web service for sending and receiving text messages. It lets an agent work with SMS conversations programmatically.

In plain words
What is it for?
Use it to list available phone numbers, send SMS messages, read conversation threads, and list SMS conversations.
Why use it?
It removes the need to handle text messages manually when the agent needs to communicate through a phone number. It requires a Commune API key and configured phone-number details.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/commune-dev/commune-cookbook/commune-sms
Any agent
npx skills add commune-dev/commune-cookbook --skill commune-sms
Clone the repo
git clone --depth 1 https://github.com/commune-dev/commune-cookbook

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for commune-sms

README.md
[![agentmods](https://agentmods.dev/badge/skills/commune-dev/commune-cookbook/commune-sms.svg)](https://agentmods.dev/skills/commune-dev/commune-cookbook/commune-sms)
Your own site
<a href="https://agentmods.dev/skills/commune-dev/commune-cookbook/commune-sms"><img src="https://agentmods.dev/badge/skills/commune-dev/commune-cookbook/commune-sms.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,395 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01395
Opus 5 $0.00000 $0.00698
Sonnet 5 $0.00000 $0.00279
Haiku 4.5 $0.00000 $0.00139

Measured 5d ago against content hash db838c728126, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

commune-sms scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (commune-sms.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to commune-sms — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

openclaw-email-sms/skills/commune-sms/SKILL.md · 193 lines

How it starts

The opening of the file, as written. The whole thing — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: Commune SMS

What I Can Do

I give you a real phone number and let you send and receive SMS messages programmatically via the Commune API. You can send texts to any number, read conversation threads, and list all your SMS conversations — all from within your OpenClaw agent.

Authentication

Requires COMMUNE_API_KEY environment variable. Get one at commune.email.

Base URL: https://api.commune.email
Auth header: Authorization: Bearer $COMMUNE_API_KEY
Content-Type: application/json

My Phone Number

COMMUNE_PHONE_NUMBER — set this environment variable to your full phone number after provisioning (e.g. +14155551234). Also set COMMUNE_PHONE_ID to the phone number's ID string.


Core Operations

List Phone Numbers

GET /v1/phone-numbers

Response:

[
  {
    "id": "pn_xxx",
    "number": "+14155551234",
    "label": "Support Line",
    "capabilities": ["sms"]
  }
]

Use this to discover your available phone numbers and their IDs. Save the relevant id as COMMUNE_PHONE_ID.


Send SMS

POST /v1/sms/send
Body: {
  "to": "+14155559876",
  "body": "Your meeting is at 3pm today.",
  "phone_number_id": "pn_xxx"
}

Response includes message_id for confirmation.

Number format: Always use E.164 format (+1XXXXXXXXXX for US numbers). If the user gives a 10-digit number, prepend +1.


List SMS Conversations

GET /v1/sms/conversations?phone_number_id=PHONE_ID

Response:

[
  {
    "contact_number": "+14155559876",
    "last_message": "Thanks, see you then!",
    "last_message_at": "2026-02-28T09:30:00Z",
    "message_count": 5,
    "direction": "inbound"
  }
]

direction: "inbound" means the last message came from the other person — this conversation may need a reply.


Read SMS Conversation with a Specific Number

GET /v1/sms/conversations/:number

Where :number is the contact's phone number in E.164 format (URL-encoded: %2B14155559876).

Response:

[
  {
    "id": "sms_xxx",
    "direction": "inbound",
    "body": "Can we reschedule to 3pm?",
    "from": "+14155559876",
    "to": "+14155551234",
    "created_at": "2026-02-28T09:00:00Z"
  },
  {
    "id": "sms_yyy",
    "direction": "outbound",
    "body": "Sure, 3pm works!",
    "from": "+14155551234",
    "to": "+14155559876",
    "created_at": "2026-02-28T09:05:00Z"
  }
]

Read the full file on GitHub · 193 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 193 lines · 0 tokens per session scan A db838c728126

Subscribe to this mod's changes

commune-sms is a skill published in the GitHub repository commune-dev/commune-cookbook (2 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,395 tokens. A static security scan graded it A with 0 findings. It is 100% identical to commune-sms, differing in 0 lines, and is treated as a copy.