Providers and Models
Athas can use hosted providers, local models, and custom OpenAI-compatible endpoints.
Where Providers Are Used
Provider settings are split by feature:
- Athas Agent uses the provider and model selected in the main AI section
- Autocomplete uses the provider and model selected in the Autocomplete section
- External Agents use their own CLI authentication outside Athas
This lets you use one model for chat and another model for inline completions.
Built-in Providers
OpenAI
- Get an API key from OpenAI
- Go to Settings > AI > API Keys
- Click Set API Key next to OpenAI
- Paste your key and save
Anthropic
- Get an API key from Anthropic
- Go to Settings > AI > API Keys
- Click Set API Key next to Anthropic
- Paste your key and save
OpenRouter
- Get an API key from OpenRouter
- Go to Settings > AI > API Keys
- Click Set API Key next to OpenRouter
- Paste your key and save
Gemini
- Get an API key from Google AI Studio
- Go to Settings > AI > API Keys
- Click Set API Key next to Gemini
- Paste your key and save
xAI Grok
- Get an API key from xAI Console
- Go to Settings > AI > API Keys
- Click Set API Key next to xAI Grok
- Paste your key and save
Custom OpenAI-compatible Providers
Use Custom when a provider exposes an OpenAI-compatible chat completions API.
For Athas Agent:
- Go to Settings > AI
- Select Custom as the provider
- Enter the model ID exactly as your provider expects it
- Enter the provider base URL
- Save an API key if the endpoint requires a bearer token
For autocomplete:
- Go to Settings > AI > Autocomplete
- Select Custom as the autocomplete provider
- Enter the model ID, base URL, and optional API key
The base URL can point to either the API root or the chat completions endpoint. For example,
https://api.example.com/v1 and https://api.example.com/v1/chat/completions are both valid.
Custom provider models are not discovered automatically. Athas sends the model ID you enter directly to the endpoint.
Autocomplete Model Lists
When autocomplete uses OpenRouter, Athas loads the model list from the live Athas/OpenRouter model endpoint. If the list cannot be loaded, Athas leaves the selector empty and lets you retry.
Athas does not show hardcoded fallback models as selectable models.
Model Parameters
- Temperature: lower values are more deterministic, higher values are more creative
- Max Tokens: limits response length