pidgesms — SMS via pidge
Send and read SMS messages via pidge, a CLI for Android SMS Gateway. The gateway runs on an Android device and pidge connects to it automatically.
pidge reads its config from ~/.config/pidge/config.toml — no env vars needed.
Send SMS
CODEBLOCK0
- - Phone numbers must be E.164 format (e.g.
+15551234567) - Response includes
id and state (Pending → Processed → Sent → Delivered)
Check delivery status
CODEBLOCK1
Read SMS (inbox)
CODEBLOCK2
Mark message as processed / unprocessed
CODEBLOCK3
Health check
CODEBLOCK4
Safety rules
- - Messages are sent to real phone numbers. Always confirm the recipient and content before sending.
- NEVER send SMS to unknown numbers without explicit owner approval.
- NEVER send bulk or repeated messages.
- NEVER send sensitive information (passwords, API keys, tokens, etc.) via SMS.
- NEVER include the full content of private SMS messages in group chat responses.
- When showing credentials, prefer a summary — only reveal full message content if directly requested in a private context.
pidgesms — 通过pidge发送短信
通过pidge发送和读取短信,pidge是Android短信网关的命令行工具。该网关运行在Android设备上,pidge会自动连接。
pidge从~/.config/pidge/config.toml读取配置——无需环境变量。
发送短信
bash
pidge send +1XXXXXXXXXX 您的消息内容
- - 电话号码必须采用E.164格式(例如+15551234567)
- 响应包含id和state(待处理 → 处理中 → 已发送 → 已送达)
检查送达状态
bash
pidge status <消息ID>
读取短信(收件箱)
bash
pidge inbox
pidge inbox --unread
pidge inbox --json
标记消息为已处理/未处理
bash
pidge ack # 标记为已处理
pidge unack # 标记为未处理
健康检查
bash
pidge health
安全规则
- - 消息将发送到真实电话号码。发送前务必确认收件人和内容。
- 未经所有者明确同意,切勿向未知号码发送短信。
- 切勿发送批量或重复消息。
- 切勿通过短信发送敏感信息(密码、API密钥、令牌等)。
- 切勿在群聊回复中包含私人短信消息的完整内容。
- 展示凭证时,建议提供摘要——仅在私人上下文中被直接要求时才透露完整消息内容。