Loudness is not proof
Phase 3, the Linux computer works
The first recording of a call looked like proof. It transcribed as "Thank you. Thank you.", which is what a speech model writes for noise. The next one was feedback from the room microphone.
Give your spare phone to your agent. Sparephone puts a real phone and a real SIM behind it, in place of a costly cloud calling service.
Real calls. Real texts. Real one-time passcodes for your own accounts, on a mobile number that you own. The rules live in code: who it may call, how often, and never an emergency number. It pages you when something breaks, holds a conversation on a call, and connects to your agent in one step.
You need: a spare iPhone with a $30/yr SIM plan, and a Linux laptop or a Mac with a small $9 USB Bluetooth adapter.
uvx sparephone demo
pip install sparephone
git clone https://github.com/abe238/sparephone
Three short clips of the service at work, with its real commands and tools.
One command phones only you. A voice says what happened, you answer by voice, and the choice is read back for a yes. It runs on real calls on Linux and on a Mac.
An allowlisted call goes through. Everything else is refused by the service.
A code texted to your number, read by your agent once you allow it in the settings.
The clips are illustrations. Run the real service against a simulated phone on your own computer with one command: sparephone demo.
Your agent gets a phone the way a person does. It dials, it listens, it reads a text.
Calls and texts land on a SIM that you own. Many services refuse virtual (VoIP) numbers when they send a verification code. Yours is a real mobile number on a real carrier, the kind every service expects.
A spare iPhone and a prepaid SIM plan replace the calling platform and its per-minute fees. Ours is a Red Pocket annual plan at about $30 a year, with more minutes and texts than one agent line uses. Sparephone adds no fee per minute or per message. Your carrier plan sets your minutes and texts. On a Mac, add a small USB Bluetooth adapter.
You choose who the agent may call or text. Hourly limits apply. The service refuses emergency numbers, whatever the allowlist says. These rules live in code. No prompt or phone tool can change them. Give the agent no write access to the config file.
Verification codes. Use sparephone to read codes for accounts that you own. Using it to get past someone else's verification is misuse.
A cloud calling service (Twilio is one) rents you numbers and bills for use. Sparephone uses a spare iPhone and a SIM plan that you supply. Each fits a different job.
| sparephone | A cloud calling service | |
|---|---|---|
| The number | One real mobile number on your own SIM | Many numbers, rented, virtual or real |
| Cost model | Your phone, your SIM plan, a small adapter on a Mac. No platform fee per minute or message. | Pay for each number and for use |
| Verification codes | A real mobile number on a real carrier, the kind every service expects. For your own accounts only. | A number flagged as virtual is often refused by services that check |
| Setup effort | One guided setup, about two hours on Linux, with the phone in your hand. | An account and an API key, in minutes |
| Scale | One phone, one line, a few calls an hour | Many numbers and many calls at once |
| What can go wrong | A dead battery, a weak signal or a typo in your own config. After a Bluetooth drop the link comes back by itself. | Usage-based bills, numbers that some services refuse for codes, and outages on the provider's side. |
Choose a cloud service for many numbers and many calls at once. Choose sparephone for one real number that you own, at the price of a SIM plan.
One phone line: calls, texts, one-time passcodes, a voice and a pager, guarded by rules in code.
sms_body_access.sparephone page --choice "roll back" --choice "leave it" "Build 412 failed on main"A spare phone, a computer and, for a Mac, one small adapter.
It holds the SIM. It needs a talk plan, and a text plan for texts.
Proven on: iPhone 7, iOS 15.8.8.
It receives your test calls. Its number becomes the owner number.
Any phone.
Linux route: a Linux computer with Bluetooth.
Proven on: a 2017 13-inch MacBook Pro running an Arch-based Linux.
Mac route: an Apple silicon Mac.
Proven on: macOS 27.2.1.
Mac route only. The Linux route needs none.
Proven on: TP-Link UB500 (Realtek RTL8761BU). The code refuses any other adapter.
Not needed: soldering, an audio cable, a cloud calling service.
Sparephone is proven on the hardware listed here. The guided Linux setup takes about two hours.
Look around with no phone, or go straight to a real one. Both start the same way.
Install the package with pip or pipx. It runs the demo, the pager, the MCP server, the voice agent and the status tools. To try it with no install, run uvx sparephone demo.
pip install sparephone
For a real phone, clone the repository too. The clone carries the guided setup, the systemd units, the audio routing files and the whole Mac route.
git clone https://github.com/abe238/sparephone cd sparephone
No phone: run the real service and its real rules on a simulated phone.
sparephone demo
With a phone: from the clone, run the guided setup. It checks your computer, pairs the iPhone, saves your safety limits and calls your own phone once. You tap Pair on the iPhone, and the wizard does the rest. bin/sparephone doctor runs the checks only and changes nothing.
bin/sparephone setup
Prefer a numbered list? Open the Linux setup guide.
Check the service. Then ring your second phone. Hold it, ready to answer. This places a real call.
sparephone status sparephone call owner --id first-1
Start with the Mac setup guide. Calls, texts and one-time passcodes run on a Mac through the small USB adapter, proven on real calls with Bluetooth drops included. The pager and the voice agent run there too, from a clone. Run the first setup at the Mac, and the guide takes you through each step.
The guided setup takes you from a bare computer to a first call. The status page shows the whole line at a glance.
Step 1 of 8 Welcome ---------------------------------------- Give your spare phone to your agent. This wizard will: check this computer, fix what is missing pair the iPhone save your safety limits call your own phone once One step needs your hands: tap Pair on the phone. The agent calls only the number you choose. Emergency numbers stay blocked. ---------------------------------------- Enter begin q quit
The service holds the rules in code. A prompt or a phone tool cannot change them. Give the agent no write access to the config file.
A code rule refuses every case that matches it. No prompt can talk it round. A wrong refusal costs you a retry. A wrong call would cost a stranger much more, so the rule wins.
Call audio must never link to a room microphone. On Linux, routing config enforces this, and the service watches the links for the whole call. If anything else links into the call's outgoing audio, the service removes that link, hangs up and mutes the line.
Measured on live calls: the leaking link is cut in about 43 milliseconds, and the hang-up is sent within about a tenth of a second. On an answered call, 0 of 20,313 routing samples broke the rule. A call that you place or answer on the iPhone yourself is left alone.
Legal. This service places real calls that can annoy or harm people. Consent, recording and AI-voice rules depend on where you and the other person are. You are responsible for them. This is not legal advice.
Reading verification codes is for accounts that you own. Using sparephone to get past someone else's verification is misuse.
To report a problem privately, read SECURITY.md.
Every row marked Works has run on a real phone, on Linux and on a Mac. Every release ships after real calls on Linux and on a Mac.
| Capability | Linux | Mac |
|---|---|---|
| Calls: place, answer, hang up, keypad tones | Works | Works Live call audio in both directions, proven on a real phone. |
| Texts: send and read | Works | Works |
| One-time passcodes from texts | Works | Works |
| Allowlist, limits, emergency refusal | Works | Works Same code. |
| Recovery when Bluetooth drops | Works About 3 seconds, measured. | Works The link returns in about 40 seconds. The service ends its own call by itself. |
| Page the owner | Works On real calls, with Whisper. | Works On real calls, with Whisper. Runs from a clone. |
| Voice agent | Works On real calls, answering in about two seconds. | Works On real calls, with Parakeet. Runs from a clone. |
| Demo on a simulated phone | Works No phone needed. | Works No phone needed. |
| App or screen control | Not offered A separate project. | Not offered A separate project. |
| More than one line per phone | Not offered | Not offered |
Works means it ran on a real phone. Not offered is outside the project.
The Mac route passes supervised hardware sessions on a real phone, Bluetooth drops and an injected USB fault included. Every release ships after real calls on Linux and on a Mac.
The design: a real USB fault stops the service for good, so a bad adapter cannot crash the Mac in a loop. When the Bluetooth link drops, the service ends its own call by itself.
The service keeps a call alive through a lost packet of outgoing call audio (3 milliseconds of sound): it counts the packet and the call carries on. A burst of them, or any other USB error, stops it cleanly.
Your computer acts like the hands-free kit in a car. The phone keeps the SIM and the call. The computer receives the sound.
On Linux, BlueZ and PipeWire carry the call audio, and WirePlumber routes it. A Mac does not open the call audio link for an app. So the Mac route drives a USB adapter directly, with the open-source Bumble stack. Both routes end in one service, which owns the rules.
The service speaks MCP over stdio through sparephone mcp.
One command connects Claude Code, Claude Desktop or Codex. It backs up the app's config first, then checks that the server answers:
sparephone mcp install
Your agent gets eight tools:
phone_status phone_dial phone_answer phone_hangup phone_send_dtmf phone_send_sms phone_read_sms phone_wait_for_event
Each reply holds one status word, such as ok, blocked_by_policy or unknown. After a dial, unknown tells the agent to check the line before it dials again. No approve tool exists, by design.
For any other agent app, register the command as a stdio server. Most accept an entry like this one:
{
"mcpServers": {
"sparephone": {
"command": "sparephone",
"args": ["mcp"]
}
}
}In a terminal, sparephone offers setup, doctor, status, test, start, stop, web, debug, page, demo, voice, mcp and paths. Calls and texts have their own commands: call, answer, hangup, keys, text, texts and wait. Add --sim to any of them to use the simulated phone only. To try your agent against a simulated phone, run sparephone demo --keep-running. It prints the exact sparephone mcp --sim --runtime DIR command to register.
Nineteen phases, from a modem that never lit up to a phone line an agent runs. Every turn is in the story.