Install
openclaw skills install upkuajing-sms-toolOfficial skill for upkuajing (跨境魔方). SMS tool API for sending SMS and tracking SMS task status. Includes SMS sending, task list, and task record list APIs.
openclaw skills install upkuajing-sms-toolSend SMS and track SMS task status using the UpKuaJing Open Platform API.
This skill provides access to UpKuaJing's SMS service through:
sms_send.py): Send SMS to phone numberssms_task_list.py): View SMS task list with time range filtersms_task_record_list.py): View detailed records for a specific taskpython --versionpip install -r requirements.txtScript directory: scripts/*.py
Run example: python scripts/*.py
Important: Always use direct script invocation like python scripts/sms_send.py. Do NOT use shell compound commands like cd scripts && python sms_send.py.
sms_send.py)Send SMS to phone numbers.
Parameters: See SMS Send API
Examples:
# Send a simple SMS
python scripts/sms_send.py \
--content "This is SMS content" \
--phones '["13800138000"]'
# Send with two-way mode (supports receiving replies)
python scripts/sms_send.py \
--content "This is SMS content" \
--phones '["13800138000"]' \
--channel_type 1
# Send to multiple phone numbers
python scripts/sms_send.py \
--content "This is SMS content" \
--phones '["13800138000","13800138001"]'
sms_task_list.py)View SMS task list with optional time range filter.
Parameters: See SMS Task List API
Examples:
# Get task list (first page, 10 items)
python scripts/sms_task_list.py --page_no 1 --page_size 10
# Filter by time range
python scripts/sms_task_list.py \
--start_time 1775812273 \
--end_time 1775900000 \
--page_no 1 \
--page_size 10
# Filter by status (0-待发送 1-发送中 2-发送完成)
python scripts/sms_task_list.py --status 2 --page_no 1 --page_size 10
sms_task_record_list.py)View detailed records for a specific SMS task.
Parameters: See SMS Task Record List API
Examples:
# Get records for task ID 1496
python scripts/sms_task_record_list.py --task_id 1496 --page_no 1 --page_size 10
# Filter by time range and status
python scripts/sms_task_record_list.py \
--task_id 1496 \
--start_time 1775812273 \
--end_time 1775900000 \
--status 2 \
--page_no 1 \
--page_size 10
~/.upkuajing/.env file as UPKUAJING_API_KEYFirst check if the ~/.upkuajing/.env file has UPKUAJING_API_KEY;
If UPKUAJING_API_KEY is not set, prompt the user to choose:
auth.py --new_key), the new key will be automatically saved to ~/.upkuajing/.env
Wait for user selection;When API response indicates insufficient balance, explain and guide user to top up:
auth.py --new_rec_order)Use this script to get account information for UPKUAJING_API_KEY: auth.py --account_info
SMS sending API calls incur fees, different interfaces have different billing methods.
Latest pricing: Users can visit Detailed Price Description
Or use: python scripts/auth.py --price_info (returns complete pricing for all interfaces)
SMS sending is charged — each send request incurs a fee based on the number of phone numbers.
Free of charge — No fees for task list and task record list queries.
Any operation that incurs fees must first inform and wait for explicit user confirmation. Do not execute in the same message as the notification.
| User Intent | Use API |
|---|---|
| "Send an SMS" | SMS Send |
| "View my SMS tasks" | SMS Task List |
| "Check SMS delivery status" | SMS Task Record List |
| "Find tasks in a time range" | SMS Task List (with start_time/end_time) |
UPKUAJING_API_KEY in ~/.upkuajing/.env filepython scripts/auth.py --price_info to get accurate pricing informationstatus field in response indicates sending status (1-sending 2-completed 3-failed 4-partial success)Other UpKuaJing skills you might find useful: