MeridianDocsSign in
Configuration

Models & providers

Use OpenRouter, Anthropic, OpenAI, SailResearch, a local model, or no model at all.

Meridian is model- and provider-agnostic. Every provider gets the same agent, tools and cards; only where the reasoning happens changes. Switch with ./meridian setup or by editing .env, then restart with ./meridian up.

OpenRouter (default)

One key, every major model. Ships configured with an Anthropic Claude model.

shell
MERIDIAN_LLM_PROVIDER=openrouter
OPENROUTER_API_KEY=sk-or-...
# optional: any id from openrouter.ai/models
MERIDIAN_LLM_MODEL=anthropic/claude-opus-5.5

Anthropic

Direct to Claude through the native API, with adaptive thinking and server-side refusal fallbacks.

shell
MERIDIAN_LLM_PROVIDER=anthropic
ANTHROPIC_API_KEY=sk-ant-...
MERIDIAN_LLM_MODEL=claude-opus-5-5     # default
MERIDIAN_LLM_EFFORT=medium             # low · medium · high · xhigh · max

OpenAI

shell
MERIDIAN_LLM_PROVIDER=openai
OPENAI_API_KEY=sk-...
MERIDIAN_LLM_MODEL=gpt-5

Local and self-hosted

Any OpenAI-compatible endpoint: Ollama, vLLM, LM Studio, llama.cpp server, Together, Groq, Fireworks. Nothing leaves your network.

shell
MERIDIAN_LLM_PROVIDER=compatible
MERIDIAN_LLM_BASE_URL=http://localhost:11434/v1   # Ollama
MERIDIAN_LLM_MODEL=qwen3
# MERIDIAN_LLM_API_KEY=...                         # if your endpoint needs one

When Meridian runs in Docker, localhost means the container. Use http://host.docker.internal:11434/v1 to reach a model on your machine.

The agent relies on tool calling, so choose a model that supports it well.

SailResearch

shell
MERIDIAN_LLM_PROVIDER=sailresearch
SAILRESEARCH_API_KEY=...
SAILRESEARCH_BASE_URL=https://...
MERIDIAN_LLM_MODEL=...

No model: the offline guide

shell
MERIDIAN_LLM_PROVIDER=offline

A deterministic agent that drives the same cards. It onboards you with questions, recommends a framework, generates the roadmap, drafts policies from templates, requests evidence and proposes invites. It doesn't hold open conversations or read your documents. It is also the automatic fallback whenever a key is missing.

Check the connection

  • ./meridian status shows the active provider and model.
  • Settings → Model → Test connection sends a one-line ping and shows the latency.

How it works

The backend speaks one interface, ChatModel, which streams text and tool calls. OpenAI-compatible APIs and Anthropic's API each have an adapter, and Shadow wraps whichever is active. To add a provider, implement that trait in backend/llm. See Architecture.