Simple Inbox
Cloudflare Inbox

Deploy Cloudflare Inbox

Use the Deploy to Cloudflare button, then finish domain and auth setup.

One-click Worker deploy

Use the deploy button from the Cloudflare Inbox landing page:

Deploy to Cloudflare

The deploy flow clones the template into your GitHub/GitLab account, lets you choose project/resource names, builds the Worker, and provisions supported Wrangler resources such as R2 and Queues.

Required deploy inputs

Cloudflare Inbox needs these runtime values:

NamePurpose
AUTH_REQUIREDKeep production inbox access fail-closed. Use true.
SUPPORT_ALIASDefault mailbox fallback, for example support@example.com.
FORWARDING_ADDRESSOwner email that receives forwarded messages and magic links.
INTERNAL_SENDER_EMAILSender used for magic-link emails.
INTERNAL_SENDER_NAMEOptional display name for internal emails.
APP_ORIGINDeployed app origin, used for absolute download links.
AUTH_COOKIE_SECRETSecret used to sign browser sessions and magic-link tokens.
API_TOKENOptional bearer token for machine /api/* routes.

What remains after deploy

After the Worker is deployed:

  1. Onboard your domain to Cloudflare Email Service / Email Routing.
  2. Add the DNS records Cloudflare provides.
  3. Verify the forwarding destination address.
  4. Route a custom address or catch-all address to the Worker.
  5. Open /login, request a magic link, then open /app.
  6. Send a test inbound email and reply from the web UI.

Local validation commands

Inside the Cloudflare Inbox repo:

npm install
npm run typecheck
npm test
npm run build:worker
npm run dry-run:worker

Use npm run deploy or npm run deploy:worker for production deploys once the template scripts are configured.

On this page