Consumers list
Open Agent Gateway → Consumers.Create a consumer
- Open Consumers → New Consumer.
- Work through the create tabs:
- General — Name, Protocol (LLM or MCP), optional initial target registry.
- Auth — method + entity (see below). Copy API keys when shown (once only).
- Routing — mode + strategy + registries/models (or MCP target).
- Policies — optional Add Policy or Clone policies from another consumer.
- Save. The success step and the detail Connect tab show ready-to-use snippets.
Detail tabs
Routing mode
Strategies (Static routing)
Load-balancing strategies (including smart routing) are grouped under Load balancing in
the Strategy dropdown; Simple routing and Fallback under Direct.
MCP consumers always bind registries/tools directly — they do not show the Strategy
selector or load-balancing algorithms.
Providers editor
For simple routing and non-smart load balancing, use Add Registry, set optional weight (weighted strategy), choose all models/tools or restrict via the model browser, and set a default model when needed.Smart routing
Use Complexity tiers (at least two): Simple / Medium / Hard, each with a registry and model. Same registry can appear on multiple tiers with different models. Details: Load balancing, Smart routing, Model resolution, Fallback.Model policies
For each bound registry you can:- Allow all models, or filter to a subset.
- Set a default model used when the client does not name one.
"model": "auto" so the gateway picks the registry and model. With multiple registries
and no load balancing, clients must specify the model themselves.
Connect tab
Open a consumer → Connect for:- Gateway host (SaaS or your Private LLM URL)
- Consumer slug
- Auth header examples (
X-AG-API-Key, andX-AG-Gateway-Slugon Private) - Language snippets (cURL, Python, Node, …)
- Same host and key for embeddings, images, files, rerank, and models