Skip to content
TrustMeshVyantraa

Operate

Environment configuration

Every setting the API and web app read.

API (api/.env)

VariableDefaultPurpose
ENVIRONMENTdevelopmentproduction 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_ORIGINShttp://localhost:8800links in emails; allowed browser origins
COOKIE_SECUREfalsemust be true in production
POLICY_EVALUATORlocallocal or opa
OPA_URL, OPA_TIMEOUT_MS—, 200OPA REST endpoint
AI_RISK_PROVIDERnonenone, bedrock or nim (advisory only)
BEDROCK_MODEL_ID, AWS_REGION—Bedrock adapter
NIM_BASE_URL, NIM_MODEL—NVIDIA NIM adapter
EMAIL_BACKENDlogreset/invite links are logged in development
RUNTIME_RATE_LIMIT_PER_AGENT_MINUTE120runtime limit per agent
SANDBOX_TTL_HOURS, DEMO_TTL_HOURS2, 24lifetime of synthetic workspaces

Web (web/.env.local)

VariableDefaultPurpose
TRUSTMESH_API_ORIGINhttp://127.0.0.1:8810where /api/v1/* is proxied
NEXT_PUBLIC_SITE_URLhttp://localhost:8800canonical URLs and sitemap