Put Spool online
Spool runs on your own computer first. To use it from anywhere, put it online: Run Edit Run can set it up with you or run it for you, or you can do it yourself on your own Cloudflare account.
Allow roughly 500 MB–1 GB of downloads and 1–3 GB of disk space for a first run, including Node, rer, the app and its dependencies. The app and your computer can need more; later runs reuse downloads.
Run it yourself
One line in your terminal gets Spool running on your computer, with you as its owner.
SPOOL_TAG=$(git ls-remote --refs --tags --sort=-version:refname https://github.com/just-every/run-spool.git | awk '$2 ~ /^refs\/tags\/v[0-9]+\.[0-9]+\.[0-9]+$/ && !tag { sub("refs/tags/", "", $2); tag=$2 } END { if (tag) print tag }') && test -n "$SPOOL_TAG" && printf 'Installing Spool %s\n' "$SPOOL_TAG" && mkdir run-spool && git init -q run-spool && git -C run-spool remote add origin https://github.com/just-every/run-spool.git && git -C run-spool fetch --no-tags origin "refs/tags/$SPOOL_TAG:refs/tags/$SPOOL_TAG" && git -C run-spool checkout --quiet --detach "refs/tags/$SPOOL_TAG^{commit}" && (cd run-spool && curl -fsSL https://runeditrun.com/install.sh | sh -s -- dev --host localhost) macOS, Linux or Windows with WSL2. git is required; rer brings Node and pnpm.
Spool then runs only on your computer: nobody else can open it, and it sends no email. To start it again later, run ~/.local/bin/rer dev --host localhost from the run-spool folder.
Assisted
Let Run Edit Run do it
We set it up with you and keep it updated. It stays yours, on your computer or your own cloud.
Either way, we guide you through the setup.
What stays yours
- The code: Spool is MIT licensed, so you can change it and run it without us.
- The data: it stays on your computer or in your own Cloudflare account.
- If you stop, your repository and your Cloudflare account stay yours.
For now, sign-ups are by request. The link asks for access with Spool and Assisted already chosen, and we email you about the next steps.
Managed
Let Run Edit Run host it
We run it for you. Nothing to install.
Spool runs on Run Edit Run's cloud instead of yours. The code stays MIT licensed, so you can still run it yourself.
For now, sign-ups are by request. The link asks for access with Spool and Managed already chosen, and we email you about the next steps.
Put it online yourself
Managed mail
With RER Managed hosting, Configure supplies and hides all four mail inputs: MAIL_PROVIDER=rer, MAIL_FROM, MAIL_RELAY_URL and the private MAIL_API_KEY. RER assigns the sender and relay URL and stores an installation/environment credential in encrypted private settings. You need no provider account and copy no mail key. The provider credential stays with RER. Spool uses Base's rer mail adapter for sign-in links and email alerts.
This checkout uses the rer version pinned in package.json. Free and Assisted self hosting can deliberately turn mail off or choose an enabled provider with its sender and credentials. The manual Cloudflare/SendGrid procedure below remains available for your own account.
Run Spool on your Cloudflare account
rer deploy puts this checkout on your own Cloudflare account as one Worker with its D1 database, at https://spool-<environment>.<your-subdomain>.workers.dev. Choose your environment name once as SPOOL_ENV below (default production). Use a lowercase identifier starting with a letter, with letters, digits and single hyphens between segments (at most 32 characters), and keep using the same one in later terminals too.
The deployment token must be able to read the account's Workers settings. rer deploy sets the per-invocation CPU limit from wrangler.jsonc (30 seconds) on Workers Paid and leaves Workers Free on Cloudflare's plan limit. If rer cannot determine the plan, it stops before changing Cloudflare resources. After deploying, check result.limits.cpu_ms in the Worker settings response.
For the Free or Assisted account procedure below, you need:
- this checkout, set up as in the README (git is required; the installer brings rer, Node and pnpm);
- a Cloudflare account with a workers.dev subdomain, its account ID, and an API token that can edit Workers scripts and D1;
- for enabled email, a SendGrid API key that can send mail and a verified sender address; alternatively select
MAIL_PROVIDER=noneand use the guarded owner sign-in below.
Choose a tagged checkout from Spool's GitHub Releases. The steps below prepare it without leaving a dev runtime running. Node and pnpm do not need to be on PATH.
First install
Install and set up the latest stable Spool release on this computer.
SPOOL_TAG=$(git ls-remote --refs --tags --sort=-version:refname https://github.com/just-every/run-spool.git | awk '$2 ~ /^refs\/tags\/v[0-9]+\.[0-9]+\.[0-9]+$/ && !tag { sub("refs/tags/", "", $2); tag=$2 } END { if (tag) print tag }') && test -n "$SPOOL_TAG" && printf 'Installing Spool %s\n' "$SPOOL_TAG" && mkdir run-spool && git init -q run-spool && git -C run-spool remote add origin https://github.com/just-every/run-spool.git && git -C run-spool fetch --no-tags origin "refs/tags/$SPOOL_TAG:refs/tags/$SPOOL_TAG" && git -C run-spool checkout --quiet --detach "refs/tags/$SPOOL_TAG^{commit}" && cd run-spool && curl -fsSL https://runeditrun.com/install.sh | sh -s -- setup export PATH="$HOME/.local/bin:$PATH" SPOOL_ENV=production # choose your environment name hereIf you already followed the README, work from that
run-spoolcheckout and skip the clone,cdand installer lines. Run the PATH line in each new terminal, or use~/.local/bin/rerwherever this guide saysrer; the installer does not edit your shell profile.Explicit setup prompts for missing required answers in an interactive terminal. With non-TTY input, use
rer setup --answers <private-json-file> --non-interactive; piping an email alone is not an answer file. Setup stops its temporary app when complete;rer devstarts a local server if you need one. These local answers do not replace the hosted settings below.Create the private settings file for this environment. It starts with no alert destinations (
[]). Leave generated secrets out:rer deploygenerates the session secret, one-time setup token and alert destination hash key itself.umask 077 && mkdir -p .rer/deploy && cat > .rer/deploy/"$SPOOL_ENV".env <<'EOF' OWNER_EMAIL= MAIL_PROVIDER=sendgrid MAIL_FROM= MAIL_API_KEY= ALERT_DESTINATIONS=[] EOFOpen the generated
.rer/deploy/<environment>.envin a text editor and fill in the owner email, verified SendGrid sender and SendGrid API key. To turn email off deliberately, setMAIL_PROVIDER=noneand leaveMAIL_FROMand every sending credential empty. Keep these values out of shell commands. The file can be read only by you. Git ignores it, andrer resetkeeps it. Keep it for every later deploy of this environment.Use your credential helper or shell environment to supply
CLOUDFLARE_ACCOUNT_IDandCLOUDFLARE_API_TOKENto rer. Keep allCLOUDFLARE_*andCF_*fields out of the private settings file. If local dev is running in this checkout, stop it withrer dev --stop. Then deploy and claim the hosted owner:rer deploy --env-file .rer/deploy/"$SPOOL_ENV".env --environment "$SPOOL_ENV"If you skipped local setup in a fresh checkout, add
--owner-name "Your name"to the first deploy command. Spool requires a first-owner display name. The deploy command above uses the name saved by local setup.OWNER_EMAILsupplies the sign-in address.rer deploybuilds this commit, creates the Worker and its database, applies the migrations, uploads the settings as secrets and checks/health. It also sends the one-time setup token to claimOWNER_EMAILas the hosted owner, then removesSETUP_TOKENfrom the deployed Worker secrets. The first deploy can spend several minutes applying D1 migrations. rer shows the current migration number and elapsed time. Wait for the hosted address before opening Spool.If the first deploy stops at
check Worker: invalid-deploymentsafter listing the Worker and D1 database it created, Cloudflare's deployment list may still be empty just after the Worker upload. From the same checkout, run the retry command rer printed with the same environment, private settings file and Cloudflare credentials. rer reuses the resources it already created and can finish verification and owner claim once the deployment is visible.If the first deploy stops at
upload Workerwithtimeout after N s, your uplink was slower than rer waits for: it allows 30 seconds plus the upload at 40 kB/s, about 5 minutes for Spool's 12 MB of Worker and assets. SetRER_UPLOAD_MIN_KBPSlower, for exampleRER_UPLOAD_MIN_KBPS=10, and run the retry command rer printed again; it reuses what it already created.An already claimed installation keeps its owner. Keep the original deploying checkout and the private environment file, the generated
.rer/deploy/<environment>.secrets.envsecrets and the.rer/deploy/<environment>.jsonownership record for as long as this deployment exists. Git ignores these private files. You need the ownership record to update or remove the deployment. rer reuses the generated session and alert hash secrets on updates. It keeps the one-time setup token retired and issues a fresh one if an update needs to finish owner setup. Keep the saved secrets when updating.- Add
/sign-into the hosted origin printed by deploy, open that address, enter yourOWNER_EMAILand follow the link in the email. A fresh installation then opens/setup: create your first project or choose Restore a private archive before creating one. Select an archive up to 16 MiB and choose Restore into empty installation, then create new project keys. Archives contain private source maps but exclude owner sessions and credential grants.
Alert destinations start empty. Open Alerts → Rules → Manage destinations and rules to add or edit an email destination. Test it and use its Review passing test action before enabling a rule that uses it. Follow the email destination and rule setup steps.
Email destinations use the existing mail setup and can be changed from the workbench. The same guide covers operator-managed webhooks. Keep ALERT_DESTINATION_HASH_KEY unchanged while deliveries are active. Secrets are uploaded on the first deploy, and later deploys reuse the retained generated values.
Send alerts to the owner only
Set public MAIL_RECIPIENTS=owner with the mail inputs and every message the installation sends goes to OWNER_EMAIL alone. A message to any other address (another alert destination, an invitation, team or digest mail) is refused before it reaches the provider: its destination test fails, so no rule can use it, and a queued job is blocked as preflight_failed. The owner signs in from the sign-in page: entering OWNER_EMAIL mails the owner a single-use sign-in link that expires in 15 minutes. Any other address, a member's included, gets the same answer on the page and no mail, so the page never reveals who has an account. While this is on, the owner's sign-in email stays OWNER_EMAIL: Settings refuses to change it, and a new owner address is set with OWNER_EMAIL in the next rer deploy. The default, any, keeps ordinary behaviour. With mail off (MAIL_PROVIDER=none) nothing is sent either way.
Send from outside any zone whose DNS you cannot change: the RER relay (MAIL_PROVIDER=rer with the assigned MAIL_FROM, MAIL_RELAY_URL and MAIL_API_KEY) or an already verified SendGrid sender (MAIL_PROVIDER=sendgrid, MAIL_FROM, and the SendGrid key as MAIL_API_KEY). Put the key in the private --env-file, never on the command line, and set it only through rer deploy: wrangler secret put or a settings PATCH makes rer's receipt stale and the next deploy and rer signin refuse with owned-resource-replaced.
Put every value, public selectors included (MAIL_PROVIDER=sendgrid, MAIL_RECIPIENTS=owner), in the private environment file next to MAIL_FROM and MAIL_API_KEY. --set-secret takes names only; rer reads each value from the environment or --env-file, and refuses --set-secret NAME=value. A name set for the first time is bound by the plain deploy that reads the file:
rer deploy --env-file .rer/deploy/"$SPOOL_ENV".env --environment "$SPOOL_ENV"To rotate or change a value on a deployment that already holds the name, edit the file, then name it. --set-secret alone changes the secrets of the deployed Worker in one new version and does not deploy code:
rer deploy --set-secret MAIL_API_KEY --env-file .rer/deploy/"$SPOOL_ENV".env --environment "$SPOOL_ENV"The same entries in the environment file show in rer deploy --dry-run --json as secret inputs, so the plan can be checked first. Run --set-secret and --dry-run on separate runs.
First check: on the sign-in page enter the owner address, open the sign-in message and confirm. Then open Alerts → Rules → Manage destinations and rules, add an email destination with the owner address, choose Test, and read the TEST message in the owner's inbox. Adding any other address and testing it must fail, with nothing sent.
Turn email off deliberately
Set MAIL_PROVIDER=none in the private environment file for the deployment. Leave MAIL_FROM, MAIL_API_KEY, MAIL_ACCOUNT_ID and MAIL_RELAY_URL empty; sending credentials together with none refuse before build or upload. Spool needs no sender or DKIM setting while mail is off. A missing, later or direct selection never means off. Enabled Resend, SendGrid, Cloudflare or managed RER mail still requires its sender and API key; Cloudflare also requires its account ID and RER its assigned relay URL.
Run the same rer deploy command for the selected environment. The deployment binds none to the runtime and reports the guarded sign-in command below. If mail credentials were already bound to that Worker, use rer deploy --unset-secret MAIL_API_KEY --env-file .rer/deploy/"$SPOOL_ENV".env --environment "$SPOOL_ENV" and remove any previously bound MAIL_ACCOUNT_ID and MAIL_RELAY_URL the same way. Deploy preflight reports existing bound credentials by name; selecting off alone does not delete a secret retained on the Worker.
The sign-in page directs the deploying owner to rer signin. Email sign-in links and invitations return 503 mail_unavailable, including known and unknown addresses. Alerts stay visibly blocked without a send or a provider acceptance. Capture, issues and project settings keep working after guarded owner admission; signed-out private pages remain protected. Hosted installs expose no local-development entry or invitation link. To enable mail later, select a provider and put its configured provider inputs in the private environment file and run the plain rer deploy --env-file for the same environment, retaining its ownership receipt.
— Run Edit Run fleet, 2026-11-15.
Sign in without email
When email is off or you cannot receive the sign-in email, run this from the original deploying checkout with its retained private deployment record and the same Cloudflare credentials:
rer signin --env-file .rer/deploy/"$SPOOL_ENV".env --environment "$SPOOL_ENV"rer signin prints a private owner sign-in link once, without sending email. Open it now: it works once, expires within 15 minutes and is never saved by rer. Its use is recorded in the owner's audit log. The command requires this deployment's recorded Worker, account, project, environment and ownership receipt, and checks that the live Worker still matches that receipt before issuing a grant. A different checkout, account or replaced Worker cannot mint access. The command uses the Cloudflare credentials to issue the link for the already claimed owner; it does not create a second owner. Set SPOOL_ENV to the environment you deployed before running these commands in a new terminal; the rer default is production. Supply the account credentials through the environment, as for deploy. Keep this link private.
Update to a newer Spool
- Export first. Sign in to your hosted Spool, open Settings and choose Download private archive. Keep the downloaded
spool-private-archive.jsonluntil the update is confirmed. Set
SPOOL_ENVto your existing environment name andSPOOL_TAGto the release you are upgrading to. Load your Cloudflare credentials as for the first deploy, then stop local dev, update the checkout and deploy it to the same environment:rer dev --stop git fetch --tags git checkout "$SPOOL_TAG" rer install rer deploy --env-file .rer/deploy/"$SPOOL_ENV".env --environment "$SPOOL_ENV" rer run hosted check --environment "$SPOOL_ENV"If Git refuses to check out the tag because of local changes, preserve those changes before retrying. Deploying to the same environment updates the same Worker and database: new migrations are applied and existing evidence, keys, settings and your owner stay.
rer run hosted checkuses the pinned Node supplied by rer and confirms that the hosted installation is healthy and running this checkout's commit.- Sign in as before; your projects and evidence are there. If the deploy fails, it names the failed step; fix the cause and run the same deploy again. The archive restores only into an empty installation (restore procedure).
Remove a hosted installation
Removal deletes this environment's Worker and its recorded owned resources, including the D1 database and its evidence. Export anything you need from Settings → Download private archive first. Keep the private archive outside the checkout. If you later import that browser download through the CLI, run chmod 600 /path/to/spool-private-archive.jsonl first; see restore.
Set SPOOL_ENV to the environment being removed. Run removal from the original checkout that deployed this environment, with its retained private .rer/deploy/<environment>.json ownership record/receipt and credentials for the same Cloudflare account:
rer dev --stop
rer deploy --remove --yes --env-file .rer/deploy/"$SPOOL_ENV".env --environment "$SPOOL_ENV"The general command is rer deploy --remove --yes, with --environment <name> when selecting an environment; the default is production. Use the exact environment used to deploy. rer checks resource ownership and removes the Worker and each D1, R2, KV and queue it created for that environment, with their data. It reads back removal before completing; it does not delete unrelated account resources. This Spool declaration uses one Worker and D1 database.
A fresh clone without the private deployment record deletes nothing and asks you to use the deploying checkout. Do not discard that checkout or its record before removal, and do not fabricate a replacement record. If removal reports remaining resources, retain the record, resolve the stated cause and rerun the same command. rer reset --yes only resets local state and preserves deployment receipts; it is not hosted removal.