Override gateway settings, provide credentials, and configure otari.ai connectivity with environment variables.
The following OTARI_ variables override config file values for their matching fields. For example, OTARI_PORT=9000 overrides port: 8000 in the YAML.
The config file also supports ${ENV_VAR} interpolation:
master_key: "${MY_SECRET_KEY}"
Common variables
Variable | Description |
| Master key for management endpoints |
| Database connection URL |
| Server bind host |
| Server bind port |
| Auto-run migrations on startup |
| Create first-use API key |
Provider credentials
Provider API keys can be set as environment variables instead of in the config file. These are picked up directly by the underlying SDK.
These credentials are used for standalone deployments. When connected to otari.ai, local provider credentials are not used.
Variable | Provider |
| OpenAI |
| Anthropic |
| Mistral |
| Google Gemini |
Otari variables
Variable | Default | Description |
| -- | Gateway token from otari.ai (enables platform connection) |
|
| Timeout for provider resolution calls |
|
| Timeout for usage reporting calls |
|
| Max retries for transient usage reporting failures |
|
| Per-attempt timeout waiting for first streamed chunk |
Source: mozilla-ai/otari/docs/configuration.md
