BluePill Cloud Documentation
Complete setup guide for macOS Cloud Relay, Windows & Linux desktop clients, Web Client, API reference, and troubleshooting.
1. Overview
BluePill brings iMessage, SMS/RCS, and iCloud (Notes, Calendar, Photos, Contacts) to Linux, Windows, and any modern browser. It pairs a native desktop client (bluepill, C++20 + Qt6/QML) with a lightweight macOS relay daemon (bluepill-server) connected over our End-to-End Encrypted Cloud Relay.
Reads your Mac's message database in fast read-only WAL mode (<2ms) and sends via macOS Automation without modifying System Integrity Protection (SIP).
Zero port forwarding and zero router configuration. bluepill-server connects outbound over TLS 1.3 through our Global Edge Network.
2. Quickstart (BluePill Cloud Default)
Get started with BluePill Cloud (https://bluepill.app) in under two minutes:
- Create Your Free Account: Sign up free at https://bluepill.app/signup (GitHub, Google, or Email) to receive your personal Cloud Relay URL (
https://api.bluepill.app/t/<slug>) and relay token. - Connect Your Mac (2-Step Homebrew Setup): Install
bluepill-serverand link your Mac directly to BluePill Cloud:
brew install nertwork/tap/bluepill && bluepill-server login && brew services start bluepill - Open BluePill Everywhere: Launch the BluePill desktop app on Linux or Windows (or open the Web Client) and click Sign in at bluepill.app — or click Try Live Demo to test instantly without an account.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install nertwork/tap/bluepill && bluepill-server login && brew services start bluepill
Server URL: https://api.bluepill.app/demo Password: demo
3. macOS Server & Built-In Cloud Relay (bluepill-server)
Run on any Mac signed into your Apple ID in Messages.app (macOS Ventura 13, Sonoma 14, Sequoia 15, or Tahoe 26). Cloud Relay is built directly into bluepill-server — no port forwarding or separate tunnel script required.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install nertwork/tap/bluepill bluepill-server login brew services start bluepill
bluepill-server relay-setup --token YOUR_RELAY_TOKEN brew services restart bluepill
bluepill-server preflight bluepill-server relay-status
- Full Disk Access (FDA): System Settings → Privacy & Security → Full Disk Access → enable Terminal, iTerm2, and Homebrew
python3so Messages, Notes, Calendar, and Photos are readable. - Automation Permissions: Allow
python3/ Terminal to controlMessages.appandSystem Events. - Sleep Prevention: Keep an always-on Mac mini or MacBook awake with
sudo pmset -a sleep 0 displaysleep 10 autorestart 1.
4. Desktop Clients (.exe, .deb, .rpm, Arch AUR) — v1.2.16
All official release binaries, SHA256SUMS.txt checksums, and full open-source MIT code are published on github.com/nertwork/bluepill.
# Arch Linux / Omarchy (AUR — fast prebuilt binary, ~4s install) yay -S bluepill-bin # or build from source on x86_64/aarch64: yay -S bluepill # or direct Arch package: curl -LO https://github.com/nertwork/bluepill/releases/download/v1.2.16/bluepill-1.2.16-1-x86_64.pkg.tar.zst sudo pacman -U ./bluepill-1.2.16-1-x86_64.pkg.tar.zst # Debian / Ubuntu curl -LO https://github.com/nertwork/bluepill/releases/download/v1.2.16/bluepill_1.2.16_amd64.deb sudo apt install ./bluepill_1.2.16_amd64.deb # Fedora / RHEL curl -LO https://github.com/nertwork/bluepill/releases/download/v1.2.16/bluepill-1.2.16-1.x86_64.rpm sudo dnf install ./bluepill-1.2.16-1.x86_64.rpm
Windows 10 / 11: Download and run BluePill-Setup-1.2.16-win64.exe (per-user standalone installer in %LOCALAPPDATA%\Programs\BluePill, no admin/UAC required). Credentials are stored safely in Windows Credential Manager with native Qt6::Multimedia audio playback, native Windows toast notifications, and SHA256SUMS.txt verification.
5. Cloud Managed Background Updates (Smart Cross-Platform 1-Click)
Opt-In · Never Auto-Restarts
When signed into bluepill.app, both your desktop client (bluepill) and macOS server (bluepill-server) silently check for stable updates in the background and prompt you in the UI for explicit 1-click confirmation before applying — never auto-restarting without permission, and never phoning home if you self-host offline.
Clients query the live stable feed (/api/v1/updates/latest) for version v1.2.16, verify artifacts against SHA256SUMS.txt, and display a non-intrusive update banner in the UI. Updates only download and restart when you click confirm.
Self-hosting on your local LAN without signing into BluePill Cloud? Background cloud update checks stay disabled so your relay never phones home.
- Windows: SHA256-verified silent Inno Setup upgrade (
BluePill-Setup-1.2.16-win64.exe) into%LOCALAPPDATA%\Programs\BluePillwith zero UAC prompts. - Arch Linux / Omarchy: Auto-detects
bluepill-binvs sourcebluepilland upgrades viapkexec pacman -U(oryay). - Debian / Ubuntu & Fedora / RHEL: SHA256-verified package download applied via
apt-get/dnf. - macOS Relay (
bluepill-server): LaunchAgent-aware restart (brew services/launchctl) with a SHA256-verified GitHub release bottle fallback when Homebrew lacksgit/CLT or the tap lags (bluepill-server update-status/bluepill-server update --confirm).
curl -s "https://api.bluepill.app/api/v1/updates/latest"
6. REST API Reference
BluePill exposes a BlueBubbles 1.9.x-compatible API plus iCloud Hub extensions. Authenticate with query parameter ?password=<relay_password>, header X-BlueBubbles-Auth: <pw>, or Authorization: Bearer <pw>. Base path is /demo or /t/<slug>.
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /api/v1/ping | Health check ({"status":200,"data":"pong"}) |
| GET | /api/v1/updates/latest | Live stable release manifest & direct binary asset URLs |
| GET | /api/v1/server/info | Server version & capabilities |
| POST | /api/v1/server/update/check | Check server version & Cloud Managed Update status |
| POST | /api/v1/server/update/apply | Apply confirmed server update (LaunchAgent-aware restart) |
| POST | /api/v1/chat/query | List chats with lastMessage & participants |
| POST | /api/v1/message/query | Fetch messages for a chatGuid |
| POST | /api/v1/message/text | Send text iMessage or SMS |
| POST | /api/v1/message/react | Send tapback (love, like, dislike, laugh, emphasize, question) |
| POST | /api/v1/chat/new | Create a new conversation |
| GET | /api/v1/message/search | Search messages by query |
| GET | /api/v1/contact | List synced AddressBook contacts |
| GET/POST | /api/v1/icloud/{notes,events,photos,calendars,preflight} | iCloud Hub modules |
curl -s "https://api.bluepill.app/demo/api/v1/ping?password=demo"
curl -s -X POST "https://api.bluepill.app/demo/api/v1/message/text" \
-H "X-BlueBubbles-Auth: demo" -H "Content-Type: application/json" \
-d '{"chatGuid":"iMessage;-;[email protected]","message":"help","method":"apple-script"}'
7. Security & Privacy
- End-to-End Encrypted Cloud Relay: BluePill Cloud streams payloads between your desktop/web client and your Mac strictly in memory. Message bodies, attachments, and contacts are never written to cloud storage.
- Metadata-Only Diagnostics: Diagnostic logs record only HTTP method, stripped path (credentials removed), HTTP status code, and latency milliseconds.
- Modern Transport & Auth Security: Enforced TLS 1.3 with HSTS,
HttpOnly/SameSite=Laxsigned session cookies, and PBKDF2-HMAC-SHA256 (600,000 iterations) credential hashing.
8. Troubleshooting Checklist
| Symptom / Code | Root Cause | Fix |
|---|---|---|
| 502 Bad Gateway | Mac Cloud Relay disconnected or bluepill-server stopped |
Run bluepill-server relay-status and brew services restart bluepill on your Mac. |
| 401 Unauthorized | Relay Password mismatch | Copy or rotate your Relay Password in your User Portal. |
| Empty Chats / Permission Denied | macOS Full Disk Access not granted | Grant FDA to Terminal & Homebrew Python in macOS System Settings, then run bluepill-server preflight. |
| Outbound messages fail | Messages.app signed out or Automation denied | Sign into your Apple ID in Messages.app and allow Automation for Messages and System Events. |
9. Support & Contact
Need help setting up your Mac relay or desktop client, want to report a bug, or want to sponsor open-source development?
- Support Email: [email protected]
- General Inquiries: [email protected]
- Source & Issue Tracker: github.com/nertwork/bluepill
- Sponsor Open-Source Builds: GitHub Sponsors · View Supporter Tiers