Deploy Rafiki on Cloudflare and Modal
Rafiki is a Cloudflare Worker plus Modal backend for running agent workflows, session state, streaming, and background jobs in your own account.

Start Here
What This Site Covers
- prerequisites for Cloudflare and Modal
- the deploy order for the Modal backend and Cloudflare Worker
- shared secrets and bindings you need on both sides
- one end-to-end smoke test through
/healthand/query - API reference material after your stack is live
If you want to understand how the two pieces fit together, use How Rafiki Fits Together after the deployment flow.