Skip to main content
Sandboxes are in private preview. APIs and features may change as we iterate. Sign up for the waitlist to get access.
The auth proxy lets sandbox code call external APIs (OpenAI, Anthropic, GitHub, etc.) without hardcoding credentials. When configured on a template, a proxy sidecar automatically injects authentication headers into matching outbound requests using your tenant secrets.
You must configure your secrets (e.g., OPENAI_API_KEY) in your LangSmith workspace settings before creating a template that references them.

Configure auth proxy rules

Add a proxy_config when creating a template. Each rule specifies:

Single API example

Create a template that automatically injects an OpenAI API key into outbound requests:
Sandboxes created from this template can call OpenAI with no API key setup—the proxy injects it automatically.

Multiple API example

Add multiple rules to authenticate with several services at once:

Configure via SDK