Skip to main content

Environment Variables

Part 3 of REMLO_MASTER.md is the canonical environment contract. The table below preserves that contract exactly for deployment-critical values. A second table lists optional variables that appear in the current codebase but are not part of the master contract.

Canonical variables

VariableScopePurpose
NEXT_PUBLIC_TEMPO_RPCPublicTempo Moderato RPC URL used by client and server contract callers
NEXT_PUBLIC_TEMPO_CHAIN_IDPublicTempo chain ID. Current value: 42431
NEXT_PUBLIC_PRIVY_APP_IDPublicPrivy application identifier
NEXT_PUBLIC_SUPABASE_URLPublicSupabase project URL
NEXT_PUBLIC_SUPABASE_ANON_KEYPublicBrowser-safe Supabase anon key
NEXT_PUBLIC_PAYROLL_TREASURYPublicDeployed PayrollTreasury address
NEXT_PUBLIC_PAYROLL_BATCHERPublicDeployed PayrollBatcher address
NEXT_PUBLIC_EMPLOYEE_REGISTRYPublicDeployed EmployeeRegistry address
NEXT_PUBLIC_STREAM_VESTINGPublicDeployed StreamVesting address
NEXT_PUBLIC_YIELD_ROUTERPublicDeployed YieldRouter address
NEXT_PUBLIC_APP_URLPublicPublic app origin used in redirects and MPP callbacks
SUPABASE_SERVICE_KEYServer onlySupabase service role key for protected API writes
BRIDGE_API_KEYServer onlyBridge API key used by the server-side Bridge client
BRIDGE_WEBHOOK_SECRETServer onlyBridge webhook verification key
REMLO_TREASURY_ADDRESSServer onlyTempo wallet that receives MPP fees
REMLO_AGENT_PRIVATE_KEYServer onlyPrivate key for the server-side payroll and treasury agent actions
RESEND_API_KEYServer onlyResend key for invite email delivery
CLAUDE_API_KEYServer onlyAnthropic key reserved for AI-assisted routes
STRIPE_SECRET_KEYServer onlyStripe key used by the multi-rail MPP fallback
MPP_SECRET_KEYServer onlySession signing key for mppx

Optional current-code overrides

These values appear in the current repository. They are not listed in Part 3, so treat them as implementation-specific until the master spec is updated.
VariableScopePurpose in current code
NEXT_PUBLIC_WALLETCONNECT_PROJECT_IDPublicEnables WalletConnect inside the Privy config when present
ADMIN_USER_IDSServer onlyComma-separated platform admin allowlist used by middleware role resolution
TEMPO_WEBHOOK_SECRETServer onlyHMAC verification secret for /api/webhooks/tempo
DEMO_MPP_CREDENTIALLocal devInjects a payment credential into scripts/demo-agent.ts
DEMO_EMPLOYER_IDLocal devOverrides the demo employer id in scripts/demo-agent.ts
DEMO_PAYROLL_RUN_IDLocal devOverrides the demo payroll run id in scripts/demo-agent.ts

Notes

  • Bridge and Tempo webhooks must be configured only on the server side.
  • The current repo assumes REMLO_AGENT_PRIVATE_KEY for server-side contract writes.
  • If you keep .env.local in sync with the canonical table above, the public app and the core API surface will boot cleanly.