Capability Gateway¶
The Capability Gateway gives every client one authenticated endpoint. Callers
ask for a capability alias such as llm.primary; your configuration maps each
alias to exactly one local tier. The gateway speaks Anthropic Messages, OpenAI
Chat Completions, and a stateless Responses subset, and streams responses
straight through.
It never guesses. An unknown alias returns 404, and a tier that cannot serve returns an error instead of quietly switching to a different model.
Expose explicit capability aliases through one authenticated protocol boundary.
Boundary
Owns auth, exact alias resolution, dialect translation, readiness, admission, streaming, and relay; it never classifies intent, selects a model semantically, or falls back to another tier.
The journey¶
Each step is a supported command. Run anvil-serving product journey capability-gateway to print the same journey from the CLI.
Preview¶
Review router lifecycle against the declared topology.
Result The exact router service and configuration action is shown without mutation.
Apply¶
Start the authenticated gateway.
Result The deployed router serves only explicitly configured routes.
Observe¶
Inspect the installed router and backing capability state.
Result Router health is visible without changing alias bindings.
Verify¶
Exercise the caller-visible route contract.
Result The routed acceptance workflow and required evidence inputs are explicit.
When to use it¶
- Several agents or apps should share local models through one front door.
- You want to swap the model behind
llm.primarywithout editing every client. - You need admission control, readiness, and an audit trail of routing decisions.
Go deeper¶
- Gateway overview — the authority model and invariants
- Request path — what happens to one request
- Configuration — aliases, tiers, and qualified replicas
- Embeddings and reranking
- Reliability controls
- Diagnose a request
- Remote tailnet endpoints
- Command reference: router, routed evaluation