Skip to content

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.

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.

The safe path stores the key in the config file using masked input:

Terminal window
tapplack config key gemini

Set a model or base URL at the same time with the dedicated commands:

Terminal window
tapplack config model gemini gemini-2.5-pro
tapplack config set providers.gemini.baseUrl https://example.com/v1

Prefer 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.

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.

A model can be set at two levels, in this order of precedence:

  1. The agent’s model field (agents.<id>.model).
  2. The provider’s model (providers.<id>.model).
  3. 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:

Terminal window
tapplack config model assistant gemini-2.5-pro

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:

Terminal window
tapplack config set agents.assistant.fallback anthropic,openrouter,ollama
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.

No key is required. Start the server and pull the configured model:

Terminal window
ollama serve
ollama pull qwen2.5:7b-instruct

The 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, 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.

Terminal window
tapplack status # quick readiness
tapplack doctor # readiness + paths + limits

Then run a trivial forced task to exercise the chain end to end:

Terminal window
tapplack start --force "reply with the word ready"