Documentation v1.2.16

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.

Zero-SIP Gateway Mode (Default)

Reads your Mac's message database in fast read-only WAL mode (<2ms) and sends via macOS Automation without modifying System Integrity Protection (SIP).

Built-In Cloud Relay

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:

  1. 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.
  2. Connect Your Mac (2-Step Homebrew Setup): Install bluepill-server and link your Mac directly to BluePill Cloud:
    brew install nertwork/tap/bluepill && bluepill-server login && brew services start bluepill
  3. 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.
Don't have Homebrew yet? Install it first:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Streamlined Mac Cloud Relay Quickstart
brew install nertwork/tap/bluepill && bluepill-server login && brew services start bluepill
Desktop Client Quick Test (Live Demo Sandbox)
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.

Don't have Homebrew yet? Install it first:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Homebrew Install & Cloud Login (Recommended Default)
brew install nertwork/tap/bluepill
bluepill-server login
brew services start bluepill
Non-Interactive Relay Token Setup (Optional)
bluepill-server relay-setup --token YOUR_RELAY_TOKEN
brew services restart bluepill
Verify Permissions & Relay Status
bluepill-server preflight
bluepill-server relay-status
  • Full Disk Access (FDA): System Settings → Privacy & Security → Full Disk Access → enable Terminal, iTerm2, and Homebrew python3 so Messages, Notes, Calendar, and Photos are readable.
  • Automation Permissions: Allow python3 / Terminal to control Messages.app and System 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.

Linux Package Installation (v1.2.16)
# 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.

Silent Background Check + 1-Click Confirmation

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.

Offline & Self-Hosted Safe

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\BluePill with zero UAC prompts.
  • Arch Linux / Omarchy: Auto-detects bluepill-bin vs source bluepill and upgrades via pkexec pacman -U (or yay).
  • 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 lacks git/CLT or the tap lags (bluepill-server update-status / bluepill-server update --confirm).
Live Stable Release Feed
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>.

MethodEndpointPurpose
GET/api/v1/pingHealth check ({"status":200,"data":"pong"})
GET/api/v1/updates/latestLive stable release manifest & direct binary asset URLs
GET/api/v1/server/infoServer version & capabilities
POST/api/v1/server/update/checkCheck server version & Cloud Managed Update status
POST/api/v1/server/update/applyApply confirmed server update (LaunchAgent-aware restart)
POST/api/v1/chat/queryList chats with lastMessage & participants
POST/api/v1/message/queryFetch messages for a chatGuid
POST/api/v1/message/textSend text iMessage or SMS
POST/api/v1/message/reactSend tapback (love, like, dislike, laugh, emphasize, question)
POST/api/v1/chat/newCreate a new conversation
GET/api/v1/message/searchSearch messages by query
GET/api/v1/contactList synced AddressBook contacts
GET/POST/api/v1/icloud/{notes,events,photos,calendars,preflight}iCloud Hub modules
cURL Examples (https://api.bluepill.app)
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=Lax signed session cookies, and PBKDF2-HMAC-SHA256 (600,000 iterations) credential hashing.

8. Troubleshooting Checklist

Symptom / CodeRoot CauseFix
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?