Reference
Production deploy checklist
Every setting a production pinprompt reads, and what happens without it. The boot check (checkConfigAtBoot in packages/core/src/config.ts, run from apps/web/src/instrumentation.ts) stops the server for the settings marked fatal and logs a [pinprompt] CONFIG: line for every other one listed here (productionConfigWarnings). A correct production config boots with no CONFIG lines.
Production means NODE_ENV=production (next start). Outside production, every setting has a safe local default.
Required
| Setting | Example | Without it |
|---|---|---|
PINPROMPT_BASE_URL | https://pinprompt.agency.dev | Fatal. The server won't start: every request gets a 500. It's the only origin used for magic links, invite links, OAuth metadata and same-origin checks, and it's never taken from Host. Use https://. Over http:// (anything but localhost) the boot check warns: the session cookie is Secure in production, so browsers drop it and sign-in fails anywhere but localhost. |
PINPROMPT_SECRET_KEY | openssl rand -base64 32 (or 64 hex characters) | Warning. Connecting GitHub, Sanity, Slack or webhooks fails, because their tokens can't be encrypted. A value that isn't 32 bytes gets its own warning. Keep the key, or rotate it with PINPROMPT_SECRET_KEY_PREVIOUS (below): changing it alone makes stored integration secrets unreadable. |
PINPROMPT_MAIL=smtp + PINPROMPT_SMTP_URL + PINPROMPT_MAIL_FROM | smtps://user:pass@smtp.example.com:465, pinprompt <pinprompt@agency.dev> | Warning. With PINPROMPT_MAIL unset or dev, emails stay in the database and are never delivered, so sign-in links and notifications reach nobody, and people can only join through invite links copied by hand. log writes emails, sign-in links included, to the server log. An unknown mode, smtp without a URL or sender, or a non-smtp(s):// URL makes every send fail. |
PINPROMPT_MAIL=resend + PINPROMPT_RESEND_API_KEY + PINPROMPT_MAIL_FROM | re_… (a sending-only key), pinprompt <pinprompt@notify.agency.com> | Same checks as smtp. Sends over Resend's HTTPS API: use it where the host blocks outbound SMTP ports (Railway below the Pro plan drops 465 and 587, so smtp sends hang and nothing arrives). |
PINPROMPT_TRUST_PROXY | 1 (one load balancer), or N | Warning. X-Forwarded-For is ignored, so every per-address rate limit (sign-in, OAuth register/token/authorize, dev mail, hooks) shares one bucket, and one client can lock everyone out of MCP sign-ins for an hour. Set it to the number of proxies that append to X-Forwarded-For. Don't set it if nothing in front rewrites that header, or clients can spoof their address. |
PINPROMPT_OWNER_EMAIL | owner@example.com | Warning. On an empty database, only this email can sign in and become the workspace owner. Without it, the first owner can only be created with the CLI seed. Once the workspace exists you can ignore this warning. |
PINPROMPT_EXTENSION_ID | abcdefghijklmnopabcdefghijklmnop (comma-separate several builds) | Warning. The API answers CORS for any chrome-extension:// id. Calls still need a bearer token and never carry cookies, but pin your build's id. |
PINPROMPT_EXTENSION_STORE_URL | https://chromewebstore.google.com/detail/pinprompt/<id> | Optional. Once the extension is listed, /extension offers Add to Chrome instead of the unpacked download. |
Optional
| Setting | Default | Notes |
|---|---|---|
ANTHROPIC_API_KEY | unset | Warning when unset. Specs come from the deterministic compiler: no Claude drafts, follow-up questions or refinements. |
PINPROMPT_MODEL | claude-haiku-5-5 | The compiler's model when ANTHROPIC_API_KEY is set. Set but empty: warning (unset it instead). |
PINPROMPT_SEND_SCREENSHOTS | unset | 1 sends the capture's screenshot and the reporter's reference images to Claude with the draft request. /privacy shows which. |
PINPROMPT_BACKUP_DIR, PINPROMPT_BACKUP_KEEP_DAYS, PINPROMPT_BACKUP | <data dir>/backups, 14, on | Where the nightly database copy goes, how many days are kept, 0 turns it off. |
PINPROMPT_PLANS | unset | on applies plan limits (team seats, active projects, AI drafting, evidence retention) to workspaces on a sold plan. Unset, nothing is limited. Every workspace from before plans is Internal and never limited. Set a plan with pnpm --filter @pinprompt/core plan:set. Plans and usage |
STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET | unset | Paying in the app with Stripe: the secret key (sk_test_… or sk_live_…) and the signing secret (whsec_…) of the webhook endpoint at /api/hooks/stripe. Both needed, and PINPROMPT_PLANS=on; otherwise Plan and usage says paying isn't set up. Run pnpm --filter @pinprompt/core billing:setup once per Stripe account. Setting up billing |
PINPROMPT_STRIPE_API | https://api.stripe.com | Warning when set. Only for tests and local stand-ins; leave unset. |
PINPROMPT_SAMPLE_PROJECT | on | off stops new sign-ups getting the sample project (four made-up reports to try an agent on). Existing workspaces are never changed. Try it first |
PINPROMPT_TRIAL_EXTENSION | on | off stops giving 7 more days, once, to a trial that ends before an agent picked up one of the workspace's own pins. Only with PINPROMPT_PLANS=on. The trial |
PINPROMPT_SIGNUP | closed | How an agency that isn't on the server gets in: closed (invite only), request (they ask on /request-access and an operator approves) or open (any verified email creates its own workspace). Open sends a sign-in link to any address that asks (5 an email, then rate-limited), so turn it on with email delivery working and plans on. Signing up |
PINPROMPT_OPERATOR_EMAILS | unset | Comma-separated emails of the people who run the server, with PINPROMPT_OWNER_EMAIL: they see the operator console, decide access requests and triage Feedback on pinprompt. Only accounts in the server's first workspace count, so signing up with a listed address gives no operator rights; until a listed person is in it, that workspace's owners are the operators. Set it on any server that hosts other agencies: without it, every owner of the first workspace is an operator and sees every workspace in the operator console. |
PINPROMPT_OPERATOR_DIGEST | on | off stops the operators' Monday email with last week's growth numbers. |
PINPROMPT_SENTRY_DSN | unset | A Sentry project's DSN: unexpected server and app errors are sent there, scrubbed (no bodies, headers, cookies or people). Unset: nothing is sent. A value that isn't a DSN: warning. Error reports |
PINPROMPT_SENTRY_ENVIRONMENT | PINPROMPT_ENVIRONMENT | The environment name on Sentry reports, e.g. staging. |
PINPROMPT_ENVIRONMENT | production | Which copy this is. Any other name (staging, preview) shows a banner on every page, keeps the server out of search engines, puts [Staging] in email subjects and refuses to start with a live Stripe key. Staging and the release gate |
PINPROMPT_HEALTH_TOKEN | unset | A secret (16+ characters). Callers that send it as Authorization: Bearer … to /api/health also get the version, commit and environment that are serving; the release gate needs it on staging. Unset: nobody gets them. |
PINPROMPT_COMMIT | Railway's RAILWAY_GIT_COMMIT_SHA | The commit the server was built from, on hosts that don't say. Only shown with the health token. |
PINPROMPT_CONTACT_EMAIL | unset | Shown on /request-access when the server is invite only, and in the note to a declined request. Also where replies to pinprompt's emails go when PINPROMPT_MAIL_REPLY_TO is unset. |
PINPROMPT_MAIL_REPLY_TO | unset | One address (support@agency.com or Agency Support <support@agency.com>) that replies to pinprompt's emails go to. Unset, PINPROMPT_CONTACT_EMAIL; with neither, replies go to PINPROMPT_MAIL_FROM, which bounces on a sending-only domain. Anything that isn't one address is ignored. |
PINPROMPT_EVIDENCE_LINK_DAYS | 30 | How long a screenshot link in a GitHub issue works. |
PINPROMPT_HOSTING | Railway's region when on Railway | Who hosts the server and where, shown on /privacy. |
PINPROMPT_INDEXING | on | off keeps the whole server out of search engines: robots.txt disallows everything, the sitemap is empty and every page says noindex. With it on, only the public pages (landing page, /docs, /for-clients, /privacy, /llms.txt) are indexable; the app, sign-in and API never are. |
PINPROMPT_CANONICAL_URL | this server | Where search engines should treat the public pages as living, when another copy of them is the main one (for example your own server pointing at the main pinprompt site). Sets canonical links, share pictures and structured data; links people click still go to this server. |
PINPROMPT_OUTBOUND_ALLOW_PRIVATE | unset | Warning when 1. Integrations may then call private and internal addresses (they're refused in production otherwise). Only for a self-hosted pinprompt that must reach an internal GitHub Enterprise or webhook receiver. |
PINPROMPT_JOBS | on | Warning when 0. Background jobs don't run in this process: email delivery, notifications, integrations, the Slack digest, pruning, resuming BugHerd imports after a restart, and data housekeeping (deleting projects whose 7-day grace is over, the evidence retention). Use it only if another process runs the jobs: without them, a project "deleted" in the app is never purged. |
PINPROMPT_DATA_DIR | <repo>/.data | Where the SQLite file and evidence blobs live. Put it on a persistent volume and back it up. Migrations run when the server opens the database. |
PINPROMPT_DB | $PINPROMPT_DATA_DIR/pinprompt.db | The SQLite file, if it lives somewhere else. |
PINPROMPT_MIGRATIONS_DIR | packages/core/drizzle | Only if the migrations ship somewhere else in your image. |
PINPROMPT_GOOGLE_CLIENT_ID + PINPROMPT_GOOGLE_CLIENT_SECRET | unset | "Continue with Google" on the sign-in page. Create an OAuth client of type Web application in Google Cloud (APIs & Services, Credentials) with the authorized redirect URI <PINPROMPT_BASE_URL>/api/v1/auth/google/callback, and an OAuth consent screen with the openid, email and profile scopes. Google only proves the email: the account must belong to a member or an invitee. Warning when only one of the two is set. |
PINPROMPT_GITHUB_CLIENT_ID + PINPROMPT_GITHUB_CLIENT_SECRET | unset | "Continue with GitHub" on the sign-in page. Create a GitHub OAuth App (Settings, Developer settings, OAuth Apps; under your organization or a personal account) with the homepage <PINPROMPT_BASE_URL> and the authorization callback URL <PINPROMPT_BASE_URL>/api/v1/auth/github/callback. This is separate from the GitHub App the issue-sync integration creates (that one is per workspace and is set up from inside the app, after sign-in). GitHub only proves the account's verified emails: one of them must belong to a member or an invitee. Warning when only one of the two is set. |
PINPROMPT_SECRET_KEY_PREVIOUS | unset | Only while rotating PINPROMPT_SECRET_KEY: the old key (comma-separate several). Reads use either key; on start every stored secret is sealed again with the new key and a [secrets] log line says when to remove this. Warning while set. Steps: /docs/running-pinprompt#rotate-the-secret-key. |
PINPROMPT_TRELLO_KEY + PINPROMPT_TRELLO_SECRET | unset | The Trello integration. Create a Power-Up in Trello's Power-Up admin, generate its API key (the secret is next to it) and add <PINPROMPT_BASE_URL> as an allowed origin. Unset, the Trello card says it isn't set up on this server. Trello |
PINPROMPT_LEGAL_NAME | unset | The company that sells pinprompt on this server. Set it when the server hosts other agencies: it turns on /terms, /dpa and /subprocessors, the "By continuing you agree…" line on sign-in and sign-up, the line above Stripe Checkout's Pay button, and the GDPR sections of /privacy and the company line in every email's footer, and records the terms version on each new workspace. Unset (self-hosting for your own agency), none of that appears. Production warns when sign-up is open and Stripe is set without it. |
PINPROMPT_LEGAL_ADDRESS, PINPROMPT_LEGAL_REGISTRATION, PINPROMPT_LEGAL_VAT | unset | The company's registered address (one line), trade register number and VAT number, shown wherever the legal pages say who "we" are. |
PINPROMPT_LEGAL_COUNTRY, PINPROMPT_LEGAL_COURTS | unset | The law that governs the Terms (e.g. Romania) and the courts that hear disputes (e.g. Timișoara, Romania). |
PINPROMPT_LEGAL_AUTHORITY | unset | The data protection authority people can complain to, named on /privacy, e.g. the Romanian ANSPDCP (dataprotection.ro). |
PINPROMPT_PRIVACY_CONTACT | unset | An email or URL shown as the contact on /privacy (the policy the extension's store listings link to). Unset, the page says to ask the workspace owner. |
Must not be set in production
| Setting | What the boot check does |
|---|---|
PINPROMPT_DEV_LOGIN=1 | Logs a CONFIG line. It's ignored in production: no passwordless sign-in. Remove it. |
PINPROMPT_DEV_INBOX=1 | Warning. It's ignored: the dev inbox is always off in production. |
Outside production, the dev inbox (/dev/mail) and the sign-in links shown on the sign-in page are on only when PINPROMPT_BASE_URL is a loopback origin (the default, http://localhost:3000), or when PINPROMPT_DEV_INBOX=1 is set. A shared staging pinprompt left on NODE_ENV=development under a real hostname gets neither. PINPROMPT_DEV_INBOX=0 turns them off on localhost too.
Before going live
- 1.Set the required settings above. Boot once and check the log has no
[pinprompt] CONFIG:lines. - 2.Put
PINPROMPT_DATA_DIRon a persistent volume, and turn on the host's volume backups. Thedb-backupjob also copies the database every night toPINPROMPT_BACKUP_DIR(default<data dir>/backups, 14 days,PINPROMPT_BACKUP_KEEP_DAYS); restore steps are in /docs/running-pinprompt. SetPINPROMPT_HOSTING(for example "Hetzner, Germany") when not on Railway, so /privacy names the host. - 3.Serve over https from the origin in
PINPROMPT_BASE_URL, ideally on its own registrable domain. - 4.Register the GitHub webhook and Slack incoming webhook from Settings → Integrations once
PINPROMPT_SECRET_KEYis set. - 5.Request bodies are capped in
apps/web/src/server/http.ts(BODY_LIMITS): 1 MB by default, 48 MB for captures, 16 MB for drafts, 4 MB for MCP, 64 KB for OAuth. A proxy in front needs a body limit of at least 48 MB onPOST /api/v1/items.
Data lifecycle
What can be deleted, by whom, and what the server must do for it. /privacy describes the same to users and shows this server's evidence retention.
| What | Who | What happens |
|---|---|---|
| An item | Project owners, developers and PMs in the web app (item page, inbox selection); the reporter while nobody has picked it up or replied, also from the pin on the site. A personal API token or review token deletes only the caller's own | Deleted at once with its spec versions, thread, labels, evidence files, search rows, notifications and pending integration deliveries. An item.deleted event (key and links, no content) stays; webhooks receive it, GitHub closes an open mirrored issue as not planned. No undo. |
| A project | Owners, archived projects only, by typing its name | Restorable for 7 days (projects.delete_after), then the data-lifecycle job (every 10 minutes) deletes every row and the <projectId>/ folder of evidence files. |
| Evidence of closed items | Workspace owners set Workspace settings → Evidence retention: off (default), 30, 90, 180 or 365 days | The same job removes screenshots, recordings, transcripts, network and console logs of items closed longer ago, 200 items per run; the item's thread says so. |
| A person | Workspace owners, Workspace settings → People | Memberships, sessions, tokens and MCP grants end; their items stay as a former member's, or anonymised. Only a new invite lets them sign in again. |
| A project's data, as a copy | Owners, Settings → Import and export → Export (GET /api/v1/projects/:id/export) | A zip of JSON and evidence files, streamed. |
Before going live:
- 1.Keep
PINPROMPT_JOBSon (or run the jobs elsewhere): deletion and retention depend on thedata-lifecyclejob. - 2.Backups: a deleted item or purged project is still in backups taken before. Keep backups no longer than your retention promise (for example, 30 days) and say so in your privacy contact's answers.
- 3.A proxy in front must not buffer or time out long downloads on
GET /api/v1/projects/*/export(streamed, can take minutes for a large project): turn response buffering off for that path (nginx:proxy_buffering off) and allow a read timeout of several minutes. - 4.Evidence files live under
PINPROMPT_DATA_DIR/blobs/<projectId>/. Don't put anything else there: purging a project deletes its whole folder.