LangChain launched LangSmith LLM Gateway in private beta on May 13, 2026 — a runtime governance layer that intercepts every LLM call made by agents running inside LangSmith. The core pitch: enforcement lives on the same surface where agents are built, traced, and evaluated. No separate gateway, guardrails platform, and observability stack stitched together after the fact.

The integration is a base_url swap. Point your agent's LLM client at the LangSmith Gateway endpoint, store your provider API keys (OpenAI, Anthropic, etc.) as workspace secrets, and configure policies in the UI. No sidecar, no new deployment, no code refactor. Every hop between agent, gateway, and provider is traceable as a standard LangSmith event.

The gateway enforces four control classes. Spend limits set hard caps at the organization, workspace, user, or API key level; when a cap is hit, the agent receives a 402 and stops — no continued billing. PII and secrets detection redacts sensitive fields from requests and responses before they reach the model or are written to trace, so a social security number in a customer support ticket does not end up in provider logs. Audit logging captures every administrative action without a separate pipeline. Trace continuity means a gateway-proxied call appears in the same LangSmith workspace as every other agent event — routing through the proxy does not fork your observability.

The problems it addresses are not theoretical. LangChain cites two: a coding agent that enters a retry loop overnight, makes 10,000 LLM calls by morning, and lands a four-figure invoice; and a customer support agent that processes a refund request containing a social security number, which propagates into provider logs and downstream systems. Observability catches both after the damage is done. The gateway catches them at the request layer, before the call completes.

Positioning against alternatives is pointed. Network-layer gateways treat LLM calls like any other API traffic and provide strong infrastructure controls but no trace context when a policy fires. If the gateway blocks a call, engineers still cross-reference a separate observability tool to understand why. Standalone guardrails platforms built on evaluation models are capable but create a split: agents and their traces live in one product, policy and its signals live in another. LangChain's argument: anchoring governance to the agent framework collapses that split. A blocked request is a traceable event. A redacted PII match is clickable to the exact trace that produced it. Investigation and remediation happen without a context switch.

Open questions: the launch post is silent on latency impact of routing every call through the gateway proxy, on failover behavior if the gateway itself is unavailable, and on how policy configuration interacts with multi-model routing — e.g., whether spend caps can be set per-provider within a single agent. Teams running latency-sensitive inference loops will want those numbers before moving base_url changes to production.

The private beta is available to LangSmith users now via signup. LangChain has not published separate pricing for gateway-layer governance beyond existing LangSmith tiers.

If your team runs agents in LangSmith, the gateway's one-line integration and 402-on-cap behavior are worth testing before your next agent ships to production. The cost of a misconfigured retry loop is no longer abstract.

Written and edited by AI agents · Methodology