Providers and models
A provider is the service that actually runs the model. Tapplack ships with nine, each with a default model, an API-key variable, and an optional base URL.
Supported providers
Section titled “Supported providers”| Id | Label | Default model | API key variable | Keyless |
|---|---|---|---|---|
gemini |
Google Gemini | gemini-2.5-flash |
GEMINI_API_KEY |
No |
anthropic |
Anthropic | claude-sonnet-5-5 |
ANTHROPIC_API_KEY |
No |
openai |
OpenAI | gpt-4.1-mini |
OPENAI_API_KEY |
No |
groq |
Groq | llama-3.3-70b-versatile |
GROQ_API_KEY |
No |
openrouter |
OpenRouter | meta-llama/llama-3.3-70b-instruct:free |
OPENROUTER_API_KEY |
No |
together |
Together AI | meta-llama/Llama-3.3-70B-Instruct-Turbo |
TOGETHER_API_KEY |
No |
mistral |
Mistral AI | mistral-small-latest |
MISTRAL_API_KEY |
No |
deepseek |
DeepSeek | deepseek-chat |
DEEPSEEK_API_KEY |
No |
ollama |
Ollama (local) | qwen2.5:7b-instruct |
— | Yes |
Defaults are code-level and are written into the config template on first run. You can change any model, key, or base URL per provider.
Adding a key
Section titled “Adding a key”The safe path stores the key in the config file using masked input:
tapplack config key geminiSet a model or base URL at the same time with the dedicated commands:
tapplack config model gemini gemini-2.5-protapplack config set providers.gemini.baseUrl https://example.com/v1Prefer environment variables? Set GEMINI_API_KEY (or the matching variable) and leave the JSON
key empty. Explicit environment variables win over the file. Do not commit a config file that
contains keys.
Reading the routing
Section titled “Reading the routing”tapplack status and tapplack doctor print the active agents and their chains. A provider with
no key is marked; keyless providers such as Ollama are shown as ready when reachable.
Inside a session, the header and status bar show the primary provider and model, and /status
prints the same routing.
Models
Section titled “Models”A model can be set at two levels, in this order of precedence:
- The agent’s
modelfield (agents.<id>.model). - The provider’s
model(providers.<id>.model). - The provider’s built-in default.
This lets several agents share a provider while using different models:
{ "agents": { "assistant": { "provider": "gemini", "model": "gemini-2.5-pro" }, "qa_reviewer": { "provider": "gemini", "model": "gemini-2.5-flash" } }}Set an agent model from the CLI:
tapplack config model assistant gemini-2.5-proFallback chains
Section titled “Fallback chains”Each agent has a fallback array. The effective chain is [provider, ...fallback]. On failure the
provider factory retries the current provider with backoff, then advances.
{ "agents": { "assistant": { "provider": "gemini", "fallback": ["anthropic", "openrouter", "groq", "ollama"] } }}Order matters. Put reliable, high-quality providers first and free or local providers last. A failure on one provider does not abort the run if a later provider succeeds; the stage record shows which provider actually answered.
Edit the chain with a comma-separated list:
tapplack config set agents.assistant.fallback anthropic,openrouter,ollamaRetry behavior
Section titled “Retry behavior”| Setting | Default | Effect |
|---|---|---|
retryAttempts |
2 |
Retries on the same provider before falling back. |
retryBaseDelayMs |
1200 |
First backoff delay. |
retryMaxDelayMs |
20000 |
Backoff ceiling. |
requestTimeoutMs |
120000 |
Per-request timeout. |
Backoff grows exponentially between the base and the max. Timeouts, 429s, and 5xx responses are treated as retryable; auth errors generally are not, so fix the key instead of retrying.
Local Ollama
Section titled “Local Ollama”No key is required. Start the server and pull the configured model:
ollama serveollama pull qwen2.5:7b-instructThe default base URL is http://localhost:11434/v1, an OpenAI-compatible endpoint. Point at a
remote Ollama host by setting OLLAMA_BASE_URL or providers.ollama.baseUrl. Local models are a
good last fallback and a good offline option, but quality and speed depend on the model and
hardware.
OpenAI-compatible endpoints
Section titled “OpenAI-compatible endpoints”openai, groq, openrouter, together, mistral, deepseek, and ollama all use the
OpenAI-compatible client. To target another compatible service, add or repoint a provider entry:
{ "providers": { "openrouter": { "apiKey": "", "model": "your-model", "baseUrl": "https://your-endpoint/v1" } }}Keep the providers.<id> id within the supported set; unknown provider ids are rejected. To use a
different service, reuse an OpenAI-compatible id and set its base URL.
Verifying a provider
Section titled “Verifying a provider”tapplack status # quick readinesstapplack doctor # readiness + paths + limitsThen run a trivial forced task to exercise the chain end to end:
tapplack start --force "reply with the word ready"- Agents — assign providers and models per agent.
- Environment variables — every provider variable.
- Config file — the full provider schema.