MeridianDocsSign in
Getting started

Environment variables

Every setting Meridian reads, what it does and its default — plus a builder that writes your .env.

./meridian setup writes .env for you. This page is the full reference for when you want to change something by hand. Every variable is optional: anything you leave out uses the default shown.

Build your .env

Pick your options and copy the result into .env in the meridian-stack folder.

Your key stays in this browser tab; nothing is sent anywhere.

.env
# Model
MERIDIAN_LLM_PROVIDER=openrouter
OPENROUTER_API_KEY=sk-or-...

# Privacy
MERIDIAN_SHADOW=on

# Server and branding
MERIDIAN_PUBLIC_URL=http://localhost:3000
MERIDIAN_BRAND_NAME=Meridian
MERIDIAN_BRAND_ACCENT=#245F46

Model

VariableDefaultWhat it does
MERIDIAN_LLM_PROVIDERopenrouteropenrouter, anthropic, openai, sailresearch, compatible or offline
MERIDIAN_LLM_MODELper providerModel id. Defaults: anthropic/claude-opus-5.5 (OpenRouter), claude-opus-5-5 (Anthropic), gpt-5 (OpenAI)
MERIDIAN_LLM_BASE_URLper providerEndpoint override. Required for compatible
MERIDIAN_LLM_API_KEY—Overrides the provider-specific key below
OPENROUTER_API_KEY—Key for OpenRouter
ANTHROPIC_API_KEY—Key for Anthropic
OPENAI_API_KEY—Key for OpenAI
SAILRESEARCH_API_KEY—Key for SailResearch (SAIL_API_KEY also works)
SAILRESEARCH_BASE_URL—SailResearch endpoint
MERIDIAN_LLM_EFFORTmediumAnthropic only: low, medium, high, xhigh, max
MERIDIAN_LLM_FALLBACKSonAnthropic only: server-side refusal fallbacks

If the chosen provider has no key, Meridian starts anyway with the offline guide and says why in Settings → Model and ./meridian status. See Models & providers.

Privacy

VariableDefaultWhat it does
MERIDIAN_SHADOWonShadow is Meridian's privacy layer: it swaps your company's identity and sensitive data for consistent stand-ins before each model call, and restores them in the answer. off sends prompts unchanged
MERIDIAN_SHADOW_HUBautoWhen the workspace is created, Meridian sets up the company's Shadow Hub workspace through Shadow Connect and enrols this server in it. off skips that; an admin can still connect a Hub by hand
MERIDIAN_SHADOW_HUB_URLhttps://hub.getshadow.devThe Shadow Hub Meridian provisions in. Point it at your own Hub to keep everything on your infrastructure
MERIDIAN_SHADOW_HUB_TOKEN–The Hub's provisioning token, when the Hub requires one (HUB_PROVISION_TOKEN on the Hub)
MERIDIAN_SHADOW_ENROLL_FILE<data>/shadow-enroll/linkWhere Meridian leaves the server enrolment link for the Shadow container on the same host
MERIDIAN_PRESIDIO_URL–A Presidio analyzer /analyze URL. Shadow uses it as an extra PII detector (docker compose --profile presidio up -d, then http://presidio:3000/analyze). If it is unreachable, Shadow's built-in detectors carry on

Shadow keeps its persona and encrypted vault in <data dir>/shadow. See Shadow privacy layer.

Server

VariableDefaultWhat it does
MERIDIAN_PUBLIC_URLhttp://localhost:3000Where people reach Meridian. Used in invite links; https:// turns on secure cookies
MERIDIAN_LISTEN0.0.0.0:8787Backend listen address
MERIDIAN_DATA_DIR./dataDatabase, uploaded evidence, logos and the Shadow vault
MERIDIAN_CONTENT_DIR./contentFrameworks, policy templates and training courses
RUST_LOGmeridian_server=infoBackend log level, e.g. meridian_server=debug

Branding

VariableDefaultWhat it does
MERIDIAN_BRAND_NAMEMeridianProduct name for a new workspace
MERIDIAN_BRAND_ACCENT#245F46Accent colour for a new workspace

These are defaults for a new workspace. Afterwards, admins change branding in Settings. See White-label & theming.

Frontend and Docker

VariableDefaultWhat it does
MERIDIAN_API_URLhttp://localhost:8787Where the frontend proxies /api (set automatically by ./meridian up and Compose)
MERIDIAN_WEB_PORT3000Published port for docker compose
MERIDIAN_DOCS_DIR../docsWhere the frontend reads these docs (set in the Docker image)

CLI

VariableWhat it does
MERIDIAN_API_URLAPI the CLI talks to (otherwise meridian.toml, then http://localhost:8787)
MERIDIAN_TOKENSession token, for CI; otherwise meridian login stores one
NO_COLORDisable colours in CLI output

Per-environment files

.env is for your machine. For each deploy target, create .env.<remote>, for example .env.production. meridian deploy production uploads it as that server's .env. Never commit any of them: .gitignore already excludes them.