AI Gateway
Installation-wide AI provider credentials, provider-specific model dropdowns, and embedding routing.
The AI Gateway is configured by the superadmin at /superadmin/settings. Credentials and
routing apply to the whole Breeks installation, not to a single project.
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 falls back to a 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 | text-embedding-3-small, text-embedding-3-large, text-embedding-ada-002 |
| OpenRouter | API key | https://openrouter.ai/api/v1 | Not supported by the Breeks gateway in this pass |
| Gemini | API key | Google Gemini API | gemini-embedding-001 |
| Anthropic | API key | Anthropic Messages API | Not supported |
| Kimi | API key | https://api.moonshot.ai/v1 | Not supported |
| OpenAI Codex | Device login | Local Codex CLI | Not supported |
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.