---
title: "Govern LLM traffic and control spend with Datadog AI Gateway"
description: "Control model access, manage spending, route LLM requests, and investigate agent activity across providers with Datadog AI Gateway."
author: "Julien Launay, Alex Castera, Uday Tennety, Will Potts"
date: 2026-11-30
tags: ["agent observability", "ai", "agentic ai", "identity and access management", "platform engineering"]
blog_type_id: the-monitor
locale: en
---

Most companies we talk to aren’t using one AI model or tool anymore. Developers might use Claude Code throughout the day. A support assistant might run on GPT through Microsoft Foundry, while a data team uses an open source model on Together AI for a nightly batch job.

Put together, these choices create more work for IT, finance, procurement, and infrastructure teams. API keys can end up scattered across configuration files. Teams may not have a clear picture of token spending until invoices arrive. And when one provider starts rate limiting requests, an agent that depends on it can stall.

We built[ Datadog AI Gateway](https://docs.datadoghq.com/llm_observability/configure/ai_gateway.md), now in Limited Availability, to help teams manage access, spending and reliability across providers. Your agents and applications send their LLM traffic through one endpoint, and you decide in Datadog which models each team can use, how much they can spend, and where requests go when a provider has trouble. AI Gateway supports commercial and open source models and records supported inference requests in Agent Observability, alongside the rest of your telemetry. Datadog operates the gateway service, reducing the deployment, scaling, and maintenance work your platform team would otherwise take on.

In this post, we’ll show you how teams are using Datadog AI Gateway to:

- [Control model and tool access](#control-model-and-tool-access)
- [Keep agents running through provider disruptions](#keep-agents-running-through-provider-disruptions)
- [Control AI spending with budgets and rate limits](#control-ai-spending-with-budgets-and-rate-limits)
- [Roll out coding agents with shared controls](#roll-out-coding-agents-with-shared-controls)
- [Investigate agent activity in context](#investigate-agent-activity-in-context)
- [Connect the providers your teams use](#connect-the-providers-your-teams-use)

## Control model and tool access

At a company with dozens of product teams, access to a new model can mean another ticket, another provider account, and another secret to rotate. Repeat that process across teams and providers, and credential management becomes an ongoing task for the platform team.

![AI Gateway’s model catalog lists models and pricing by provider, with a warning about models missing prices.](https://web-assets.dd-static.net/42588/1795537586-ai-gateway-model-tool-catalog.png)

With AI Gateway, your platform team connects each provider account to Datadog once. Product teams point their OpenAI or Anthropic SDKs at the gateway and authenticate with a Datadog access token. Provider keys are managed centrally in Datadog, so teams no longer need to store and rotate separate credentials for every provider. You keep your existing provider accounts and bring your own keys.

Access policies let you approve a set of models for the company and give selected teams access to more expensive models when they need them. AI Gateway rejects requests that no policy allows. The MCP Gateway within AI Gateway extends centralized authentication and access control to supported MCP tools, so your platform team can determine who can use each tool.

## Keep agents running through provider disruptions

Rate limits, capacity constraints, and outages can interrupt an agent when demand is highest. If a support assistant stops responding on Black Friday, for example, customers may be left waiting for an answer.

![An AI Gateway routing rule configures primary and fallback models behind a stable route name.](https://web-assets.dd-static.net/42588/1795537620-ai-gateway-keep-agents-running.png)

Routing rules let you plan for these disruptions. Your agent calls one stable model identifier, and the rule decides where each request goes. If the first provider starts rate limiting requests, AI Gateway can try the same model on another configured provider, such as Amazon Bedrock, Microsoft Foundry, or Google Vertex AI, depending on model availability. With a compatible fallback in place, the request can continue without each application maintaining its own recovery logic.

The same rules can help when a new model becomes available. You can send a share of traffic to the model, see how it performs, and update the rule when you’re ready to move more traffic. You can also combine model types in a rule, sending complex requests to a frontier model and simpler requests to an open source model. Use representative tasks and Agent Observability evaluations to compare quality, latency, retries, and total task cost before expanding the rollout.

## Control AI spending with budgets and rate limits

AI spending can grow faster than expected. An agent stuck in a loop or an evaluation job left running over a weekend can consume a large share of a team’s budget before anyone notices.

![An AI Gateway evaluation budget has used $3.23 of its $20 daily limit, with blocking enabled.](https://web-assets.dd-static.net/42588/1795537651-ai-gateway-control-ai-spend.png)

Routine tasks can also add to the bill. For example, drafting a simple email may not require your most expensive model. Access policies let you reserve premium models for the teams that need them, while classification-based routing can direct email-drafting requests to an approved model such as Claude Sonnet, using criteria you define.

AI Gateway budgets let you set daily, weekly, or monthly spending limits for your company, a team, a person, a model, or a tagged agent. Start with alerts so owners get a heads-up before reaching the limit. In block mode, the gateway rejects matching new requests once the budget is exhausted. A configured fallback can try an approved lower-cost destination if its applicable budgets still allow the request.

For usage that grows in minutes rather than days, rate limits cap requests and tokens per minute. Run them in alert mode first to see which requests would be affected, then enable enforcement when you’re ready.

## Roll out coding agents with shared controls

As more developers adopt coding agents, platform teams need to understand who is using them, what they cost, and whether sensitive repository content is being recorded. A shared configuration gives the team one place to apply model access and spending controls.

Use your mobile device management (MDM) tooling to point supported coding agents at AI Gateway and distribute a common configuration centrally. Developers authenticate with Datadog, while your platform team selects allowed models, sets monthly team budgets, and reviews usage and spending by team on one page.

You can also choose metadata-only capture to track usage and cost without recording prompt and response content in Datadog Gateway spans.

## Investigate agent activity in context

AI Gateway records supported inference requests as spans in Datadog Agent Observability. The overview page shows requests, errors, tokens, spending, and latency by model and provider, so you can follow a spike to the requests behind it and investigate what changed.

![Agent Observability pairs an AI Gateway request’s token use and estimated cost with a form for reviewing response quality.](https://web-assets.dd-static.net/42588/1795537680-ai-gateway-investigate-agent-activity.png)

With agent instrumentation, you can add tool and workflow context, use evaluations and experiments to compare changes, and investigate alongside your application performance monitoring (APM), infrastructure, and security data. You can then use those findings to refine an AI Gateway access, budget, or routing policy.

## Connect the providers your team use

Few teams rely on a single provider for every AI workload. AI Gateway supports providers for commercial, open source, and custom models, so you can connect the ones your teams use through Datadog integration tiles. Those connections work with both AI Gateway and Agent Observability.

Supported cloud services include Amazon Bedrock from AWS, Baseten, CoreWeave, Fireworks AI, Google Cloud (Vertex AI), Inferact, Microsoft Azure (Azure Foundry and Azure OpenAI), Morph, Nebius, and Together AI. You can also connect directly to Anthropic and OpenAI. These options give your teams access to model families such as Claude, GPT, and Gemini through the provider accounts you already use.

Providers such as Nebius, CoreWeave, Baseten, Together AI, and Fireworks AI offer open source and custom models, including families such as GPT-OSS, Kimi, GLM, and Qwen. If you host your own models, AI Gateway also supports custom OpenAI-compatible endpoints.

![AI Gateway Partners include Anthropic, Amazon Bedrock from AWS, Baseten, CoreWeave, Fireworks AI, Google Cloud (Vertex AI), Microsoft Azure (Azure Foundry and Azure OpenAI), Nebius, OpenAI, and Together AI.](https://web-assets.dd-static.net/42588/1795617910-ai-gateway-feature-announcement-partner-logo-list.png)

## Get started with Datadog AI Gateway

AI Gateway brings model access, routing, spending controls, and request visibility into one service. Your platform team can apply shared policies while product teams continue using the models and SDKs that work for their applications.

Datadog AI Gateway is now in Limited Availability and available to all customer organizations. To get started, open AI Gateway under AI Observability in your Datadog navigation. Follow the AI Gateway documentation to add a provider and send your first request.

Attending AWS re:Invent? Visit Datadog’s AI booth #1638 in the Venetian Expo, Level 2, for a demonstration. If you’re new to Datadog, <!-- Sign-up trigger (sign up for a free 14-day trial) omitted -->.