Models Providers & models.yml

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:

ProviderEnvironment Variable
AnthropicANTHROPIC_API_KEY (or ANTHROPIC_AUTH_TOKEN)
OpenAIOPENAI_API_KEY
DeepSeekDEEPSEEK_API_KEY
GroqGROQ_API_KEY
OpenRouterOPENROUTER_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's baseUrl or 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:

  1. Click the Model button in the bottom-left of the /chat composer.
  2. Pick Agent default (saved config) or choose any harness + model override (for example oma · anthropic/claude-opus-4-8).
  3. The override travels strictly in that message's dispatch payload, persists cleanly in /system run records, and can be reset to Agent default in one click.