Skip to content
Nest Help

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.

For the Nest team
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#

SettingWhat it's for
NEST_PUBLIC_URLWhat it's forNest's public https address. Links in texts, sign-in redirects and the webhooks LoopMessage and Stripe call all use it.
NEST_SECRETWhat 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_URLWhat 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_EMAILSWhat 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_KEYWhat 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#

SettingTurns on
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRETTurns onGoogle Calendar and Google reviews (one web client for both; reviews also need Google's Business Profile approval).
HUBSPOT_CLIENT_ID, HUBSPOT_CLIENT_SECRETTurns onOptional one-click Connect HubSpot (otherwise owners paste a service key).
LIGHTSPEED_CLIENT_ID, LIGHTSPEED_CLIENT_SECRETTurns 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_TOKENTurns 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#

SettingWhat it's for
NEST_STRIPE_SECRET_KEY, NEST_STRIPE_WEBHOOK_SECRETWhat 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_BPSWhat 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_REGIONWhat it's forAU (default) or US: which price list to show and charge.
RESEND_API_KEY, NEST_MAIL_FROMWhat 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_… settingsWhat it's forDetails printed in the Terms and Privacy pages.

The website#

SettingWhat it's for
NEST_SITE_VARIANTWhat it's forWhich website version the home page shows (see /sites).
NEXT_PUBLIC_NEST_CHANNELS_LIVEWhat 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_URLWhat 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 backup runs pg_dump for any other). Without it, the built-in database lives under data/pg (or NEST_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 to NEST_BACKUP_DIR (default data/backups, keeping the newest 14); copy them to another disk. Either way keep NEST_SECRET safe separately.
  • On Vercel, background work (texts, replies, reminders) runs right after each request and from /api/cron/jobs, which needs CRON_SECRET: Vercel Cron calls it every minute, and a pg_cron job in Supabase can call it every 15 seconds.
  • GET /api/health answers { ok, db } when the server is up and its database answers.
  • Someone locked out, and no email? npm run reset-link -- person@example.com prints 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.

Was this helpful?

Checked against Nest on 27 November 2026.