model: <provider>/<name> field. Local first · nothing leaves
your machine unless a cloud provider is explicitly selected.
Canonical source:
stdlib/providers-v0.1.md
in the spec (counts from canon.yaml). The engine additionally carries an
extended catalog of TOML records
(crates/nika-catalog/data/llm-providers.toml)
used for capability metadata — anything outside the canonical 14 routes
through the openai + base_url escape hatch, not its own prefix.Overview
Providers
canonical — local · cloud · mock
API dialects
3 — openai-chat (the 5 local + most cloud) · anthropic · gemini
Capability rules
in
model-capabilities.tomlHow to pick a provider
Pick your trust model
Local / self-hosted (Ollama / LM Studio / llama.cpp / LocalAI / vLLM) — zero key, zero egress, sovereign by default. EU cloud (Mistral). US frontier (Anthropic / OpenAI / Google). Aggregator (OpenRouter). Each has different residency and compliance trade-offs.
Check the `api_dialect`
All 5 local providers + most cloud providers speak
openai-chat — same request shape, differing base URL. anthropic and gemini have native dialects.Verify the backend is reachable
Local providers need their server running (e.g. the Ollama daemon on
localhost:11434) — no key. Cloud providers declare an env_var (e.g., MISTRAL_API_KEY). nika doctor checks provider readiness before run.By category
- Local / self-hosted (5)
- Cloud (8)
- Test (1)
| ID | Name | Dialect | Env var | Example model |
|---|---|---|---|---|
ollama | Ollama daemon (localhost:11434) | openai-chat | (none) | llama3.1 |
lmstudio | LM Studio (localhost:1234/v1) | openai-chat | (none) | qwen2.5-14b-instruct |
llamacpp | llama.cpp llama-server (localhost:8080/v1) | openai-chat | (none) | qwen2.5-7b-instruct |
localai | LocalAI (localhost:8080/v1) | openai-chat | (none) | llama-3.1-8b-instruct |
vllm | vLLM OpenAI server (localhost:8000/v1) | openai-chat | (none) | meta-llama-3.1-70b-instruct |
Full alphabetical list
anthropic · deepseek · gemini · groq · llamacpp · lmstudio ·
localai · mistral · mock · ollama · openai · openrouter ·
vllm · xai total — local · cloud ·
test · matches canon.yaml in the spec repo. The
engine’s extended capability catalog ( TOML records)
is an implementation detail — extended IDs are reached via the
openai + base_url escape hatch, never their own prefix.Example: invoke a provider
infer: is live in v. Run nika doctor first to see
which provider keys or local servers are available without printing secrets.See also
Capability rules
The rules that govern which models support which features.
Concepts · Providers
How provider routing works at runtime.
Error codes
NIKA-1xx provider errors.Schema
Workflow envelope,
.nika.yaml top-level keys.