AI Gateway
Installation-wide AI provider credentials, provider-specific model dropdowns, and embedding routing.
The AI Gateway is configured by the superadmin. Credentials and routing apply to this Breeks installation.
What It Controls
- API credentials for OpenAI, OpenRouter, Gemini, Anthropic, and Kimi.
- OpenAI Codex device login through the local Codex CLI.
- The active embedding provider for document search vectors.
- Provider-specific model dropdowns for embeddings.
Runtime Routing
Document processing renders pages, runs OCR, and builds embeddings with the selected embedding provider. If no external embedding provider is available, Breeks uses the deterministic local hash embedding so document search still works offline.
API Endpoints
GET /api/superadmin/ai-settings
PUT /api/superadmin/ai-settings/providers/{provider}
DELETE /api/superadmin/ai-settings/providers/{provider}
POST /api/superadmin/ai-settings/providers/{provider}/test
PATCH /api/superadmin/ai-settings/gatewayCodex device login is available on /api/superadmin/ai-settings/codex/*.
Provider Model Dropdowns
These model options are returned as model_options from the AI settings payload. The UI preserves a saved custom model value as a custom option if it is not in the curated list.
| Provider | Credential | Base URL | Embedding models |
|---|---|---|---|
| OpenAI | API key | OpenAI SDK default |
|
| OpenRouter | API key | https://openrouter.ai/api/v1 |
|
| Gemini | API key | Google Gemini API |
|
| Anthropic | API key | Anthropic Messages API |
|
| Kimi | API key | https://api.moonshot.ai/v1 |
|
| OpenAI Codex | Device login | Local Codex CLI |
|
Updating The Catalog
- Check the provider docs or model API listed below.
- Update
provider_definitions()inapps/api/app/credentials.py. - Update
apps/api/tests/test_ai_settings.pywhen expected model options change. - Run the API tests and web typecheck.
- Regenerate the OpenAPI snapshot if API schemas changed.
Sources
Model options were checked on 2026-07-06.