The LLM Gateway is in beta.
Choose a provider path
Append a provider path to your regional gateway base URL:
Gateway Credits models use the standard endpoint rather than a provider-specific path. These hosted models require no provider secret of your own.
Configure provider SDKs
Set each provider SDK’s base URL to its direct gateway path and use your LangSmith API key as the provider API key:Configure LangChain and Deep Agents
LangChain chat models and Deep Agents, including Deep Agents Code, reach these provider paths through theLANGSMITH_GATEWAY environment variable:
ChatAnthropic calls https://gateway.smith.langchain.com/anthropic and ChatOpenAI calls https://gateway.smith.langchain.com/openai/v1. To route requests through the standard endpoint instead, see the LLM Gateway quickstart.
Use a regional gateway
If your LangSmith account is on a regional instance, use the corresponding regional gateway and append the provider path. For example, usehttps://eu.gateway.smith.langchain.com/anthropic for direct Anthropic access in GCP EU.
See also
- Quickstart: use the standard API to call models across providers.
- Admin setup: configure provider secrets and access.
- Traces, Engine, and access control: see where gateway traces appear and who can view them.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

