Skip to content

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.

anvil-serving router up --dry-run

Result The exact router service and configuration action is shown without mutation.

Apply

Start the authenticated gateway.

anvil-serving router up --confirm

Result The deployed router serves only explicitly configured routes.

Observe

Inspect the installed router and backing capability state.

anvil-serving router status

Result Router health is visible without changing alias bindings.

Verify

Exercise the caller-visible route contract.

anvil-serving eval routed --help

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.primary without editing every client.
  • You need admission control, readiness, and an audit trail of routing decisions.

Go deeper