Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

1.5 KB
Raw Blame

Codync relay

Cloudflare Worker that holds the APNs key and forwards pushes for codync-host. The phone exchanges its APNs token for an AES-GCM ticket (POST /register); hosts only ever see tickets (POST /push). A ticket is a bearer capability: anyone holding it can ask this Worker to push to its device. Only the Worker can decrypt the raw APNs token. Do not log tickets.

Deploy

npm install
npx wrangler secret put APNS_TEAM_ID       # Apple Developer team ID
npx wrangler secret put APNS_KEY_ID        # an APNs Auth Key (Keys → Apple Push Notifications service),
                                           # not an App Store Connect API key — both are AuthKey_*.p8
npx wrangler secret put APNS_SIGNING_KEY   # contents of the .p8 file
openssl rand -base64 32 | npx wrangler secret put TICKET_KEY
npm run deploy

It deploys as codync-relay. The iOS app points at SharedStore.relayURL in CodyncKit. Rotating TICKET_KEY invalidates every ticket; phones re-register on launch.

Test

npm test        # ticket seal/open round trip, `mutableContent` → `mutable-content: 1`
npm run typecheck

Notifications and Live Activities

See the notification design for event copy, encrypted content, ActivityKit payloads, configuration and device acceptance. The Worker handles alerts and updates/ends for activities started on the phone. Dynamic Island shares the ActivityKit update stream. This Worker does not start activities remotely or refresh Home Screen widgets.