TL;DR: AI gateway controls are now the main lever for managing model spend, routing, caching and governance as usage climbs, according to Tetrate, because caps alone miss shared costs, bypass paths and attribution gaps. The practical shift is from per-team limits to gateway-level financial accountability and policy enforcement, which changes how enterprises govern AI at scale.
At a glance
What this is: This article argues that the AI gateway has become the control point for cost, routing, caching, attribution and governance as enterprises scale agent and model usage.
Why it matters: It matters because IAM and security teams now need a governed layer for identity, tool access and spend control instead of relying on fragmented app-level caps and logs.
Context
An AI gateway is the shared control plane that sits between applications, agents and model providers, and it becomes necessary when routing, caching, logging and budgets cannot be governed consistently inside individual services. In practice, the problem is not just cost. It is the absence of one place where AI requests, tool calls and spend can be observed and controlled across the programme.
For identity teams, the governance gap is that agent traffic now behaves like a distributed access layer, but without the same standardisation human IAM programmes expect. Without a common gateway, teams end up with fragmented keys, inconsistent policy enforcement and poor attribution, which makes both financial control and shadow AI discovery harder.
Key questions
Q: How should security teams govern AI models that can call tools and access data?
A: Security teams should govern AI models as non-human identities with named owners, limited scope, short-lived credentials, and continuous authorization. The critical shift is to treat every tool call, data read, and update path as a privileged action that can be logged, revalidated, and revoked. Without that discipline, model risk becomes identity risk.
Q: Why do per-user AI caps often fail to control enterprise spend?
A: Per-user caps measure request volume, not true cost, so a few long-context or high-value calls can consume far more budget than many ordinary ones. They also miss shared usage and direct provider calls. Gateway-level routing and attribution are more effective because they control the expensive paths and assign costs to owners.
Q: What do teams get wrong about showback and chargeback for AI?
A: They treat showback as a reporting exercise instead of the foundation for financial accountability. Showback only works when attribution is accurate enough to trust, and chargeback should come later when spend can be mapped to the right owner. If the control plane cannot attribute usage, the finance model will fail.
Q: What is the difference between gateway routing and app-level AI controls?
A: Gateway routing applies defaults, caching and policy before requests reach any individual app, so the control is inherited everywhere. App-level controls are local, easier to bypass and harder to standardise. The gateway therefore governs the shared path, while app-level controls only govern the code that remembers to use them.
Technical breakdown
Why gateway-level routing matters more than app-level caps
Per-user or per-agent caps are weak when the expensive part of the workload is not request count but context size, model choice and retry behaviour. An AI gateway can route each call to a cheaper or more capable model based on task needs, while preserving shared defaults across every application. That matters because routing logic inside each harness creates drift, inconsistent policy and bypass paths. The gateway becomes the place where the organisation standardises default model selection, failover and cost policy once rather than reimplementing it everywhere. See the LLM Provider API Key Security and LLMjacking Guide.
Practical implication: Move routing decisions out of individual applications and into a central gateway so model choice, failover and spend policy are enforced consistently.
How caching changes the economics of AI usage
Prompt caching reduces cost only when the gateway can preserve stable prefixes and recognise when a conversation should stay on the same model. The technical issue is that cache state is per model, so naive re-routing can destroy savings by invalidating the warm cache mid-session. Semantic caching extends the same idea by reusing answers for repetitive prompts where correctness stays stable. In other words, the gateway is not just a proxy. It is the place where the organisation decides which requests deserve a fresh model call and which do not. See the AI Governance Guide.
Practical implication: Treat cache-aware routing as a central control, not a local optimisation, or you will erase savings every time a request hops between models.
Why attribution and tool governance belong at the gateway
The article frames the gateway as the only layer that can attach spend to an owner and keep tool use visible when agents call models through MCP. That creates the audit trail needed for showback, then chargeback, and it prevents tool access from being scattered across app-specific controls. The deeper governance point is that agent actions are only governable when the request, the identity and the tool are all visible in one place. Without that, security sees fragments, finance sees one invoice and no one owns the boundary. See the AI Agent Observability, Audit and Incident Response Guide.
Practical implication: Centralise request identity, tool exposure and spend attribution in one control point before you attempt chargeback or agent governance.
Threat narrative
Attacker objective: The objective is not a classic breach but uncontrolled AI usage that consumes budget, bypasses governance and hides risky actions from oversight.
- Entry occurs when teams bypass the shared gateway by wiring direct calls to model providers from individual apps, IDEs or internal tools.
- Credential and policy exposure follow when each team manages its own keys, routing and logging, creating inconsistent control paths and scattered oversight.
- Impact emerges as spend becomes unattributed, outages propagate across unrelated teams, and risky tool calls cannot be consistently observed or stopped.
Breaches seen in the wild
- LiteLLM MCP auth bypass 2026: An exploited LiteLLM MCP auth bypass and default sk-1234 master keys let attackers steal AI gateway master and provider API keys.
- Moltbook AI agent keys breach: Moltbook breach exposed 1.5M AI agent keys.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Gateway governance is now an identity control problem, not just a cost-management problem. The article is strongest when it shows that the same shared layer responsible for routing and caching is also the place where identity, attribution and policy enforcement converge. That means AI governance is no longer an isolated FinOps concern. It is a cross-functional control surface where access, action and spend have to be linked.
Showback and chargeback only work when the control plane owns attribution. Teams can discuss budgets all they want, but without a shared gateway the organisation cannot reliably map model usage to a team, an agent or a business unit. The operational lesson is that financial accountability in AI depends on technical attribution, not reporting after the fact.
Shadow AI is the natural outcome of fragmented gateway design. When direct provider calls bypass the shared layer, each team invents its own keys, logs and guardrails. That creates an unmanaged identity perimeter around AI usage, which is why the governance problem extends beyond spend into discovery, oversight and offboarding.
AI gateway design is becoming part of the identity stack for agents. The article shows why tools, model access and runtime policy must be governed together instead of as separate concerns. In NHIMG terms, the control point is where AI identity becomes observable and enforceable, especially when agents are selecting tools and spending tokens in production. Practitioners should treat this as a governance boundary, not an integration convenience.
From our research library:
- AI-related credential leaks surged 81.5% year-over-year in 2025, with the surrounding AI infrastructure leaking 5x faster than core LLM providers, according to the State of Secrets Sprawl 2026.
- Read next: AI Agent Observability, Audit and Incident Response Guide
What this signals
AI gateway governance is becoming the missing middle layer in enterprise AI programmes. Security and IAM teams will increasingly need a shared control plane that combines identity, tool governance and spend attribution rather than stitching these concerns together later. The organisations that do this well will be able to see AI requests, assign ownership and enforce policy before those actions spread across the estate.
Shadow AI discovery will shift from hunting unknown apps to tracing unknown AI paths. As model use spreads into IDEs, internal tools and agent workflows, the real question becomes which calls bypass the gateway and which identities are attached to them. That is why discovery, attribution and runtime control now belong in the same programme, not in separate workstreams.
Spend governance and access governance are converging around a single point of enforcement. When the control plane owns routing, caching and tool exposure, it also becomes the place where policy can be measured and exceptions can be explained. This is the practical shape of AI governance at scale, and it is already visible in the way teams are moving toward audit and incident response for agents.
For practitioners
- Standardise gateway-mediated model access Route all production AI traffic through one shared control plane so routing, caching, logging and budget rules are applied consistently.
- Create owner-based showback first Map AI spend to a named business owner before moving to chargeback, and require the attribution to cover the majority of usage before shifting budgets.
- Govern agent tools at the same layer Expose only approved tools through the gateway so model calls and MCP tool calls share the same policy boundary and audit trail.
- Build for cache-aware routing Preserve stable prefixes and avoid unnecessary model switching mid-conversation so cache hits are not destroyed by routing decisions.
- Detect unsanctioned direct calls Look for applications, IDEs and internal tools that call model providers outside the gateway and bring those paths under governance.
Key takeaways
- AI gateway design is now a governance issue as much as a cost issue, because the same layer that routes requests also determines what can be observed and controlled.
- The article's central evidence is that usage can rise while spend flattens, but only when routing, caching and attribution are managed centrally.
- Enterprises need a shared control plane for model access and tool use if they want showback, chargeback and auditability to work in practice.
Related NHI Mgmt Group resources: LLM Provider API Key Security and LLMjacking Guide · Shadow AI and AI Agent Discovery Guide · AI Agent Authorisation Guide · AI Agent Observability, Audit and Incident Response Guide
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | The article centers on governing agent access, tools and runtime policy through a shared gateway. |
| ASI02 — Tool Misuse | MCP tool governance is a core part of the gateway argument and the risk of uncontrolled actions. | |
| Recommendation — Apply ASI03 controls to centralise agent identity, tool access and policy enforcement at the gateway. Restrict agent tool exposure and enforce approval boundaries to prevent unauthorised tool misuse. | ||
| OWASP Non-Human Identity Top 10 | NHI-04 — Insecure Authentication | AI requests and tool calls depend on identity-bound access paths that must be authenticated consistently. |
| Recommendation — Authenticate model and tool requests through one governed control plane instead of scattered direct credentials. | ||
| NIST AI RMF | GOVERN — AI Governance and Accountability | The article is fundamentally about governance, accountability and ownership for AI usage and spend. |
| Recommendation — Establish governance roles that assign ownership for AI access, spend and runtime policy. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | Gateway policy enforcement is an authorisation problem across apps, agents and tools. |
| Recommendation — Centralise authorisation decisions so AI entitlements are enforced consistently across the enterprise. | ||
Key terms
- AI Gateway: A control point that sits between AI applications and the models, tools, or data they call. In practice, it can authenticate requests, enforce policy, inspect runtime behaviour, and stop unsafe actions before they spread into connected systems.
- Showback: Showback is internal reporting that makes AI usage visible without billing the consuming team. It is used when ownership or attribution is still settling, because it lets organisations validate request tagging, build trust in the data, and prepare for formal chargeback later.
- Chargeback: Chargeback is the allocation of technology costs back to the business unit, product, or service that incurred them. For AI workloads, it becomes a governance control when pricing and attribution are reliable enough that cost responsibility can influence design, usage, and prioritisation.
- Shadow AI: AI agents, copilots, or connected tools operating without full visibility or governance from security teams. Shadow AI becomes an identity problem when those systems authenticate with unmanaged tokens, service accounts, or OAuth apps that can reach production resources.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
Published by the NHIMG editorial team on October 22, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org