Skip to main content
Action Llama supports 8 LLM providers. Define named models in config.toml under [models.<name>], then reference them by name in each agent’s config.toml. Agents list models in priority order — the first is the primary, the rest are fallbacks tried automatically on rate limits when using the default pi harness.

[models.<name>] Fields

Providers

Anthropic

Claude models with optional extended thinking.
Credential: anthropic_key (field: token) Auth types: Notes:
  • pi_auth is only available with the pi harness.
  • pi_auth is not supported in Docker mode. Switch to api_key or oauth_token for containerized runs.
  • When using the claude harness, Action Llama passes Anthropic credentials to Claude CLI as ANTHROPIC_API_KEY or CLAUDE_CODE_AUTH_TOKEN depending on the configured auth type.
Thinking level: Anthropic is the only provider that supports thinkingLevel. Valid values: If omitted, thinking is not explicitly configured. For other providers, thinkingLevel is ignored.

OpenAI

Credential: openai_key (field: token)

Groq

Groq runs open-source models at high speed. Check Groq’s docs for the full list of available model IDs. Credential: groq_key (field: token)

Google Gemini

Check Google AI Studio for the full list of available model IDs. Credential: google_key (field: token)

xAI

Credential: xai_key (field: token)

Mistral

Check Mistral’s docs for the full list of available model IDs. Credential: mistral_key (field: token)

OpenRouter

OpenRouter provides access to models from many providers through a single API.
Model IDs use the provider/model format. See OpenRouter’s model list for all available models. Credential: openrouter_key (field: token)

Custom

For any provider not listed above. The model ID and API routing are handled by the pi harness.
Credential: custom_key (field: token)

Mixing Models

Each agent can use a different model. Define all models in the project’s config.toml, then reference them by name in each agent’s config.toml:

Model Fallback

Agents can list multiple models to create a fallback chain. When the primary model is rate-limited or unavailable, Action Llama automatically tries the next model in the list when using the pi harness:
Fallback switching is instant — there is no delay when moving to the next model. Exponential backoff only kicks in after all models in the chain have been exhausted. A circuit breaker tracks model availability in memory. When a model returns a rate limit or overload error, it is marked unavailable for 60 seconds. After the cooldown expires, the model is retried. The claude harness does not currently use the fallback chain. It runs the agent’s primary model directly via Claude CLI.

Credential Setup

Each provider requires a corresponding credential in ~/.action-llama/credentials/. Run al doctor to configure them interactively. LLM credentials are loaded automatically based on the models referenced in the agent’s models list in config.toml — they do not need to be listed in the agent’s credentials array. The credentials array is for runtime credentials the agent uses during execution (GitHub tokens, SSH keys, etc.). See Credentials for the full credential reference.