An iMessage harness for Grok BotMeet Grok Bot

Text your Grok Bot from iMessage

Spectrum takes the message off your line, the bridge wakes your Bot's routine, and the answer arrives in the same thread. Memory, skills and the cloud computer stay on the Bot.

MIT · Bun and TypeScript · One-click setup

bridge logidle

  1. spectrummessage received+0.00s
  2. bridgereply token minted+0.01s
  3. botroutine woken+0.34s
  4. bridgePOST /reply+2.94s
Grok Bot

iMessage · Today 23:41

what did I decide about the token store?

Delivered

In-memory map for v1, single process. Redis only once the bridge runs on more than one instance — it's in ARCHITECTURE.md under Tokens.

Run the bridge

Clone the repo, drop your Spectrum credentials into .env, and start the two processes. How much the bridge does depends on what you fill in.

git clone https://github.com/Hanif-adedotun/grok-imessage
cd grok-imessage && bun install
cp .env.example .env

bun run dev:bridge
bun run dev:web
HTTP onlyno Spectrum credentials/health and /reply listen
EchoPROJECT_ID + PROJECT_SECRETinbound text echoed back
Wake+ GROK_BOT_WEBHOOK_*wakes the Bot, reply via POST /reply