Configuration

Providers and models

Connect your own provider credentials, choose models per run, and understand how provider availability works.

Provider configuration is explicit. Choose the provider and model for each agent run. LegionCode does not resell model access.

Supported providers

ProviderStatusNotes
OpenRouterSupportedUse an OpenRouter API key
OpenAISupportedUse an OpenAI API key
GroqSupportedUse a Groq API key
AnthropicSupportedUse an Anthropic API key
Google GeminiSupportedUse a Gemini API key
OpenCodeSupportedUse an OpenCode-compatible provider key
Together AISupportedAvailable where enabled for your account
CerebrasSupportedAvailable where enabled for your account
Cloudflare AIComing soonNot available for private-alpha runs yet

Provider availability can vary by account, region, model access, and upstream API changes.

Model catalogs

LegionCode shows models available through the connected provider configuration. A model appearing in a provider catalog does not guarantee that your provider account can use it for every task.

If a model is missing, check the provider console first. Some providers require separate model access, billing activation, or regional availability before a model can be used.

Choosing a model

Use a model that matches the task:

  • Small code edits and documentation updates usually work best with fast, lower-cost models.
  • Multi-file refactors, debugging, and review-heavy tasks benefit from stronger reasoning models.
  • Tool-heavy tasks require models and provider routes that support the tool protocol used by the workspace.

If execution is rejected, choose another model from the same provider or connect a provider with the required capabilities.