Operate
Environment configuration
Every setting the API and web app read.
API (api/.env)
| Variable | Default | Purpose |
|---|---|---|
ENVIRONMENT | development | production enforces required secrets and secure cookies |
DATABASE_URL | — | application role (non-owner, RLS applies) |
MIGRATION_DATABASE_URL | — | owner role for migrations and expired-workspace cleanup |
SECRET_PEPPER | — | HMAC pepper for API keys and agent credentials |
PUBLIC_BASE_URL, CORS_ORIGINS | http://localhost:8800 | links in emails; allowed browser origins |
COOKIE_SECURE | false | must be true in production |
POLICY_EVALUATOR | local | local or opa |
OPA_URL, OPA_TIMEOUT_MS | —, 200 | OPA REST endpoint |
AI_RISK_PROVIDER | none | none, bedrock or nim (advisory only) |
BEDROCK_MODEL_ID, AWS_REGION | — | Bedrock adapter |
NIM_BASE_URL, NIM_MODEL | — | NVIDIA NIM adapter |
EMAIL_BACKEND | log | reset/invite links are logged in development |
RUNTIME_RATE_LIMIT_PER_AGENT_MINUTE | 120 | runtime limit per agent |
SANDBOX_TTL_HOURS, DEMO_TTL_HOURS | 2, 24 | lifetime of synthetic workspaces |
Web (web/.env.local)
| Variable | Default | Purpose |
|---|---|---|
TRUSTMESH_API_ORIGIN | http://127.0.0.1:8810 | where /api/v1/* is proxied |
NEXT_PUBLIC_SITE_URL | http://localhost:8800 | canonical URLs and sitemap |