Skip to main content
Private beta: The LLM Gateway is in private beta. APIs and features may change as we iterate. Sign up for the waitlist to get access.
The LLM Gateway is a proxy that sits between your agents (or any LLM client) and the LLM providers they call. Instead of each client storing provider API keys locally, keys are stored once in LangSmith as Provider Secrets. Clients authenticate with a LangSmith API key. When a request passes through the gateway, it:
  1. Authenticates the caller using their LangSmith API key.
  2. Resolves the actual provider API key from your workspace’s Provider Secrets.
  3. Evaluates governance policies (spend limits, PII redaction, secrets redaction).
  4. Proxies the request to the upstream provider.
  5. Traces the call to LangSmith.
Every gateway-proxied call appears as a trace in LangSmith. When a policy fires, the event flows into LangSmith Engine for triage—you can go from a blocked request to the trace that triggered it to the fix, all in one product.

Feature availability

Supported providers

Known limitations

  • Claude Desktop: no marketplace plugins supported. The Chat tab not visible, but Cowork is functional.
  • Codex Desktop: no marketplace plugins supported.
  • Cursor: IDE integration is not yet available.
  • ChatGPT Desktop / Gemini Desktop: not configurable.

Resources

Spend policies

Set and manage cost limits across your organization.

PII and secrets redaction

Prevent sensitive data from reaching LLM providers or trace storage.
For further questions on LLM Gateway, contact support.langchain.com.