Start here
Install and run
Oncall runs on macOS, Linux or Windows with WSL2. Git is required; rer brings Node and pnpm. rer provides the checkout's pinned Node and pnpm tooling.
Start with the dated US installation and dependency checklist. It names the account, provider, native-device, standby and live-proof prerequisites and keeps unverified steps explicitly not done. Settings → Readiness shows the same read-only checklist beside this installation's release evidence.
Run it on your computer
One line clones the latest published Oncall release into run-oncall, installs the rer command and starts Oncall.
ONCALL_TAG=$(curl -fsS -o /dev/null -w '%{redirect_url}\n' https://github.com/just-every/run-oncall/releases/latest | sed -nE 's|^.*/releases/tag/(v[0-9]+\.[0-9]+\.[0-9]+)$|\1|p') && test -n "$ONCALL_TAG" && mkdir run-oncall && cd run-oncall && git init -q && git remote add origin https://github.com/just-every/run-oncall && git fetch --quiet --depth 1 origin tag "$ONCALL_TAG" && git checkout --quiet --detach "refs/tags/$ONCALL_TAG" && curl -fsSL https://runeditrun.com/install.sh | sh -s -- dev --host localhostAlready have Node 22 or later?
ONCALL_TAG=$(curl -fsS -o /dev/null -w '%{redirect_url}\n' https://github.com/just-every/run-oncall/releases/latest | sed -nE 's|^.*/releases/tag/(v[0-9]+\.[0-9]+\.[0-9]+)$|\1|p') && test -n "$ONCALL_TAG" && mkdir run-oncall && cd run-oncall && git init -q && git remote add origin https://github.com/just-every/run-oncall && git fetch --quiet --depth 1 origin tag "$ONCALL_TAG" && git checkout --quiet --detach "refs/tags/$ONCALL_TAG" && npx -y @runeditrun/rer dev --host localhostThe following examples use "$HOME/.local/bin/rer". If you started with Node, use npx -y @runeditrun/rer in its place.
If you used the installer, restart with cd run-oncall && "$HOME/.local/bin/rer" dev --host localhost. If you used the Node alternative, restart with cd run-oncall && npx -y @runeditrun/rer dev --host localhost. rer dev installs the locked dependencies, prepares the local database and creates a local development owner (owner@<checkout-name>.test). It starts Oncall and prints a private RER_OPEN link. Open that link on this computer and you are signed in as the owner. Use the printed address: the default port starts at 8787 and another free port is selected if needed; "$HOME/.local/bin/rer" dev --port N requests a specific free port.
The first time, Oncall opens Finish setup. Name and Email are read-only; a default local owner is named Owner. Review the displayed email, tick I confirm this owner account is ready to use and press Finish setup. This screen confirms the owner; it does not edit their name or email. After that, Oncall opens straight into the app. To choose a real owner mailbox before first launch, use the explicit setup steps below.
After the first start, check the install with one schedule that has the owner on it: add a service under Settings → Services, choose On call → New rota, keep the owner as the primary person, set Starts to a time that has already passed and choose Create rota. On call then shows the owner as on call now. Known accessibility gap: below 900 px wide, including 390 px, the side rail is hidden and the installation name shows in the top bar, which is a plain div with no landmark role, so a screen reader cannot jump to it by landmark.
Treat the RER_OPEN link like a password: it signs whoever opens it in as the owner. Open it only on this computer.
rer dev can detach and return after printing the ready links. The app keeps running in the background; "$HOME/.local/bin/rer" dev --stop stops it. If it is running in the foreground, Ctrl-C stops it too.
Before the first rer verify, stop dev and preview, then install its browser using the dependencies rer dev (or rer install) already installed:
"$HOME/.local/bin/rer" run --script node_modules/@playwright/test/cli.js install chromium
"$HOME/.local/bin/rer" verifyThis command uses the installer’s private Node runtime; no global Node or pnpm is needed. On Linux, add --with-deps to the browser install command if system libraries are missing. rer doctor reports a missing verification browser. rer check is silent on success (exit 0); "$HOME/.local/bin/rer" check --json prints the result.
Sign in with a local passkey
On releases with local passkeys, open the private RER_OPEN link and finish owner setup. In Oncall, open your account menu (inside Menu on a phone), then choose Sign-in settings → Enroll passkey and follow your browser’s prompt. On a later visit to your http://localhost address, choose Sign in → Sign in with a passkey.
If your running address uses 127.0.0.1, run "$HOME/.local/bin/rer" dev --stop and then "$HOME/.local/bin/rer" dev --host localhost in the same checkout. Open the new RER_OPEN link. The checkout keeps your schedules and incidents. If your passkey is unavailable, open the private link printed by "$HOME/.local/bin/rer" dev --host localhost to get back in.
Sign-in emails on your computer
"$HOME/.local/bin/rer" dev --as signed-out selects the signed-out persona. The compatibility flag "$HOME/.local/bin/rer" dev --login still opens automatic owner entry. Ordinary /signin email sign-in sends only through a configured remote mail provider with real credentials; no sender is configured by default. The app does not capture mail or print sign-in tokens. Use a real owner mailbox for that flow. After delivery is configured, request an email link on the sign-in page, open the email on the same device and press Confirm. The default rer dev owner entry above needs no email delivery.
Stop and start again
Stop the background server with the command below. For a foreground run, Ctrl-C also works:
"$HOME/.local/bin/rer" dev --stopYour schedules, incidents and team stay in the folder until you export them or reset the installation.
From the same folder, restart with the command above for the installer or Node. If the saved port is in use, run the "$HOME/.local/bin/rer" setup --port N command printed in the error, then restart. Your data stays in the same folder.
Explicit and unattended setup
To choose a real owner mailbox before the first launch, after installing rer above, clone the tagged release from the command above, enter run-oncall, then run "$HOME/.local/bin/rer" setup (it asks for your owner email in an interactive terminal). Or, from the checkout, one verb at a time:
"$HOME/.local/bin/rer" install
"$HOME/.local/bin/rer" setup --owner-email you@example.com
"$HOME/.local/bin/rer" dev --host localhostrer install fetches the locked dependencies. rer setup builds the app, applies local migrations and prepares the owner, keeping private settings inside the checkout and out of Git. Setup prints a loopback address such as RER_SETUP_READY http://127.0.0.1:8790 and stops its temporary app. To open Oncall locally, run "$HOME/.local/bin/rer" dev --host localhost and open the private RER_OPEN link that rer dev prints. Repeating setup preserves the existing owner and data.
In an interactive terminal, rer setup can ask for your owner email instead of receiving --owner-email. Piping an email to stdin does not answer setup. For unattended use, create an owner-only JSON file, for example .seed/local-answers.json containing {"OWNER_EMAIL":"you@example.com"}, then run:
chmod 600 .seed/local-answers.json
"$HOME/.local/bin/rer" install
"$HOME/.local/bin/rer" setup --answers .seed/local-answers.json --non-interactive
"$HOME/.local/bin/rer" dev --host localhostThe answers object uses the exact field names in rer-setup.json. Other fields have defaults or managed generated values; missing required answers cause a refusal naming those fields. Keep the file out of Git and never put secret answers in command arguments.
Every command, flag and what it changes is in the command reference. rer describe prints the same from the folder you are in.
Update, host and remove
Later local updates
From your existing checkout, stop the local servers, back up, and switch to the latest published release. Export refuses while the app runs, so stop it first.
"$HOME/.local/bin/rer" dev --stop
"$HOME/.local/bin/rer" preview --stop
"$HOME/.local/bin/rer" export --output exports/before-update.rer
ONCALL_TAG=$(curl -fsS -o /dev/null -w '%{redirect_url}\n' https://github.com/just-every/run-oncall/releases/latest | sed -nE 's|^.*/releases/tag/(v[0-9]+\.[0-9]+\.[0-9]+)$|\1|p') && test -n "$ONCALL_TAG" &&
git fetch --depth 1 origin tag "$ONCALL_TAG" &&
git checkout --detach "refs/tags/$ONCALL_TAG" &&
"$HOME/.local/bin/rer" dev --host localhostThis restarts the updated local app, applies migrations and keeps your owner, schedules and incidents. rer uses the new checkout's pinned toolchain. Do not reset to upgrade.
From 0.1.0
Stop the old servers before switching releases. 0.1.0 uses the checkout's runner, which the update removes.
node scripts/rer.mjs dev --stop
node scripts/rer.mjs preview --stopThen switch this checkout to the latest published release.
With Node 22 or later, you can use npx -y @runeditrun/rer in place of each rer command.
The update applies Oncall's additive migrations. Your data, owner and password accounts are kept; people who sign in with a workspace password sign in once more after updating to 0.3.0. Do not reset to upgrade.
Host for your team
Or let Run Edit Run host it. Run Edit Run can set Oncall up on your own Cloudflare account and keep it updated; sign-ups are by request for now.
Release 1 supports hosted incident coordination alongside your team's existing pager. Paging stays OFF; coordination does not need an independent standby. Release 2 paging and independent standby are not built. Keep the pager's routes and notification settings in place.
Hosting is in v0.3.0 and later. Start with email off using your Cloudflare account. First prepare the owner in a separate checkout. Install rer first if you have not used the installer above. It provides its own Node and pnpm.
curl -fsSL https://runeditrun.com/install.sh | sh
ONCALL_TAG=$(curl -fsS -o /dev/null -w '%{redirect_url}\n' https://github.com/just-every/run-oncall/releases/latest | sed -nE 's|^.*/releases/tag/(v[0-9]+\.[0-9]+\.[0-9]+)$|\1|p') && test -n "$ONCALL_TAG" &&
mkdir oncall-hosted && cd oncall-hosted && git init -q &&
git remote add origin https://github.com/just-every/run-oncall &&
git fetch --quiet --depth 1 origin tag "$ONCALL_TAG" &&
git checkout --quiet --detach "refs/tags/$ONCALL_TAG" &&
"$HOME/.local/bin/rer" install &&
MAIL_PROVIDER=development "$HOME/.local/bin/rer" setup --owner-email you@example.comAlready running Oncall locally from run-oncall? Keep that folder and its data, and use the fresh oncall-hosted checkout above for hosting. Hosting never uploads local records. See Transfer local coordination records to hosting before planning a move; Export and restore explains local backup and recovery.
Replace you@example.com with your owner email. MAIL_PROVIDER=development prepares the owner locally without sending email. Setup prints RER_SETUP_READY followed by a loopback address, stops its temporary app and tells you to run rer dev for local access. For hosting, continue with the Cloudflare steps below. Set MAIL_PROVIDER=none in the private deploy file and run rer signin after deployment to get your hosted owner link.
The examples use the named environment production. Choose the environment once and use the same --environment NAME for deployment, sign-in, updates and removal. Each name has its own hosted resources and deployment record; omitting the flag selects production. Names start with a lowercase letter and contain lowercase letters, digits and single hyphens, up to 32 characters.
1. Get your Cloudflare account ID and token
Use the Cloudflare account where you want the app and its database to live. You need an account member who can grant the permissions below. No domain purchase or DNS transfer is needed for the default workers.dev app address.
CLOUDFLARE_ACCOUNT_IDidentifies the destination account. In the Cloudflare dashboard, select that account, open Workers & Pages, find Account Details, and copy Account ID. This is the 32-character account ID, not a zone ID. Cloudflare also offers Search → Copy account ID. See Cloudflare's account-ID instructions.CLOUDFLARE_API_TOKENauthorizes deployment and removal. Open your profile menu → My Profile → API Tokens → Create Token → Create Custom Token → Get started. Name it for this installation. Add the two permission rows below and set Account Resources → Include → Specific account → your destination account. Choose Continue to summary → Create Token, then copy the token secret immediately into your password manager or the private file in step 2; it is shown once. See Cloudflare's token creation guide.
| Permission row | Why this deployment needs it |
|---|---|
| Account → Workers Scripts → Edit | Upload the app and assets, read deployment identity, manage Worker secrets and its workers.dev route, and delete/read back the Worker. |
| Account → D1 → Edit | Create, read and migrate the hosted database, issue owner recovery grants, and delete/read back the database. |
These are the minimum permission groups for this checkout's deploy.json: one Worker with assets and one D1 database. Edit includes the reads needed for ownership checks and removal; API reference pages also call it Write. This scope list covers the deploy implementation's Worker and D1 requests through deployment, sign-in and removal. There are no declared queues, R2 buckets, KV namespaces or custom domains in this deployment. The broader Edit Cloudflare Workers template includes unrelated permissions and does not supply D1 automatically. See the official Worker upload API, D1 creation API and token permission reference.
In Workers & Pages, also confirm that the account has a Your subdomain value ending in workers.dev; complete Cloudflare's first-use Workers onboarding if prompted. rer reads this existing account subdomain and enables the app's route; it does not create the account subdomain. Existing accounts can use Change next to Your subdomain. See Cloudflare's workers.dev configuration.
2. Save credentials in a private file
The following macOS/Linux/WSL shell commands create a file outside the checkout, readable and writable only by your user (0600). The creation step refuses to overwrite an existing file. Run it once, then use your editor to replace the two Cloudflare placeholders with the copied values; do not paste real secrets into shell commands or shared logs.
mkdir -p "$HOME/.config/oncall"
chmod 700 "$HOME/.config/oncall"
(
umask 077
set -C
cat > "$HOME/.config/oncall/production.env" <<'ENV'
CLOUDFLARE_ACCOUNT_ID=replace-with-account-id
CLOUDFLARE_API_TOKEN=replace-with-token-secret
MAIL_PROVIDER=none
ENV
)
chmod 600 "$HOME/.config/oncall/production.env"
vi "$HOME/.config/oncall/production.env"In vi, press i to edit, replace the two Cloudflare placeholders with the values you copied, then press Escape, type :wq and press Enter to save and close. Use your preferred local editor in place of vi if you already have one. Save one KEY=VALUE per line, without spaces around =, export, shell substitutions or inline comments. Blank lines and lines beginning with # are allowed. One pair of double quotes around a value is accepted; single quotes are literal. Values are read as text, not executed by a shell. The file must be owned by your user, be a regular file with one hard link, and have no group/other permissions; symlinks are refused. Keep it outside Git and keep private backups of both credentials and this checkout's deployment records.
--env-file accepts an absolute path or a path relative to the checkout. If a credential helper already set Cloudflare variables in your shell, run unset CLOUDFLARE_ACCOUNT_ID CLOUDFLARE_API_TOKEN before deploying with the private file. Use a separate file for hosted credentials. Rer uses the owner from setup, generates hosted secrets where needed and retires the one-time setup token.
Mail is optional. Choose one option in your deploy file:
- With email off, keep
MAIL_PROVIDER=noneand leave the sender and all mail credentials unset. After deploying, use owner access without email. - With email links, set
MAIL_PROVIDER=sendgridand addSENDGRID_API_KEYand a verifiedMAIL_FROM. Use a real owner mailbox you can open. See SendGrid setup.
3. Deploy and test sign-in
If a server is running in the hosting checkout, stop it with "$HOME/.local/bin/rer" dev --stop for development or "$HOME/.local/bin/rer" preview --stop for preview. Ctrl-C also stops a foreground server. A deploy dry run also refuses while a local server is running.
From the hosting checkout, run:
"$HOME/.local/bin/rer" deploy --environment production --env-file "$HOME/.config/oncall/production.env" --dry-run
"$HOME/.local/bin/rer" deploy --environment production --env-file "$HOME/.config/oncall/production.env"Check each result:
- Dry run: expect exit 0 once the local validation and build pass. It makes no Cloudflare requests and leaves the hosted deployment unchanged. Target credentials, permissions, secrets and mail delivery are unchecked.
- Real deployment: exits successfully and returns an HTTPS
workers.devapp address. It creates the Worker and D1 database, applies migrations, verifies deployment identity at/health, claims the owner automatically and retires its setup token. There is no setup token to copy or delete. Opening/healthat that address should return HTTP 200. - Owner access: with email off, run
rer signin, open the private URL and press Confirm. With email links enabled, open the app address, enter the owner email, press Email a sign-in link, then open the email on the same device and press Confirm. Complete Finish setup at/setupif shown.
If Cloudflare refuses a request, read the named permission/provider error, confirm the account ID, token account restriction, expiration and the two permission rows, then repeat the same command. For workers-subdomain-missing, finish the account's Workers onboarding first. If mail is not received, check the actual mailbox's spam folder, sender verification and the key's Mail Send permission; also check that SendGrid has enabled your account to send. The app does not capture mail or print email sign-in tokens.
Local RER_OPEN owner entry does not work on the hosted app. Team members created by an admin use their workspace name and password at /signin/local; Oncall sends no invitations. Anonymous first-admin bootstrap is restricted to the local loopback app. See Team and sign-in.
Hosted D1 and your local database are separate stores. Deploy does not upload local schedules or incidents. The maintained rer export and rer import commands operate on local data; they do not transfer records to or from the hosted installation.
Owner access without email
With email off, or to recover access when email is unavailable, run this from the checkout that deployed that environment, using the same Cloudflare credentials:
"$HOME/.local/bin/rer" signin --environment production --env-file "$HOME/.config/oncall/production.env"rer signin writes a single-use grant for the recorded owner. It prints a one-time sign-in notice, the private URL on its own line with no RER_OPEN prefix, then signin: complete (exit 0). Open the URL privately within 15 minutes and press Confirm. Its use is audited. Keep the URL out of logs, chat and files.
For Business agent setup, pass only the printed URL as sign_in in session.report. If the command reports no completed deployment, check the environment name and use the original deploying checkout.
Get a SendGrid key and verified sender for email links
For email-link sign-in, use a SendGrid account enabled for sending. Complete its account verification and two-factor authentication prompts. See SendGrid account verification.
MAIL_FROM is the sender address recipients see, for example oncall@example.com. It is separate from the owner's recipient mailbox and must be verified in the same SendGrid account as the key:
- For a team installation, open the SendGrid console → Settings → Sender Authentication → Domain Authentication → Get Started. Select your DNS host, choose whether to brand links, enter the domain you send from, then continue to the DNS records. Add the exact records SendGrid gives you at your DNS provider. Return to SendGrid and click Verify; wait until verification succeeds. Set
MAIL_FROMto an address on that exact authenticated domain. See SendGrid's domain authentication guide. - For an initial test using a mailbox you control, use Settings → Sender Authentication → Single Sender Verification → Verify a Single Sender. Fill in the sender details, including From Email Address, click Create, then open the verification email in that mailbox and follow its link. Set
MAIL_FROMto that exact address. Complete domain authentication before production sending, as SendGrid recommends. See single sender verification and sender identity requirements.
SENDGRID_API_KEY authorizes sign-in mail. In SendGrid, open Settings → API Keys → Create API Key. Name it for Oncall, select Custom Access (also called Restricted Access), and enable Mail Send → Mail Send → Full Access only (mail.send). Leave Scheduled Sends and other groups at No Access. Click Create & View, then copy the complete API key into your password manager or the private file below; it is displayed once. This app submits to /v3/mail/send and needs no template, contacts or API-key-management permissions. See SendGrid API key creation and its Mail Send permission guidance.
Update a hosted installation
Keep this checkout's .rer/deploy/ records. Switch to the latest published release and deploy to the same environment with the same credentials.
ONCALL_TAG=$(curl -fsS -o /dev/null -w '%{redirect_url}\n' https://github.com/just-every/run-oncall/releases/latest | sed -nE 's|^.*/releases/tag/(v[0-9]+\.[0-9]+\.[0-9]+)$|\1|p') && test -n "$ONCALL_TAG" &&
git fetch --depth 1 origin tag "$ONCALL_TAG" &&
git checkout --detach "refs/tags/$ONCALL_TAG" &&
"$HOME/.local/bin/rer" deploy --environment production --env-file "$HOME/.config/oncall/production.env"The command updates the hosted app and applies migrations, keeping its owner, schedules and incidents. Do not reset to upgrade. Existing hosted secrets are preserved by normal deployment, so editing the private file alone does not rotate them. To replace the mail key or sender, update the private file and explicitly change the affected Worker secret:
"$HOME/.local/bin/rer" deploy --environment production --env-file "$HOME/.config/oncall/production.env" --set-secret MAIL_API_KEY
"$HOME/.local/bin/rer" deploy --environment production --env-file "$HOME/.config/oncall/production.env" --set-secret MAIL_FROMMAIL_API_KEY is the Worker binding populated from SENDGRID_API_KEY; MAIL_FROM comes from the same-named file entry. Run only the change you need, repeat the real email sign-in test, then revoke an old SendGrid key after its replacement works.
Remove a hosted installation
Removal deletes the hosted database and its records. Keep the deployment record and use the same account, credentials and named environment:
"$HOME/.local/bin/rer" deploy --environment production --env-file "$HOME/.config/oncall/production.env" --remove --yesThis deletes only what that environment's deployment record says rer created, then reads back that every recorded resource is absent. Successful removal requires that empty readback; a successful DELETE alone is insufficient. The command exits successfully only after that verification. If removal refuses or readback fails, retain the records, address the reported cause and rerun the same removal command. Your local folder and local data stay. Provider API tokens and SendGrid sender identities are not deleted by this command; revoke installation-specific credentials in their provider consoles when no longer needed.