Skip to main content
Deploy your Restate services on Cloudflare Workers. This guide covers project configuration, service registration, and security setup.
Follow the quickstart to try Cloudflare Workers and Restate locally.

Set up your project

Start with the cloudflare-workers-template and follow its README.

Create your Restate + CloudFlare workers repository

Local development

A Workers dev server can be started on port 9080 using:
Register the service with Restate:
wrangler only supports HTTP/1.1 when running locally, so the --use-http1.1 flag is required. This flag is not needed when deploying to Cloudflare Workers.

Register the service to Restate

After deploying to Cloudflare Workers, register the service with Restate CLI or UI providing Preview URLs to target specific service versions:
You’re set up. Head over to the Overview page > Greeter > Playground and start sending requests to your service.

Restate identity keys (for Restate Cloud)

To allow only a specific Restate Cloud environment to send requests to your Cloudflare Workers deployment, head over to your Restate Cloud Dashboard to set up Restate identity keys.

Restate Cloud > Developers > Security

Set up Restate identity keys

CI/CD Automation

To automatically deploy to Cloudflare Workers on each git commit to main and automatically register new Restate service versions:
Make sure your Cloudflare Worker project exists. If it doesn’t, create it with: npx wrangler deploy
For this workflow to execute, you need to add the following GitHub Actions repository secrets: Token setup
You can use this workflow with Self-hosted Restate as well, just make sure to correctly set up RESTATE_AUTH_TOKEN and RESTATE_ADMIN_URL to reach your Restate cluster.