Skip to main content
Each provider used by a router needs one key source:
  • managed uses Dari’s provider account.
  • user uses your provider key.
OpenRouter and xAI are BYOK-only — set their source to user and supply an API key. Configure both in router.yml. Read BYOK values from environment variables rather than storing secrets in YAML:
When a model is bound to OpenRouter via model_providers, Dari sends requests to OpenRouter using that key and forwards strict zero-data-retention routing controls. Your application still sends only its Dari Routing API key. Dari uses the configured provider credential after selecting a model. You can also choose key sources from the router’s Keys page in the Dari Dashboard. Organization-registered custom models use the credential saved with the model instead of a router-level provider key.