Skip to content
Tinbox

Fresh deploy — init to first sign-in

One command takes an empty folder to a live Tinbox on your own Cloudflare account; then the app walks you through three essentials. Everything else is optional and can wait.

The shortest path from nothing to an inbox you can sign into: what you need → two commands → open the app → three essentials. Everything runs on your own Cloudflare account — no mail, keys, or subscriber data transit a Tinbox relay.

Rather not use a terminal? A one-click Deploy to Cloudflare button isn't available yet (it needs a public repo; Tinbox ships on npm) — hand this guide to a coding agent, or have us set it up for you.

What you need

  • Node 22.12+ and pnpm (or npm).
  • A Cloudflare account on the Workers Paid plan (Queues and cron need it).
  • Your domain as an Active zone in that account.
  • Optional: a CLOUDFLARE_API_TOKEN — lets setup turn on Email Routing and Email Sending for you instead of printing two dashboard steps. Scopes are in the deploy guide.

Check the first three in one go: npx tinbox doctor --preflight acme.com.

Two commands

npx wrangler login          # or: export CLOUDFLARE_API_TOKEN=… CLOUDFLARE_ACCOUNT_ID=…
npx tinbox init acme.com    # create the project → set up Cloudflare → go live

init prints its plan before it starts — 3 steps, the folder (./acme-com) and the app URL (https://mail.acme.com) — then works through them:

  1. Create the project — scaffolds ./acme-com and installs it.
  2. Set up Cloudflare — database, storage, queues, secrets, sign-in, mail routing, and the deploy.
  3. Go live — waits until the app URL serves (a new certificate usually takes 2–5 minutes).

It asks at most two things, each one Enter away: your sign-in email (the only address that can claim the owner account; Enter accepts your Cloudflare email) and an optional AI key (Enter skips it — you can add one later in Settings → Assistant).

The run ends with any steps still to do by hand — without an API token, that's turning on Email Routing and Email Sending in the Cloudflare dashboard, each with its exact link and clicks — and then, as its last two lines, your app URL and the one next action.

Interrupted, or something failed? Re-run pnpm tinbox:setup --deploy in the project folder; it only does what's still missing. tinbox doctor opens with a one-line verdict and the single next action, with the detail below it.

Open the app

Open https://mail.acme.com and create your first account (with the default sign-in, click Continue with Tinbox) — you become the owner. The in-app setup takes it from there, one screen at a time:

  1. Your address — claim your own address on your domain.
  2. Shared inboxes — optional: support@, sales@, …
  3. Your team — optional: invite people now or later.
  4. You're ready — a recap, with the extras one click away.

Teammates you invite later see a single welcome screen instead.

Three essentials

Settings → Overview (and the Setup card on Home) tracks the three steps that make mail work, always pointing at the next one:

  1. Verify your domain — inbound + outbound DNS. If setup printed dashboard steps, this is where they show up as verified.
  2. Create your inbox — where mail to an address lands.
  3. Send yourself a test email — one round trip proves sending and receiving.

Agents can read the same checklist with the get_setup_state tool over MCP.

Optional extras

None of these are needed for mail to work. They live under "When you're ready" in the checklist and on the You're ready screen — add them when they're useful:

  • Invite your team — Settings → People.
  • Turn on the assistant — Settings → Assistant (your own provider key).
  • Send from your app — an API key in Settings → API keys; see the sending API.
  • Make it yours — reply agents, skills, outreach: the personalize launchpad.
  • BIMI logo in inboxes — tinbox doctor --fix-bimi (needs a VMC/CMC certificate).
  • Git archive of your mail — the opt-in github-archiver worker.
  • Local sign-in — set auth.mode: "local" (passkeys + email/password) or "both" in tinbox.config.ts and redeploy.

Next steps