Setting up a Nest server
For whoever runs Nest: the settings a server needs (public address, secret, Claude, Google, HubSpot, Lightspeed, Stripe for billing, email, Composio, Meta, admin emails, pricing region and website version), with README.md as the full reference.
On this page
Every setting goes in .env (or your host's settings), followed by a restart. Without any of them, Nest still runs in practice mode: simulated texts, the built-in practice assistant, a test checkout, and practice email and social accounts.
The essentials#
| Setting | What it's for |
|---|---|
NEST_PUBLIC_URL | What it's forNest's public https address. Links in texts, sign-in redirects and the webhooks LoopMessage and Stripe call all use it. |
NEST_SECRET | What it's for32 or more random characters. Encrypts saved keys and sign-ins. Keep it stable and backed up: changing it makes saved credentials unreadable. Required on Vercel. |
DATABASE_URL | What it's forThe Postgres database everything is stored in (on Vercel with Supabase, its transaction pooler on port 6543). Without it, Nest uses a built-in Postgres stored under data/pg. NEST_DB_SSL_CA (the database's CA certificate, as PEM text) makes Nest check the database's certificate. |
NEST_ADMIN_EMAILS | What it's forSign-in emails of the people who run Nest. They see Nest HQ. Create the account first, then add the email. |
ANTHROPIC_API_KEY | What it's forClaude for every business (the assistant, the helper, outreach drafts). A business's own key under Settings → Claude takes precedence. |
Connections businesses use#
| Setting | Turns on |
|---|---|
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET | Turns onGoogle Calendar and Google reviews (one web client for both; reviews also need Google's Business Profile approval). |
HUBSPOT_CLIENT_ID, HUBSPOT_CLIENT_SECRET | Turns onOptional one-click Connect HubSpot (otherwise owners paste a service key). |
LIGHTSPEED_CLIENT_ID, LIGHTSPEED_CLIENT_SECRET | Turns onLightspeed Retail. |
COMPOSIO_API_KEY (and optionally COMPOSIO_AUTH_CONFIG_GMAIL, COMPOSIO_AUTH_CONFIG_OUTLOOK) | Turns onGmail and Outlook in the inbox, and HQ outreach. Use a Composio project for this server alone, with a key allowed to use Proxy Execute. |
META_APP_ID, META_APP_SECRET, META_CONFIG_ID, META_CONFIG_ID_INSTAGRAM, META_VERIFY_TOKEN | Turns onInstagram and Messenger, through Nest's own Meta app. Until Meta approves it, only accounts with a role on the app can connect. |
Slack needs nothing on the server: each business pastes its own Slack address. Stripe needs nothing either, and each business pastes its own Stripe key, unless you switch on Connect with Stripe (below). Each card that needs server setup lists its exact steps (redirect addresses included) under Needs server setup.
Running Nest as a business#
| Setting | What it's for |
|---|---|
NEST_STRIPE_SECRET_KEY, NEST_STRIPE_WEBHOOK_SECRET | What it's forCharging businesses for Nest. Blank: nothing is ever restricted. |
NEST_STRIPE_CONNECT_WEBHOOK_SECRET, NEST_STRIPE_CONNECT_CLIENT_ID, NEST_STRIPE_APPLICATION_FEE_BPS | What it's forConnect with Stripe: with the secret key above, businesses connect their own Stripe in one click and get paid straight into it. The webhook secret (from a Connected accounts webhook to /api/stripe/connect/webhook) switches it on; the client ID adds I already use Stripe; the fee is in basis points (default 0, none). README.md has the Stripe Dashboard steps. |
NEST_PRICING_REGION | What it's forAU (default) or US: which price list to show and charge. |
RESEND_API_KEY, NEST_MAIL_FROM | What it's forNest's own email, sent through Resend: password reset links, "Confirm your email", invitations, and the owner's plan notices. Set both (NEST_MAIL_FROM like Nest <hello@yourdomain.com>). Without them nothing is emailed and the pages say so: Forgot your password? tells people to ask you for a link. |
NEST_LEGAL_NAME and the other NEST_LEGAL_… settings | What it's forDetails printed in the Terms and Privacy pages. |
The website#
| Setting | What it's for |
|---|---|
NEST_SITE_VARIANT | What it's forWhich website version the home page shows (see /sites). |
NEXT_PUBLIC_NEST_CHANNELS_LIVE | What it's foremail, or email,social: the websites only mention email or Instagram and Messenger once you set this and rebuild, after you've proven each with a real account. |
NEST_SITE_URL, NEST_SITE_ONLY, NEST_APP_URL | What it's forRunning the website apart from the app. |
Also worth knowing#
NEST_TRUSTED_PROXIES: how many proxies sit in front of Nest (default 1), so rate limits see visitors' real addresses.- Everything Nest stores is in its Postgres database. With
DATABASE_URL, back that database up (Supabase takes daily backups;npm run backuprunspg_dumpfor any other). Without it, the built-in database lives underdata/pg(orNEST_DATA_DIR/pg): run one long-running server with a disk that persists, and back the folder up with Nest stopped (npm run backup -- --offline). Backups go toNEST_BACKUP_DIR(defaultdata/backups, keeping the newest 14); copy them to another disk. Either way keepNEST_SECRETsafe separately. - On Vercel, background work (texts, replies, reminders) runs right after each request and from
/api/cron/jobs, which needsCRON_SECRET: Vercel Cron calls it every minute, and a pg_cron job in Supabase can call it every 15 seconds. GET /api/healthanswers{ ok, db }when the server is up and its database answers.- Someone locked out, and no email?
npm run reset-link -- person@example.comprints a password reset link that works once, for 60 minutes. Send it to them yourself. It's recorded, and shows in Nest HQ → Accounts under their business. See Accounts.
Related
- "Needs server setup" on a card"Needs server setup" means a feature depends on something whoever runs your Nest server sets up once (a Google sign-in, Nest's Composio key, Nest's Meta app); the card lists the exact steps to show them.
- Nest HQ, for the people who run NestNest HQ (Outreach, Accounts and Support) is only for the Nest team; it appears in the navigation for sign-in emails listed in NEST_ADMIN_EMAILS, and never shows a business's customers or conversations.
- Email, Instagram and Messenger in the same inboxConnect a Gmail or Outlook mailbox, an Instagram account or a Facebook Page, and customers' emails and direct messages land in the same conversation as their texts; you and your assistant answer on whichever channel you pick.
- The built-in practice assistant and ClaudeUntil a Claude key is added, the built-in practice assistant answers with simple set answers from your information; add a Claude key in Settings → Claude and your assistant understands whatever customers ask and writes each reply to fit.
Was this helpful?
Checked against Nest on 27 November 2026.