TL;DR: LLM routing now acts as the decision layer between applications and model providers, with the strongest production setups tying provider selection to tracing, online scoring, experiments, and live traffic quality, according to Braintrust. That shifts the real question from simple failover to whether routing policies preserve reliability, cost discipline, and measurable answer quality at scale.
At a glance
What this is: This is an independent analysis of how LLM routers and model routing platforms decide which model handles each request, and why quality-based routing is emerging as the strongest production pattern.
Why it matters: It matters because IAM, NHI, and AI governance teams need to understand when routing logic becomes an access and control layer for models, providers, and credentials rather than just an optimisation feature.
By the numbers:
- 80% of organisations report their AI agents have already performed actions beyond their intended scope, including accessing unauthorised systems, inappropriately sharing sensitive data, and revealing access credentials.
- When AWS credentials are exposed publicly, attackers attempt access within an average of 17 minutes.
👉 Read Braintrust's guide to the best LLM routers and model routing platforms in 2026
Context
LLM routing is the control layer that decides which model, provider, or endpoint handles each request, and that makes it part of the governance stack rather than a simple integration detail. For identity and security teams, the risk is not only model choice but also credential scope, provider isolation, and whether routing decisions can be traced back to policy and evidence.
The central gap is that many teams still treat routing as a resilience or cost feature when it increasingly affects trust boundaries, data handling, and operational accountability. In agentic AI and broader AI governance programmes, routing decisions now sit close to secrets management, provider access control, and auditability, which is why the control model matters as much as the model catalog.
Braintrust’s article is a vendor comparison, but the underlying issue is broader: organisations need a way to govern model selection with the same discipline they apply to privileged access and workload identity. That starting position is now typical for production AI teams, not an edge case.
Key questions
Q: How should security teams govern LLM routing in production?
A: Treat routing as a policy-controlled layer. Define which models and providers can serve which request types, log every route decision, and attach ownership to the credentials used by the gateway. If routing changes affect data handling, approval should include security, privacy, and AI governance review before production rollout.
Q: Why do model routers create new NHI risks?
A: Because routers depend on API keys, project keys, and provider tokens that behave like non-human identities with access and lifecycle requirements. If those credentials are shared, long-lived, or poorly scoped, attackers can abuse them to route traffic, consume resources, or reach sensitive prompts and outputs.
Q: What do teams get wrong about LLM failover?
A: They often assume fallback is purely an availability control. In practice, fallback can change which provider sees the data, which model processes the request, and whether quality problems are masked instead of fixed. Good failover needs policy, visibility, and testing against security requirements as well as uptime.
Q: How can organisations tell if routing is actually working?
A: Measure whether routed requests meet the intended quality, cost, and latency targets while remaining traceable end to end. If teams cannot explain why a route was chosen, which credential was used, and how the result was scored, the routing policy is not operating as a control.
Technical breakdown
Routing as a decision layer between applications and providers
An LLM router sits between an application and one or more model providers, then chooses where each request goes based on rules, metadata, scores, or fallback logic. That makes routing analogous to a policy enforcement point for model traffic. The distinction between destinations and routers matters because a router can centralise credential handling, provider selection, and request visibility even when the application code remains unchanged. In practice, this becomes a governance control over which model gets which request, under what conditions, and with what traceability.
Practical implication: treat routing policy as part of AI governance, not as a developer convenience setting.
Why quality-based routing depends on evaluation and traces
Quality-based routing uses production traces, experiments, scorer outputs, and online evaluation to decide which model should receive a request. This is different from failover, which only reacts to provider errors, and different from cost routing, which mainly optimises spend. The mechanism matters because a model can be up, cheap, and still wrong for the task. If routing decisions are not tied to measured output quality from real traffic, teams are essentially selecting models by assumption rather than evidence.
Practical implication: connect routing decisions to eval data before promoting a model into production traffic.
Credential isolation and provider control in multi-model gateways
Multi-provider gateways often use shared or project-scoped credentials, which means the routing layer can become a control point for secret exposure, billing separation, and blast-radius reduction. When teams route across multiple providers, the main security question is not only which model responds, but which credentials are used, how they are rotated, and whether access is partitioned by environment or customer. This is where LLM routing intersects with NHI governance, because API keys and provider tokens are non-human identities with operational privilege.
Practical implication: map each provider key and routing path to an owned identity, lifecycle, and audit trail.
Threat narrative
Attacker objective: The attacker seeks to abuse model-routing credentials or gateway access to control traffic, extract data, or expand access across AI providers.
- Entry begins when an attacker or misconfiguration exposes provider credentials, API keys, or gateway access tied to model traffic.
- Escalation follows when those credentials allow broader provider use, cross-environment access, or unauthorised model requests.
- Impact occurs when the attacker can route requests, consume resources, or interact with sensitive prompts and outputs at scale.
NHI Mgmt Group analysis
Model routing is becoming a governance layer, not just an optimisation layer. Once routing decides which model handles which request, it influences data handling, cost, resilience, and evidence of control. That puts it in the same governance conversation as workload identity and secrets management, especially in environments where API keys, provider accounts, and trace data govern model access. Practitioners should stop treating routing as plumbing and start treating it as policy.
Quality-based routing is the only routing model that can justify production trust at scale. Failover and cost optimisation are useful, but neither proves that the selected model is the right one for the request. When model selection is tied to traces, experiments, and scoring, routing becomes auditable and defensible. The named concept here is evidence-based model selection: routing decisions grounded in observed application traffic rather than vendor claims or static rules. Practitioners should require that standard before expanding AI use.
LLM gateways introduce a new non-human identity surface. Every provider key, project key, and custom endpoint in the routing layer is an identity with privilege, lifecycle, and audit requirements. That intersection is directly relevant to NHI governance because the organisation is now managing machine-access credentials that can steer workloads across multiple AI services. Practitioners should inventory these keys as NHIs, not as incidental configuration.
Routing observability is now part of incident response readiness. If a request cannot be traced to the model, route, cost, and credentials used, the organisation cannot investigate misrouting, leakage, or unexpected output reliably. This is especially important where shared gateways mask which upstream provider handled a request. Practitioners should require request-level traceability before approving production routing.
The market is moving toward integrated AI control planes. The vendors that combine routing, evaluation, traces, review, and access control are defining the category around operational governance rather than simple model switching. That direction suggests practitioners will increasingly buy for control integration, not just provider breadth. Teams should evaluate whether their current AI stack can prove who accessed what model, under which policy, and with what result.
What this signals
Evidence-based model selection is likely to become the default expectation for production AI governance. As routing systems absorb evaluation, tracing, and credential control, teams will need to prove why a model was chosen, not merely that it was available.
For identity and security programmes, the immediate signal is that provider keys and gateway tokens should enter the same governance process as other NHIs. That includes ownership, lifecycle, and auditability, with supporting guidance from the OWASP NHI Top 10 and the NIST AI 600-1 Generative AI Profile.
Routing will increasingly be judged on control quality rather than catalog size. Teams that can trace requests, isolate credentials, and tie model choice to measured performance will be better positioned to absorb new providers without expanding governance debt.
For practitioners
- Inventory model-routing credentials as NHIs List every provider key, project-scoped key, custom endpoint secret, and gateway credential used in model routing. Assign ownership, expiry, rotation, and revocation workflows just as you would for service accounts or API tokens.
- Require traceable routing decisions Ensure each routed request records the selected model, route reason, latency, token usage, and downstream score or feedback. Use that trace to support audit, tuning, and incident investigation.
- Tie production routing to evaluation gates Do not move a routing policy into production until the candidate model has been compared on representative traffic with scoring criteria that reflect business-critical quality thresholds.
- Separate routing policy by environment and customer Use distinct keys or isolated provider scopes for development, test, and production workloads. Where customer data is involved, keep routing paths and credentials partitioned to reduce cross-tenant exposure.
- Review fallback logic for security as well as availability Check whether fallback routes can unintentionally broaden data exposure, bypass preferred providers, or hide degraded quality behind a successful response. Fallback should be a governed control, not an invisible default.
Key takeaways
- LLM routing is now a control point for model governance, provider access, and request accountability, not just a convenience layer.
- Quality-based routing is stronger than failover or cost-only logic because it ties model selection to measured traffic and audit evidence.
- Every gateway credential and provider key used in routing should be governed as an NHI with clear ownership, scope, rotation, and traceability.
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 MITRE ATT&CK address the attack and risk surface, while NIST AI RMF, NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | Agentic AI routing and provider control map to model and tool-governance risks. | |
| NIST AI RMF | GOVERN | AI RMF GOVERN fits accountability for routing policy, ownership, and oversight. |
| NIST CSF 2.0 | PR.AA-1 | Identity and access management applies to provider keys and gateway credentials. |
| NIST SP 800-53 Rev 5 | IA-5 | Authenticator management covers the API keys and tokens used by routers and providers. |
| MITRE ATT&CK | TA0006 , Credential Access; TA0010 , Exfiltration | Credential abuse and data exfiltration are the main threat paths for exposed routing secrets. |
Classify routing credentials and enforce least privilege, ownership, and review under access control processes.
Key terms
- LLM Routing: LLM routing is the runtime decision layer that sends each request to the most suitable model based on cost, complexity, latency, and risk. In governed environments, it becomes part of the control plane because it determines which provider receives the data and which audit trail must exist.
- Quality-Based Routing: A routing approach that selects models using measured output quality from real traffic rather than only latency, cost, or availability. It depends on evaluations, traces, and scoring so the chosen model is the one that performs best for the request type in production.
- Gateway Credential: A secret or token used by a routing layer to authenticate to model providers or custom endpoints. In practice, these credentials function as non-human identities and must be owned, scoped, rotated, and audited like any other privileged access credential.
- Fallback Routing: Fallback routing automatically sends requests intended for one model to another model when the original is no longer available. It improves continuity, but it can hide runtime changes unless the consuming team logs and reviews the reroute.
What's in the full article
Braintrust's full article covers the operational detail this post intentionally leaves for the source:
- Provider-by-provider feature comparisons for failover, routing rules, observability, and deployment flexibility
- Pricing and packaging detail for each router, including managed versus self-hosted trade-offs
- Workflow-level evaluation features such as tracing, online scoring, experiments, and human review
- Practical procurement considerations for teams deciding between managed gateways and open-source deployment
Deepen your knowledge
NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, IAM, and secrets management. It helps practitioners connect identity controls to the broader security and AI governance decisions their programmes now depend on.
Published by the NHIMG editorial team on August 20, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org