AI Gateway
Central model routing, provider governance, API keys, usage, and external agent access for Skitflow AI features.
AI Gateway brings provider setup, gateway health, API keys, and usage into one dashboard area. Use it to connect your organization's provider, power Skitflow AI features, and give approved applications OpenAI-compatible access without sharing provider credentials.
It supports the AI Assistant, Ask AI actions, Compose analysis and hardening, and external applications that use your organization's available models.
Get started in the dashboard
- Open AI Gateway → Overview. The Gateway card shows Disabled, Healthy, or Unreachable, and the Providers card shows how many providers are enabled for the organization.
- Open Providers and add your provider. Return to Overview to confirm that it is available.
- Use Assistant for interactive work, API Keys for approved applications, and Usage to review your organization's requests and spend.
- Platform operators can use Models and Platform Usage for shared model configuration and governance.
Gateway sections in the dashboard
AI Gateway includes these areas:
| Section | Purpose |
|---|---|
| Overview | Gateway health, this organization's provider count, usage summary, and self-hosted controls when available. |
| Assistant | Product-facing AI chat and operations assistant. |
| Providers | Tenant BYOK provider configuration. The old Settings → AI page redirects here. |
| Models | Platform model configuration and default chat models. |
| API Keys | Organization-scoped gateway API keys and callable models for approved agents and automations. |
| Usage | Organization usage through the gateway. |
| Platform Usage | Operator view for platform model spend and governance. |
Self-hosted administration
On supported self-hosted installations, AI Gateway → Overview includes an AI layer card:
- Select Enable AI Gateway. When setup succeeds, the card shows Deployed and then Healthy; Starting means it is not ready yet.
- Use the Replicas controls to run from 1 to 5 replicas when your workload needs more capacity.
- For access from external applications, enter an HTTPS base address in Gateway public URL and select Save. Point that host's DNS A record at the server and allow ports 80 and 443. The published route exposes
/v1and/health. - Disable stops gateway requests. The optional Also remove data (pgvector volume) — cannot be undone setting permanently deletes that data; leave it unchecked when you only intend to turn the gateway off temporarily.
Cloud customers do not manage this AI layer. If the self-hosted card is unavailable, ask the instance administrator how the gateway is managed.
If enablement fails, stays at Starting, or the Gateway card shows Unreachable, copy the displayed error and follow the self-hosted troubleshooting steps.
External applications and agents
Open API Keys to see the gateway Endpoint and the Callable models of your organization, and to create keys. The endpoint is an OpenAI-compatible base URL (it ends in /v1): point any OpenAI-compatible SDK at it, authenticate with a gateway key, and call your models by their Model id. Keep provider credentials server-side; applications only need the gateway key.
curl 'https://YOUR-GATEWAY-HOST/v1/chat/completions' \
-H 'Authorization: Bearer YOUR-GATEWAY-KEY' \
-H 'content-type: application/json' \
-d '{"model": "YOUR-MODEL-ID", "messages": [{"role": "user", "content": "Hello"}]}'On a self-hosted install, the endpoint shows a placeholder until you set the Gateway public URL in the AI layer settings (or the SKITFLOW_AI_GATEWAY_PUBLIC_URL environment variable on environment-managed installs).
API keys
Click Create key and fill in:
- Name: up to 64 characters, for example
CI pipeline. - Budget cap ($, optional): a positive dollar amount. Leave empty for no cap.
- Requests per minute and Tokens per minute: the rate limits for this key. The defaults are 60 requests and 100,000 tokens per minute. Self-service limits go up to 10,000 requests and 10,000,000 tokens per minute; unlimited limits are an operator-only setting.
A key is scoped to your organization's own models. The full secret is shown once at creation and is not stored; if you lose it, revoke the key and create a new one. The table lists each key's prefix, rate limits, creation time and Last used time.
Use Edit rate limits on a key to change its limits later. Use Revoke to disable a key: anything using it stops working immediately, and the action cannot be undone. The key row stays in the list as Revoked.
Creating, editing and revoking keys needs the gateway_keys.manage permission. Owners and admins have it; members need a custom role that grants Gateway keys. Every member can list the keys. Key changes are recorded in Audit Logs.
Model rate limits
Each callable model has its own Rate limits (requests and tokens per minute), shown in the Callable models table. Use Edit model rate limits to change them; the same maximums apply (10,000 requests and 10,000,000 tokens per minute). A model without explicit limits uses the gateway default. This needs the ai.update permission.
Security and privacy
- Provider keys are write-only in the management API. The UI can show whether a key exists, not the key value.
- The gateway uses server-side routing decisions and organization-scoped keys for attribution.
- Assistant proposals do not execute automatically. Mutating actions require explicit confirmation and then re-run server-side authorization.
- Environment-variable diffs expose key names only, never secret values.
Use AI Gateway → Providers for tenant BYOK configuration. Use AI Gateway → Models, API Keys, and Platform Usage for governed model access and operator-managed defaults.
AI Assistant
Use Skitflow's AI Assistant to generate Compose files, analyze deployments, harden configuration, answer product questions, and propose confirmed operations through AI Gateway.
Code Review
Automated pull request review for connected GitHub, GitLab, and Gitea/Forgejo repositories, with reusable review policies and codebase-aware context.