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.
# 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=#245F46Model
| Variable | Default | What it does |
|---|---|---|
MERIDIAN_LLM_PROVIDER | openrouter | openrouter, anthropic, openai, sailresearch, compatible or offline |
MERIDIAN_LLM_MODEL | per provider | Model id. Defaults: anthropic/claude-opus-5.5 (OpenRouter), claude-opus-5-5 (Anthropic), gpt-5 (OpenAI) |
MERIDIAN_LLM_BASE_URL | per provider | Endpoint 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_EFFORT | medium | Anthropic only: low, medium, high, xhigh, max |
MERIDIAN_LLM_FALLBACKS | on | Anthropic 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
| Variable | Default | What it does |
|---|---|---|
MERIDIAN_SHADOW | on | Shadow 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_HUB | auto | When 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_URL | https://hub.getshadow.dev | The 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/link | Where 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
| Variable | Default | What it does |
|---|---|---|
MERIDIAN_PUBLIC_URL | http://localhost:3000 | Where people reach Meridian. Used in invite links; https:// turns on secure cookies |
MERIDIAN_LISTEN | 0.0.0.0:8787 | Backend listen address |
MERIDIAN_DATA_DIR | ./data | Database, uploaded evidence, logos and the Shadow vault |
MERIDIAN_CONTENT_DIR | ./content | Frameworks, policy templates and training courses |
RUST_LOG | meridian_server=info | Backend log level, e.g. meridian_server=debug |
Branding
| Variable | Default | What it does |
|---|---|---|
MERIDIAN_BRAND_NAME | Meridian | Product name for a new workspace |
MERIDIAN_BRAND_ACCENT | #245F46 | Accent 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
| Variable | Default | What it does |
|---|---|---|
MERIDIAN_API_URL | http://localhost:8787 | Where the frontend proxies /api (set automatically by ./meridian up and Compose) |
MERIDIAN_WEB_PORT | 3000 | Published port for docker compose |
MERIDIAN_DOCS_DIR | ../docs | Where the frontend reads these docs (set in the Docker image) |
CLI
| Variable | What it does |
|---|---|
MERIDIAN_API_URL | API the CLI talks to (otherwise meridian.toml, then http://localhost:8787) |
MERIDIAN_TOKEN | Session token, for CI; otherwise meridian login stores one |
NO_COLOR | Disable 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.
