
Security News
/Company News
Securing the Financial Frontier: How Capital One Uses Socket for Open Source Security
Capital One is partnering with Socket to proactively secure its open source supply chain.
phone-sms-gateway
Advanced tools
Twilio alternative: turn your Android phone into a free SMS gateway. Send SMS, OTPs, and verification codes from any CLI, script, or backend without Twilio, Vonage, MessageBird, or Plivo. No per-message fees, no markups, no A2P 10DLC. Free 5-day trial at
A phone SMS gateway in your terminal. Send SMS, generate and verify OTP codes, read your inbox — all routed through your own Android phone instead of paying Twilio, Vonage, MessageBird, or Plivo.
npx phone-sms-gateway send +14155550100 "Hello from my phone"
The message leaves your real mobile number and arrives in the recipient's regular SMS app. No CPaaS account. No per-SMS fees. No A2P 10DLC paperwork.
CPaaS providers charge $0.0075 to $0.04 per SMS in the US, force you through A2P 10DLC registration, and route messages from short codes recipients don't recognise. Reply rates collapse.
A phone-based SMS gateway routes through the Android phone you already own. Messages arrive from your real local number. Recipients reply directly to you. And the cost is $29/month flat for unlimited SMS through one device.
This package gives you a CLI for that flow.
# One-off
npx phone-sms-gateway send +14155550100 "Hi"
# Or install globally
npm install -g phone-sms-gateway
phone-sms-gateway send +14155550100 "Hi"
# alias also installed:
sms-gateway send +14155550100 "Hi"
Node 18 or newer.
export SMS8_API_KEY=sk_xxx
phone-sms-gateway send +14155550100 "It works!"
# SMS
phone-sms-gateway send <phone> "<message>"
# OTP / 2FA
phone-sms-gateway otp send <phone>
phone-sms-gateway otp verify <phone> <code>
phone-sms-gateway otp wait <sender-phone> [--timeout=120]
# Inbox
phone-sms-gateway inbox [--limit=25] [--received] [--sent] [--phone=+14155550100]
# Devices
phone-sms-gateway devices
# Account
phone-sms-gateway balance
phone-sms-gateway setup
Pick which paired Android phone (and which SIM on multi-SIM phones) sends each message:
phone-sms-gateway send +14155550100 "Hi" --device-id=10700 --sim-slot=2
phone-sms-gateway send +14155550100 "Hi" --devices=10700,10701|0
phone-sms-gateway send +14155550100 "Broadcast" --option=1 # all devices
phone-sms-gateway send +14155550100 "Broadcast" --option=2 # all SIMs across all devices
phone-sms-gateway send +14155550100 "Hi" --random-device # load-balance
The same flags work on otp send and otp wait. Run phone-sms-gateway devices to list IDs.
phone-sms-gateway otp send +14155550100 --length=8 --expires-in=180
phone-sms-gateway otp send +14155550100 --template="Your YourApp code: {code}"
otp verify checks the most-recent unverified code for the phone. No device routing
needed (the code lives server-side).
phone-sms-gateway otp verify +14155550100 482937
otp wait watches incoming SMS on a paired Android and extracts the verification code.
Pass the sender's phone or partial match:
CODE=$(phone-sms-gateway otp wait +Google --contains="Google" --timeout=180)
# /etc/cron.hourly/server-watchdog
LOAD=$(uptime | awk -F'load average:' '{print $2}')
phone-sms-gateway send +14155550100 "Server load: $LOAD" --api-key=$SMS8_API_KEY
# Trigger your app's OTP send
curl -X POST https://staging.app.com/otp -d 'phone=+14155550100'
# Block until the SMS arrives on the test SIM
CODE=$(phone-sms-gateway otp wait +14155550100 --timeout=180)
# Hand it back to the app
curl -X POST https://staging.app.com/verify -d "code=$CODE"
This package shares its codebase with sms8-cli and connects to the SMS8 SMS-gateway platform. Pick whichever package name reads better in your toolchain — they expose the same bin/sms8.js.
For an AI / MCP integration (Claude Code, Cursor, Windsurf), see sms8-mcp.
MIT
FAQs
Twilio alternative: turn your Android phone into a free SMS gateway. Send SMS, OTPs, and verification codes from any CLI, script, or backend without Twilio, Vonage, MessageBird, or Plivo. No per-message fees, no markups, no A2P 10DLC. Free 5-day trial at
The npm package phone-sms-gateway receives a total of 26 weekly downloads. As such, phone-sms-gateway popularity was classified as not popular.
We found that phone-sms-gateway demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
/Company News
Capital One is partnering with Socket to proactively secure its open source supply chain.

Security News
Socket CTO Ahmad Nassri discusses how to keep AI agents from bypassing package blocks, limit credential access, and monitor their actions.

Security News
GPT-6 Astra tried to plant malicious code in simulated open source projects using fake GitHub accounts and deceptive PRs during an assigned CTF challenge.