Self-host pSMS
Run the pSMS archive on your own computer, connect your iPhone, and manage it from the desktop app or the CLI.
Install and start
Download pSMS for your system. On a Mac, open the disk image and drag pSMS to Applications. The first time, right-click it and choose Open.
Open pSMS, or run psms init in a terminal. pSMS keeps its archive in your user data folder and listens on 127.0.0.1, port 47832 when it is free. psms status shows the address. psms stop stops it.
Keep the CLI and the desktop app from the same release together.
Connect your iPhone
Your phone needs an HTTPS address that reaches your computer. Pick one:
- No tunnel at all: on a Plus plan, connect this archive to papamo.dev. Your phone sends to papamo.dev and pSMS pulls the messages down.
- Automatic: in the desktop app choose Settings → Phone setup. pSMS checks for an existing public hostname, and otherwise sets up an ngrok or Cloudflare tunnel for you.
- From the terminal: run
psms onboardand follow the prompts.
When the address works, pSMS writes your personal shortcut and recovery key into a new private folder.
- On a Mac, sign the shortcut:
shortcuts sign --mode anyone --input pSMS_Encrypted.shortcut --output pSMS_Ready.shortcut. - Open the signed copy on your iPhone and add it. Keep it private: whoever has it can read your messages.
- Turn on the shortcut's Message automation on the iPhone, and set it to run immediately.
- Send yourself a text, then unlock the inbox with your recovery key.
Onboarding from the terminal
psms onboard --domain sms.example.org --output ./phone-pairing
psms onboard --provider ngrok --credential-file /private/ngrok-token --output ./phone-pairing
psms onboard --provider cloudflare --zone example.org --name my-desktop --output ./phone-pairingAdd --wait 300 to wait for the first message. Run cloudflared tunnel login once before creating a Cloudflare tunnel. --endpoint https://HOST/v1/messages writes a shortcut for an address you set up yourself.
psms tunnel quick starts a temporary Cloudflare tunnel for testing.
Manage pSMS
Everything in desktop Settings is also in the CLI. Run psms manage --help for the list.
psms manage access create api --days 30 # owner API token
psms manage access create send # key that can only queue texts
psms manage webhook add https://example.com/psms
psms manage inbox list --unread --key-file ./recovery-kit.pdf
psms manage contact set +15550100 --key-file ./recovery-kit.pdf --name "Ana" --phone "work=+1 555 0100"
psms manage outbox send +15550100 "On my way"
psms manage theme darkNew tokens are shown once. Use them as Authorization: Bearer TOKEN.
On Windows, right-click pSMS in the notification area for Open, Settings and Exit.