Providers & models.yml
Language: English · 简体中文
CrewDesk supports both major hosted LLM providers and custom OpenAI/Anthropic-compatible gateways — with strict isolation between provider secrets and agent workspaces.
Built-In Providers
Configure API keys either in System → Settings (/system/settings) or via environment variables when running from source:
| Provider | Environment Variable |
|---|---|
| Anthropic | ANTHROPIC_API_KEY (or ANTHROPIC_AUTH_TOKEN) |
| OpenAI | OPENAI_API_KEY |
| DeepSeek | DEEPSEEK_API_KEY |
| Groq | GROQ_API_KEY |
| OpenRouter | OPENROUTER_API_KEY |
All provider keys entered in Settings stay on the backend and are masked on every HTTP read.
Custom Providers & ~/.oma/models.yml
To add custom proxies, self-hosted OpenAI/Anthropic-compatible endpoints, or model aliases, configure $OMA_HOME/models.yml (default ~/.oma/models.yml):
providers:
my-gateway:
api: anthropic-messages # or openai-completions / openai-responses
baseUrl: https://gateway.example.com/v1
apiKey: ${MY_GATEWAY_API_KEY}
models:
- id: claude-sonnet-5
name: Claude Sonnet 5 (Internal)
contextWindow: 200000
Provider Config Isolation: Spawned agent subprocesses read model configuration strictly from
$OMA_HOME/models.yml, never from agent-writable project or workspace directories — preventing a Run from hijacking the next Run'sbaseUrlor API key.
Per-Turn Model Switching in Chat
You do not need to edit a member's saved config to try a stronger or faster model for a single question:
- Click the Model button in the bottom-left of the
/chatcomposer. - Pick Agent default (saved config) or choose any harness + model override (for example
oma · anthropic/claude-opus-4-8). - The override travels strictly in that message's dispatch payload, persists cleanly in
/systemrun records, and can be reset to Agent default in one click.