iMessage bot on Cloudflare Workers with Hono
Put your product in iMessage with Keiki from a Hono app on Cloudflare Workers, in about 100 lines of code.
View imessage-hono-workers-starter on GitHub
How do I run an iMessage bot on Cloudflare Workers?
- Clone github.com/Mail-0/imessage-hono-workers-starter and deploy it with the Deploy to Cloudflare button or
npm install && npx wrangler deploy. - Run
npx @onkeiki/cli init --dispatch-url https://your-app.example.com/keiki/turn --skip-installwith your Worker URL, thennpx wrangler secret put KEIKI_SIGNING_SECRETandnpx wrangler secret put OPENAI_API_KEY. - Attach an iMessage line to the agent and text it.
Your code, your model, your servers. Keiki only handles the channels.
Details
- Stack: Hono, Cloudflare Workers, Vercel AI SDK, TypeScript
- Channels: iMessage
- Docs: /docs/external-harness
- Guide: How do I run an iMessage bot on Cloudflare Workers?