Install Tinbox
Scaffold a new Tinbox deployment with one command and run it locally.
Tinbox ships as an npm package that scaffolds a self-contained email stack you deploy to your own Cloudflare account — inbox, transactional sending, and newsletters, with no third-party relay in the path.
Going live today? Follow Fresh deploy instead —
npx tinbox init <domain>creates the project, sets up Cloudflare, and deploys in one run. This page is the local-first route.
Scaffold a project
npx tinbox init acme.dev --no-deploy # create + install only; no Cloudflare yet
cd acme-dev
tinbox init <domain> writes a worker entry (src/worker.ts), a
wrangler.jsonc with the Cloudflare bindings (D1, R2, KV, Queues), a
tinbox.config.ts, and a package.json wired to the published tinbox package,
then installs it. The folder defaults to the domain's slug (acme-dev); pass a
second argument to choose another.
Run it locally
pnpm tinbox:dev
This boots the worker on local SQLite so you can sign in, read mail, and try the
chat assistant before touching a real Cloudflare account. When you're ready to go
live, run pnpm tinbox:setup --deploy in the same folder.
Choose how to deploy
The supported way to put Tinbox on your Cloudflare account today is the local, one-command CLI path (②). The zero-terminal Cloudflare button (①) is not available yet — it needs a public GitHub repo to clone, and Tinbox ships on npm instead. Its column is kept for reference.
| Deploy step | ① Button (one-click) | ② CLI tinbox setup |
|---|---|---|
| CF account + auth | ✅ dashboard OAuth | ⚠️ wrangler login / token |
| Provision D1/R2/KV/Queues | ✅ button provisions all (incl. queues/DOs) | ✅ tinbox setup |
| Migrations (baseline schema) | ⚠️ via deploy script — verify ordering | ✅ tinbox setup/migrate |
Internal secrets (BETTER_AUTH_SECRET, ASSET_SIGNING_KEY) | ⚠️ deploy-form prompt or script-gen | ✅ auto-generated |
| External keys (optional AI key, GitHub OAuth) | ✅ deploy-form prompt | ⚠️ one optional AI-key prompt (Enter skips; or add it in-app) |
| Deploy worker | ✅ | ✅ --deploy |
Custom domain (mail.<domain> default, inbox.<domain> fallback) | ❌ manual (deploys to workers.dev) | ⚠️ wrangler route if zone on acct |
| Inbound Email Routing (catch-all → worker) | ❌ in-app onboarding | ✅ with token (else prints steps) |
| Sending DNS (SPF/DKIM/DMARC) | ❌ manual | ⚠️ prints; auto if DNS on CF + token |
| SSO "Continue with Tinbox" | ❌ in-app | ✅ domain proof |
✅ automated · ⚠️ one conditional step · ❌ done by hand — after deploy, the in-app Verify your domain step (Settings → Domains) walks you through the ❌ rows.
The deploy guide has the full walkthrough for each path, with the dashboard and CLI steps for everything in the ⚠️/❌ rows.
Next steps
- Deploy to your Cloudflare account — provision resources and go live on your domain.
- Connect an MCP client — let Claude (or any MCP agent) drive your inbox with the same tools the in-app assistant uses.
- Browse the tool reference to see every capability an agent has.