360 Secure SkillHub
360 安全技能中心

Termux SMS

在装有 Termux 与 termux-api 的 Android 设备(或经 SSH 远程执行的 Android 节点)上,使用 termux-sms-send 命令向指定手机号发送短信,支持多行文本和逗号分隔的多个号码;要求先与用户确认收件人与内容,不用于 WhatsApp 或网页消息。

分类:自动化
jerryshane1983-tech
jerryshane1983-tech
热度 33.62
最近更新 2026-05-11 17:41:40

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add jerryshane1983-tech/termux-sms
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
termux-sms
description
Send SMS text messages directly from the user's Android device using the Termux API. Use this skill when the user asks you to text, SMS, or send a message to a phone number or contact and you are running on (or have SSH access to) their Android phone (e.g., Fold 7) with Termux installed. Do NOT use this for WhatsApp or web-based messaging.
metadata
{"openclaw":{"emoji":"💬","requires":{"bins":["termux-sms-send"]},"install":[{"id":"apt","kind":"apt","package":"termux-api","bins":["termux-sms-send"],"label":"Install Termux API (apt)"}]}}

Termux SMS

Use termux-sms-send when the user explicitly asks you to send an SMS or text message to a contact or phone number. This skill requires that OpenClaw is running within Termux on an Android device, or that you are executing commands on an Android node via SSH/remote execution where the termux-api package is installed.

Safety & Boundaries

  • Require an explicit recipient phone number and message text.
  • Confirm the recipient and the exact message text with the user before sending.
  • If the user provides a name instead of a number, ask them for the number first (unless you have a contact list reference available).
  • Do not spam or send bulk messages.

Usage

To send a text message, use the termux-sms-send command.

termux-sms-send -n <phone_number> "<message_text>"

Examples

Send a simple text:

termux-sms-send -n "+14155551212" "Hey, I am running 5 minutes late."

Send a multi-line text:

termux-sms-send -n "5558675309" "Grocery list:
- Milk
- Eggs
- Bread"

Send to multiple numbers (comma-separated):

termux-sms-send -n "+14155551212,5558675309" "Meeting is moved to 3 PM."

Troubleshooting

  • If the command fails with a permission error, remind the user that they must install the Termux:API app from F-Droid (or Google Play) and grant it SMS permissions on their Android device.
  • Ensure the termux-api package is installed inside the Termux environment (pkg install termux-api).