Official Website: https://bluepill.app · Live Interactive Demo: Try Live Demo · Free Cloud Relay Signup: Sign Up Free · Support Open-Source Development: ❤️ Sponsor on GitHub · Sponsor BluePill
Sponsorships fund the Apple Developer Program ($99/yr), Windows Code-Signing certificates, and Cloud Relay edge infrastructure.
Downloads (.exe / .deb / .rpm) · Documentation · support@nertwork.com
BluePill (bluepill, backward-compatible with imsg) is a complete, open-source iMessage, RCS, and SMS ecosystem for Linux, Windows, macOS, and the Web — developed natively on Omarchy Linux (Arch Linux + Hyprland + Wayland) with live Omarchy theme hot-reloading — consisting of three unified interfaces:
- Native Linux & Windows Desktop Client (
bluepill): A fast (~48 MB RSS), zero-Electron, zero-Flutter C++20 and Qt6/QML desktop application for Linux (Arch/Omarchy AUR, Debian/Ubuntu.deb, Fedora/RHEL.rpm) and Windows (BluePill-Setup-*.exe) with 0ms local cache startup, real-time Socket.IO v4 push, Pinned Conversations, 1-click 2FA OTP copy pills, built-in Photo Lightbox, and live Omarchy theme hot-reloading. - Headless macOS Relay Daemon (
bluepill-server/brew install nertwork/tap/bluepill): A lightweight (~18 MB RSS), zero-Electron macOS daemon that reads~/Library/Messages/chat.dbdirectly in SQLite WAL mode (<2msqueries), decodesattributedBodytypedstreams natively, resolvesAddressBookcontacts in<5ms, includes built-in BluePill Cloud Relay (wss://api.bluepill.app/tunnel/connect, zero port-forwarding), and supports both FullIMCorePrivate API mode and Zero-SIPosascriptGateway mode — while remaining 100% API-compatible with legacy BlueBubbles Server (1.9.x). - Unified BluePill Web Client (
http://<mac-relay>:1235/web,https://bluepill.app/t/<slug>/web, orhttps://bluepill.app/demo): A zero-install, single-file browser client with Liquid Glass / Matrix / Light theme switching, auto-populated relay credentials when signed in, 3-column pinned chats grid, contact resolution &lastMessageconversation previews, lazy-loaded Photos, inline<audio>/<video>playback with server-side.caf(audio/x-caf) transcoding (?transcode=1), auto-retry +↻ Resend, unified Messages, Notes, Calendar, Photos, and Contacts tabs, inline tapbacks, 1-click 2FA OTP copy pills, real-time Socket.IO updates, and hardened XSS/CSP/Cache-Control: no-store, private/cookie isolation.
Active Conversation — Upper-Corner Tapbacks, Multi-Photo Gallery, 1-Click 2FA OTP & Sleek Pill Composer
On any Mac signed into your Apple ID (Messages.app):
brew install nertwork/tap/bluepill
bluepill-server login # Opens https://bluepill.app/portal to link your Mac
bluepill-server setup-permissions # Checks FDA, BluePillPhotoHelper.app Photos & Notes/Calendar Automation
brew services start bluepill- Verify Relay, Cloud Relay & Web UI:
- Cloud Relay Status:
bluepill-server relay-status - Cloud Managed Updates (BluePill Cloud Perk):
bluepill-server update-status/bluepill-server update --confirm(or 1-click confirmation inside the desktop client UI — strictly gated to signed-inbluepill.appusers; never phones home when self-hosted offline). Mac server updates use LaunchAgent-aware restarts (launchctl kickstart -kforcom.nertwork.bluepill-server/homebrew.mxcl.bluepill) and automatically fall back to SHA256-verified GitHub release bottles (bluepill-<ver>.all.bottle.tar.gz) if Homebrew lacksgit/Xcode CLT or the tap lags. - Smart Direct Cross-Platform Client Auto-Updates: Signed-in desktop clients verify release
SHA256SUMS.txtover an HTTPS allowlist (github.com,objects.githubusercontent.com,release-assets.githubusercontent.com,bluepill.app) and apply updates directly — silent Inno Setup (/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /CLOSEAPPLICATIONS /NORESTARTAPPLICATIONS) on Windows,pkexec pacman -U(oryay/paruforbluepill-bin) on Omarchy/Arch,pkexec apt-get installon Debian/Ubuntu, andpkexec dnf installon Fedora/RHEL (with terminalsudofallback when no polkit agent is active). - Health / Info API:
curl -s http://127.0.0.1:1235/api/v1/server/info - Built-In Web UI: Open
http://127.0.0.1:1235/web(or your hosted Cloud Relay Web UI athttps://bluepill.app/t/<slug>/web). - Try instantly without a Mac: Live Interactive Demo or click "Try Live Demo" inside the desktop client.
- Cloud Relay Status:
- 100% Legacy BlueBubbles Compatible: Already running
BlueBubbles.app(v1.9.x)?BluePillconnects to existing BlueBubbles servers out of the box with zero server changes required.
- Arch Linux / Omarchy (
x86_64):yay -S bluepill-bin(fast prebuilt binary, ~4s install; oryay -S bluepillto compile from source onx86_64/aarch64) - Debian / Ubuntu (
.deb): Downloadbluepill_<version>_amd64.debfrom GitHub Releases (sudo apt install ./bluepill_*.deb) - Fedora / RHEL (
.rpm): Downloadbluepill-<version>-1.x86_64.rpmfrom GitHub Releases (sudo dnf install ./bluepill-*.rpm) - Windows (
x86_64.exe— Per-User Standalone, No Admin Required): DownloadBluePill-Setup-<version>-win64.exefrom GitHub Releases (~53 MB; installs to%LOCALAPPDATA%\Programs\BluePilllike VS Code User Setup with silent zero-UAC auto-updates, native in-processQt6::Multimediaaudio playback, and optional settings cleanup on uninstall)
# Launch the GUI — click "Sign in at bluepill.app →" (default) or "Try Live Demo"
bluepill
# Or launch the Built-In Web UI in your default browser
bluepill --webui- Pinned Conversations Bar: Syncs pinned threads from macOS (
com.apple.messages.pinning.plist) or lets you right-click any conversation to pin/unpin circular avatar tiles at the top of the sidebar. - 1-Click 2FA / OTP Verification Code Copy (
Copy Code: 482910): Automatically extracts 4–8 digit verification codes andG-XXXXXXtokens from incoming SMS/iMessage texts (while ignoring years, phone numbers, and prices) and renders a 1-click copy pill inside the message bubble. - iOS-Style Inline Media, Multi-Image Queuing & Proportional Viewers: Photos keep their aspect ratio (scaled down, never cropped), GIFs and WebP animate inline and in the decluttered, proportionally sized Photo Lightbox, and photos or 1–3 emoji sent without text render cleanly without a bubble. Queue multiple pasted/attached images or embed iCloud/iMessage Photos directly in the composer (
sendAttachments()), and browse Notes and Calendar in proportionally sized modal viewers. - Right-Click Tapbacks, Upper-Corner Reactions & Multi-Message Selection: Right-click any message bubble or photo to open the macOS Messages-style context popover (
❤️ 👍 👎 😂 ‼️ ❓ ➕custom emoji picker, Reply, Edit, Copy / Copy Image, Copy Code, Unsend, Delete); reaction pills anchor cleanly to the upper-left (sent) / upper-right (received) corner of bubbles. Select multiple messages withCtrl+ClickorShift+Clickand pressCtrl+C(or Copy / Copy with Names) to copy them chronologically. - Expressive Send Effects (
Slam,Loud,Gentle,Invisible Ink,Confetti,Lasers,Fireworks,Echo): Right-click the Send (↑) button or choose Send with Effect to send immediately or arm a dismissible effect pill (✨ Sending with <Effect>) above the composer, with full-viewport animations, click-to-reveal Invisible Ink,"· Edited"and"· sent with ..."indicators, and red"⚠ Not Delivered"alerts. - Multi-Recipient Group Chat Creation & Compact Service Badges: Start new 1:1 or group threads (
Ctrl+N) using the chip/tokenTo:bar (Enter, comma, or autocomplete click adds removable recipient chips;Backspaceremoves the last chip) backed byPOST /api/v1/chat/new, with compact iMessage/SMS symbol badges in the sidebar and headers. - Composer Spell Check, Custom Dictionary & macOS Grammar Assist: Real-time spell-check underlines, right-click spelling suggestions, custom dictionary persistence (
~/.config/bluepill/dictionary.txt), and macOS relayNSSpellCheckergrammar/auto-suggest chips (POST /api/v1/text/check), all toggleable in ⚙ Settings → Appearance. - Native Audio Waveforms & Windows Voice Memo Recording (
Qt6::Multimedia): Renders interactive 28-bar voice memo waveforms across Linux and Windows (Qt6::Multimedia+ bundledffmpeg.exe) with in-process voice memo recording on Windows, Linux, and macOS. - In-Chat YouTube & Web Video/Media Playback (
Qt6::Multimedia+ optionalyt-dlp): Renders rich 16:9 video preview cards in chat for YouTube (videos, Shorts, live), Vimeo, Twitch clips/videos, TikTok videos, Instagram Reels, Reddit (v.redd.it), Streamable, Dailymotion, and direct.mp4/.webm/.mov/.m4v/.mkvURLs, playing them natively inside BluePill's modal video player with play/pause/seek/volume/fullscreen controls and a 1-click "Open in Browser" fallback whenyt-dlporQt6::Multimediais unavailable. - Non-Blocking Clipboard Image Copy (
Copy Image/ Right-Click /Ctrl+C) & Instant Paste (Ctrl+V):- Copy any photo from a message bubble (
Copy Imagein the right-click menu, right-click on an inline photo card, orCopy/Ctrl+Cin the Photo Lightbox) with<0.5msGUI-thread response via header-only validation (QImageReader::canRead()), localfile://URL staging (m_lastCopiedImagePath), and asynchronous backgroundQThreadPoolPNG encoding (QImageWritercompression level 1 piped towl-copy --type image/png). - Paste and queue images across conversations (
Ctrl+VorShift+Insertin the message composer) using a<0.1mszero-copy fast-path for in-app/local image files and direct raw byte stream writes for external Wayland screenshots (wl-paste).
- Copy any photo from a message bubble (
- Clickable Scheme-Less SMS Shortlinks & Rich Multi-Paragraph Formatting: Automatically linkifies both full
https://URLs and scheme-less SMS/carrier domain links (e.g.,youngla.attn.tv/...,bit.ly/...,www.example.com/...) while preservingparagraph breaks as<br/>and opening links with debouncedBackend::openUrl()(QDesktopServices+xdg-openfallback). - Strict Per-Chat Optimistic Send & Off-Thread Cache Architecture:
- Optimistic
temp-*and synthetic local items (local-note-*,local-cal-*) are strictly isolated to their originatingchatGuidacrossm_messages,m_chatMessagesCache, andmessages_cache.json, preventing cross-conversation bleeding. - Periodic message cache persistence (
flushMessagesCacheNow) snapshots implicitly-sharedQHash/QListcontainers in<0.05msand performs all sorting,attributedBodyextraction, JSON serialization, and atomic disk writes on a backgroundQThreadPoolworker.
- Optimistic
- Three Flexible Transports:
- BluePill Native macOS Relay (
https://...orhttp://...:1235) —<18 MBheadless daemon + built-in Web UI. ⚙ Settings finds relays on your Tailscale network automatically, defaults tohttp://, and has a separate Port field (default1235). - Legacy BlueBubbles Server (
https://...) — 100% backward-compatible withBlueBubbles.app+BlueBubblesHelper.dylib. - Direct SSH Mode (
ssh://user@mac-host) — Key-based SSH transport with zero password required.
- BluePill Native macOS Relay (
- Optional iCloud Hub Modules (Notes, Calendar & Photos.app Gallery) + Homebrew Preflight CLI:
- All three iCloud Hub modules (
📝 Notes,📅 Calendar,☁️ Photos) are enabled by default for full testing and can be individually enabled or disabled at any time in⚙ Settings(Ctrl+,) -> iCloud Hub Modules (Optional), via environment variables (BLUEPILL_ENABLE_NOTES=0/1,BLUEPILL_ENABLE_CALENDAR=0/1,BLUEPILL_ENABLE_PHOTOS=0/1), or viabluepill-serverCLI flags (--enable-notes/--disable-notes,--enable-calendar/--disable-calendar,--enable-photos/--disable-photos). - Read/Write iCloud & Local Hub Notes with an in-place editor + full-screen Pop Out modal, HTML rendering, rich preview, and attachment downloads.
- Paginated & Full-Screen (
⛶ Full Screen) iCloud Photos, Notes & Calendar with customizable24 / 60 / 120items per page selector, custom scrollbar, and page navigator. - Full local macOS Photos.app library browser with instant preview, zoom, copy, and download, plus Apple Calendar events with schedule and day agendas.
bluepill-server preflightverifies macOS Full Disk Access forNoteStore.sqlite,Calendar.sqlitedb, andPhotos.sqlite, and automatically enables/kickstartscom.apple.photolibrarydandcom.apple.cloudphotodon macOS so iCloudPhotos.applibrary assets and derivatives stay synced.bluepill-server setup-permissions(with optional--check-only/--json/--force-helper) checks and guides setup for all required macOS Privacy & Security permissions: Full Disk Access (chat.db),BluePillPhotoHelper.appPhotos Full Access (installed into/Library/Application Support/BluePill/BluePillPhotoHelper.appor~/Library/Application Support/BluePill/BluePillPhotoHelper.appfor iCloud Photos deletion, and preserved automatically across upgrades unlessBluePillHelperVersionchanges so Photos/Notes/Calendar TCC grants stay intact; CI also supports optionalMACOS_CODESIGN_CERT_P12Developer ID signing for zero-reprompt helper rebuilds), and macOS Automation forNotes.appandCalendar.app. On first startup (or whenBluePillHelperVersionchanges),bluepill-serveralso automatically triggers official macOS consent prompts for any undetermined (notDetermined/-1744) Photos, Notes, or Calendar permissions once per helper version (recorded in~/.config/bluepill/permissions_prompted.json; opt out viaBLUEPILL_AUTO_PROMPT_PERMISSIONS=0) and exposes a cachedpermissionssummary inGET /api/v1/server/info.
- All three iCloud Hub modules (
- Customizable Notifications, System Tray, Auto-Updates & Calm Collapsible Settings:
- Eliminates spurious startup/historical/self-echo audio alerts via startup baseline (
m_initialSyncComplete,m_startupTimestamp,m_startupHighestRowId), persistentnotifiedMessageGuidsinstate.json, and active-chat focus mute (notificationMuteWhenActive). - Configurable in
⚙ Settings(Ctrl+,) -> Notifications with toggles for Desktop Banner, Audio Ding, Mute Focused Chat, Minimize to Tray on Close (minimizeToTrayOnClose, default ON; useCtrl+Qor tray Quit to exit), single-instance window wake, click-to-focus desktop notifications, and 6 built-in synthesized.wavpresets (Classic Chime,Crystal Ding,Tri-Tone Marimba,Soft Pop,Glass Ping,System Tone). - Top-left connection dot turns Red (
Disconnected), Yellow (Mac needs Full Disk Access) whenchat.dbpermissions are missing on macOS (503 chat_db_unreadable), and Green (Connected) when online.⚙ Settings(Ctrl+,) displays a header version badge and keeps Connection, Appearance, and Notifications tidy with collapsed-by-default accordions (iCloud Hub Modules,Updates,Self-Hosted & Advanced,Interface & Layout,Audio Devices & Advanced Alerts). First-run launches also present a one-time onboarding wizard (onboardingCompleted). - Auto-Updates ON by Default (Opt-Out Available): Both the desktop client (
autoUpdateCheck, including silent in-place Windows Inno Setup updates) andbluepill-server(autoUpdatein~/.config/bluepill/server.json, running on startup + every 6h) enable automatic update checks by default with explicit opt-out toggles (BLUEPILL_AUTO_UPDATE=0/"autoUpdate": falseon macOS, or Auto-Check Updates in Settings).
- Eliminates spurious startup/historical/self-echo audio alerts via startup baseline (
- High-Contrast Darker Emerald RCS Sent Bubbles (
#1B5E3A): Vivid contrast and WCAG AA legibility for sent RCS messages against dark backgrounds, paired with<0.5msnon-blocking async clipboard image copy/paste. - Full Headless JSON CLI (
bluepill,imsg&bluepill-server):bluepill status --json bluepill recent --limit 10 --json bluepill send "+14155550142" "Hello from BluePill CLI" --json bluepill-server setup-permissions --check-only bluepill-server preflight --json bluepill-server doctor bluepill --webui
- Sign into Apple Messages on your Mac: Open
Messages.app, sign in with your Apple Account, and (optionally, for SMS/RCS) enable Settings → Apps → Messages → Text Message Forwarding on your iPhone. - Grant macOS Permissions & Start the Relay: Run
bluepill-server setup-permissions(orbluepill-server setup-permissions --check-only) and under System Settings → Privacy & Security, enable:- Full Disk Access for Terminal / Homebrew Python (
chat.db, Notes, Calendar, Photos) - Automation for Python /
bluepill-serverto control Messages.app, Notes.app, and Calendar.app (required for sending via AppleScript and deleting iCloud Notes/Events) - Photos (Full Access) for
BluePillPhotoHelper.app(installed automatically by Homebrew into/Library/Application Support/BluePill/BluePillPhotoHelper.appor~/Library/Application Support/BluePill/BluePillPhotoHelper.app). By default (photoDeleteMode: "trash_album"/BLUEPILL_PHOTO_DELETE_MODE=trash_album), deleted iCloud Photos are moved with zero macOS confirmation popups into theBluePill Trashalbum (BLUEPILL_PHOTO_TRASH_ALBUM) and excluded from BluePill's Photos view until restored or emptied in Photos.app; setphotoDeleteMode: "delete"(BLUEPILL_PHOTO_DELETE_MODE=delete) for direct PhotoKit deletion with a macOS confirmation prompt. Then runbrew services start bluepilland verify withbluepill-server doctorandbluepill-server setup-permissions --check-only.
- Full Disk Access for Terminal / Homebrew Python (
- Connect Your Linux Desktop Client: Launch
bluepilland pressCtrl+,(or click⚙ Settings) to enter your Primary Server URL (http://<mac-ip>:1235,https://your-relay.example.com, or Direct SSHssh://user@mac-host), optional Failover URL, and API Password, or pre-configure~/.config/bluepill/config.json(0600) or environment variables (BLUEPILL_SERVER_URL,BLUEPILL_PASSWORD).
- Your Data Stays on Your Hardware:
bluepill-serverreads~/Library/Messages/chat.dbandAddressBookdirectly on your own Mac in read-only SQLite WAL mode (?mode=ro) with zero third-party cloud relays or Firebase push dependencies. - Owner-Only Credentials & Keyring Support: On Linux,
~/.config/bluepill/config.jsonenforces0600(-rw-------) permissions, Freedesktop Secret Service (libsecret/secret-tool) integration is built in, local message caching resides solely in~/.cache/imsg/, and all HTTPS/Socket.IO requests enforceQSslSocket::VerifyPeer. - Safe Diagnostics:
bluepill status --jsonandbluepill doctorautomatically mask passwords and session tokens.
BluePill is developed, continuously tested in CI, and verified across the following OS and architecture targets:
| Component | Operating System | CPU Architectures | Display / Runtime Stack | Package / Distribution |
|---|---|---|---|---|
BluePill Desktop & CLI (bluepill) |
Arch/Omarchy, Debian/Ubuntu, Fedora/RHEL | x86_64, aarch64 (ARM64) |
Wayland (Hyprland, Sway, KDE, GNOME) & X11 · Qt 6.8+ (Qt6::Multimedia) / C++20 · PipeWire |
AUR: yay -S bluepill-bin (prebuilt) / yay -S bluepill (source)Packages: .deb & .rpm in Releases |
BluePill Windows Client (bluepill.exe) |
Windows 10 / 11 | x86_64 |
Native Qt 6.8 MSVC + Inno Setup Installer | Installer: BluePill-Setup-*.exe in Releases |
BluePill macOS Relay Daemon (bluepill-server) |
macOS Sequoia (15.x), Sonoma (14.x), Ventura (13.x), Tahoe (26.x) |
arm64 (Apple Silicon) & x86_64 (Intel / KVM Virtual Machines) |
Python 3.11+ · SQLite 3 WAL · Built-in Cloud Relay (wss://) · IMCore or osascript |
Homebrew: brew install nertwork/tap/bluepillCloud Login: bluepill-server login |
BluePill Web Client (/web & Cloud Portal) |
Cross-Platform (Linux, macOS, Windows, iOS, Android) | Any | Liquid Glass / Matrix / Light UI · Zero External CDN · Socket.IO | Built into bluepill-server (/web) & bluepill.app |
- Complete Installation & Operations Guide — Production installation on Arch Linux, Omarchy, Debian, Ubuntu, Fedora, NixOS, macOS Relay, Web UI, and full REST & RPC API specification.
- AI Agent Installation Playbook — Non-interactive, copy-pasteable autonomous agent workflows with explicit timeouts and automated verification.
- Autonomous Agent Instructions (AGENTS.md) — Canonical operational prompts and autonomous execution rules for Claude Code, OpenCode, Gemini CLI, Codex, Cursor, and Antigravity.
- macOS Relay & BlueBubbles Setup Guide — Installing
bluepill-servervia Homebrew on macOS, using the Built-In Web UI, or connecting to a legacy BlueBubbles Server. - Configuration, Transports & CLI Reference — Configuring HTTPS, Failover URLs, Direct SSH (
ssh://), Linux Secret Service (libsecret), and JSON CLI automation. - Architecture & Internals — How the C++20/Qt6 client, SQLite WAL
bluepill-serverdaemon,IMCoreTCP bridge, and Socket.IO v4 push pipeline work under the hood. - Contributing Guide — Building from source, running the 139+ offscreen unit tests (
./bin/test), and submitting Pull Requests reviewed by@coderabbitaiand Arch Linux CI.
Every commit and Pull Request on nertwork/bluepill is verified by GitHub Actions across Linux and packaging targets:
Lint, Syntax & Security Audit: Validates linked issue metadata, runs the Security & Configuration Hygiene credential/placeholder scan, compiles and runspython3 server/bluepill_server.py --selftest, and syntax-checksbin/build,bin/test, andFormula/bluepill.rb.Arch Linux Build, Unit Tests & Package: Buildsbluepill(C++20 / Qt6) insidearchlinux:latest, runs the full offscreen QtTest suite (QT_QPA_PLATFORM=offscreen ./bin/test), verifies offscreen--demo-screenshotrendering, and builds the Arch Linux package withmakepkg.Static Analysis (cppcheck / qmllint) & CodeRabbit-Style AI Review: Runscppcheck --library=qtand Qt6qmllinton every PR and posts a detailed walkthrough.Documentation Sync (gh-pages)&Release: Automatically publishes updated docs to GitHub Pages onmain, and builds Arch.pkg.tar.zstarchives plus Homebrew universal bottles (bluepill-*.all.bottle.tar.gz) on version tags (v*).
Starting Point & Foundation: BluePill began as a native Linux/Windows client built on top of the BlueBubbles protocol, BlueBubblesHelper Private API ecosystem, and open-source community. Huge credit and thanks to the BlueBubbles maintainers and contributors whose pioneering work made iMessage on non-Apple desktops possible — BluePill remains 100% API-compatible with BlueBubbles Server (1.9.x) in tribute to that foundation.
Thank you to everyone contributing code, bug reports, testing, and platform improvements to BluePill!
- @nertwork (James Farr Gomez) — Creator & Maintainer (C++20/Qt6 Linux client, macOS
bluepill-serverrelay,IMCorebridge, Web UI, Arch AUR & Homebrew packaging). - @JosephGottlieb (Joseph Gottlieb) — macOS 26 (
any;chat GUID) iMessage/RCS/SMS service resolution (#36 / #28), Server Setup Port field & Tailscale relay discovery (#35 / #29 / #30), in-place photo timeline resolution without list resets (#42 / #44), confirmed message Edit/Unsend within 2-minute window & right-click action bar (#55 / #49), Contact Info card, full macOS AddressBook fields & circular contact photos (#56 / #50), link-preview image decoding validation (#58 / #52), inline quoted-reply Thread View & Jump-to-Original (#59 / #53), and macOS pinned conversations sync & context menu Pin/Unpin (#60 / #54).
See the full GitHub Contributors Graph and our Contributing Guide to get involved.
- Live Demo & Free Beta Cloud Relay: https://bluepill.app/demo · https://bluepill.app/signup
- Support & Security Contact: support@nertwork.com · GitHub Issues
- License: Released under the MIT License.




