---
id: 9973
lang: en
title: "Controlling AI Spend: How LangSmith Gateway Works"
published_at: "2026-05-23 17:55:00"
source_name: "LangChain Blog"
source_url: "https://www.langchain.com/blog/introducing-llm-gateway"
canonical_url: "https://news.hamidun.com/en/news/9973"
categories: ["llm"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# Controlling AI Spend: How LangSmith Gateway Works

> **Краткая суть (BLUF):** LangSmith has introduced a built-in LLM Gateway, a tool for managing AI agents at every stage of development and deployment.  With Gateway, developers can set financial limits on LLM request spending, automatically strip personal data (PII) from prompts, and view full logs of all calls in real time.  The integration is built directly into LangSmith, with no extra plugins or configuration.

LangChain's LangSmith has introduced LLM Gateway, a built-in tool for controlling spending on AI models, protecting user data and tracking every request in real time.

### How can you control LLM spending without extra services?
LangSmith has built in LLM Gateway, which operates at the runtime level, at the moment a request executes, and controls spending on calls to OpenAI, Anthropic and other providers directly from the development environment.

### How do you protect personal data in AI agents?
LLM Gateway lets you protect PII (users' personal data) and track every call in real time without additional infrastructure.

### Is it possible to control spending on AI applications?
Yes. LangSmith Gateway lets developers control spending on calls to large language models, protect user data and track every call in real time, directly from the development environment.

### How does PII protection work in LangSmith Gateway?
Gateway is built into LangSmith and works at the runtime level, sitting between the agent's code and the LLM provider's service (OpenAI, Anthropic and others) to protect users' personal data.

---
- **Первоисточник:** [LangChain Blog](https://www.langchain.com/blog/introducing-llm-gateway)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/9973
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
