PERSPECTIVES · OPERATIONS

What a gateway actually buys

One place to control who can use AI, which models they can access, what they can spend and what activity is recorded.

19 July 2026·7 min read·By Agile Labs

What breaks without one?

Four things, and each becomes visible at the worst moment.

Attribution. One organisational API key means every call looks the same. When spend triples, the question “whose workload is this” has no answer, and finding out takes a day of archaeology.

Revocation. With a shared key, cutting off one misbehaving application means rotating the key for everything, so nobody does it during an incident.

Evidence. If nothing recorded what was asked and what came back, an investigation has nothing to examine. This is also the gap that makes an exposure impossible to assess afterwards.

An off switch. Without a single route, disabling a model or a tool means changing configuration in every application that calls it, coordinated across teams, while the incident continues.

What it is not

It is not a router. Routing between providers is the feature most vendor material leads with and the one an SDK already handles. Selling a gateway on routing is selling the least valuable thing in the box.

It is also not a guardrail. Detection can sit at the gateway and benefits from being there, but the gateway’s job is control and evidence, and conflating the two leads to buying a filter and believing it is a platform.

“Selling a gateway on routing is selling the least valuable thing in the box.”

— on what the category is actually for

Why does redaction belong here?

Because a prompt is data, and it is about to be stored.

Tracing products capture prompts and responses by default, and several put masking behind a paid tier. If sensitive fields are removed at the gateway before anything is written, the client’s obligations are satisfied regardless of which observability product is licensed later, and switching tools does not reopen the question.

The alternative — capture everything, mask on read — means the sensitive data is already in a store, and the control is a query rather than a boundary.

CapabilityWithout a gatewayWith one
AttributionOne key, no ownerVirtual key per team and per agent
BudgetProvider invoice, monthlyHard cap at the key; deviation alarm continuously
EvidenceWhatever each application chose to logOne trace format, redacted at capture
ShutdownCoordinated redeploysOne configuration change
Model inventoryDiscovered during an incidentAn allowlist, and an alert when something new appears
Fig. 01 — Every row in the middle column is an answer that takes hours. Every row in the right column takes minutes.

The objection that deserves an answer

Routing everything through one component creates a single point of failure. That is true, and pretending otherwise is how the objection becomes an outage.

The mitigations are ordinary: more than one instance, a fallback route that has been tested rather than documented, an explicit decision per application about what happens when the gateway is unavailable, and a rehearsal of a provider outage before one occurs. What the centralisation buys in exchange is the only place where budgets, revocation and evidence can be enforced at all.

Why we build it in the client’s environment

Because of a promise we make at the start of these engagements: if the client stops paying us, the controls keep working. That rules out designs where the control plane belongs to someone else, and products whose licensing makes continued operation conditional. It is a narrower set of choices, and it is the set that survives the end of a relationship.

Article

Published 25 August 2026

By Agile Labs

Agile Labs is a Singapore enterprise software engineering company. We design, build and secure enterprise software and AI systems.

Sources

  1. LiteLLM proxy documentation, 2025–2026.
  2. Envoy AI Gateway project documentation and v1.0 release notes, 2026.
  3. OpenTelemetry GenAI semantic conventions, development status, 2026.

Related articles

View all insights

Have something complex to build, fix or take over?

Build better software, with zero surprises