Self-hosted LangSmith is an add-on to the Enterprise plan designed for LangChain’s largest, most security-conscious customers. See pricing for details, or contact the LangChain sales team to request a license key for trial.
v0.17.* tags deploy chart 0.17, and the v0.16.* tags deploy chart 0.16. Check out the tag for the chart line you want before you configure the module.
Choose a provider
AWS (EKS)
Provision EKS, RDS PostgreSQL, ElastiCache, S3, and networking.
Azure (AKS)
Provision AKS, Azure Database for PostgreSQL, Azure Managed Redis, Blob Storage, and Key Vault.
GCP (GKE)
Provision GKE, Cloud SQL, Memorystore, GCS, and Workload Identity.
Prerequisites
Install the following tools before running the modules:
You also need:
- A LangSmith license key. Contact the LangChain sales team to request one.
- Permissions in the target cloud account to create VPC or VNet networking, a managed Kubernetes cluster, managed databases, object storage, secrets, and IAM roles.
- A registered domain (or subdomain) for the LangSmith UI endpoint. GCP needs one, set as
langsmith_domain. It is optional on AWS, which can serve LangSmith on the load balancer hostname, and on Azure, which can serve it on adns_labelhostname with any ingress controller exceptnone. With AGIC, adns_labelhostname serves HTTP only.
Deployment tiers
Each tier is a combination of settings interraform.tfvars: postgres_source, redis_source, and clickhouse_source place each data store in the cluster or in a managed service, and sizing_profile sizes the workloads.
On AWS and Azure, start from the
terraform.tfvars.example, terraform.tfvars.minimum, terraform.tfvars.dev, or terraform.tfvars.production template. On GCP, start from terraform.tfvars.example or terraform.tfvars.minimum. The templates do not map one-to-one to these tiers: every template keeps ClickHouse in-cluster, and the dev templates use managed PostgreSQL and Redis. After copying one, set the three *_source values and sizing_profile to match the tier you want.
What the modules provision
- Networking: VPC or VNet with public and private subnets, NAT, and security groups.
- Compute: Managed Kubernetes (EKS, AKS, or GKE) with autoscaling node pools sized per tier.
- Data plane: Managed or in-cluster PostgreSQL and Redis, and a blob storage bucket for trace payloads.
- Secrets: Each module keeps application secrets in the cloud’s secret store, then writes them into Kubernetes its own way. On AWS, External Secrets Operator syncs them from SSM Parameter Store. On GCP,
setup-env.shstores them in Secret Manager, Terraform writes the Kubernetes Secrets, andmake deploybuilds thelangsmith-configSecret. On Azure,secrets.auto.tfvarsholds the Terraform inputs, Key Vault holds the application secrets, andmake k8s-secretscopies them into thelangsmith-config-secretKubernetes Secret. - Ingress: Envoy Gateway (Gateway API) is the default on every provider. On AWS, an ALB forwards to it, and NGINX, Istio, or ALB Ingress alone are options. On Azure, NGINX, self-managed Istio, the AKS Istio add-on, and Application Gateway Ingress Controller (AGIC) are options. On GCP, Envoy Gateway is the only implemented option.
- Optional hardening: On AWS, AWS Network Firewall with FQDN egress allowlists, WAFv2, CloudTrail, and a private EKS API endpoint with SSM bastion access. On Azure, a WAF policy (OWASP 3.2 plus bot protection, attached to Application Gateway with AGIC), Azure Monitor diagnostic settings, a jump VM, a private AKS API server with Entra-only access, and private endpoints for Blob Storage and Key Vault. On GCP,
gke_master_authorized_cidrslimits which CIDRs can reach the GKE control plane.
Enterprise feature toggles
Each module exposes flags for the optional LangSmith add-ons. Toggle each interraform.tfvars. Each module’s deploy scripts read the flags and generate the matching Helm values.
- LangSmith Deployment (
enable_deployments): Agent Server plus the host-backend, listener, and operator that run and manage deployed agents. - Fleet (
enable_fleet): The agent-building product, formerly Agent Builder, deployed as a standalone service. - Insights (
enable_insights): ClickHouse-backed analytics. - Polly (
enable_polly): AI evaluation and monitoring. - LLM Gateway (
enable_llm_gateway): One LangSmith API key for models across the providers your organization configures, in beta.enable_gateway_pii_redactionadds PII redaction. - SSO with OIDC (
enable_sso_oidc): Log in through a standard OIDC provider instead of basic auth. Enable it only after you have logged in as the org admin with basic auth, because the flag disables basic auth.
Run
make init-values && make deploy to apply a flag change. enable_fleet also creates Terraform resources, so run make apply first. Fleet replaces the legacy enable_agent_builder flag, and its prerequisites differ by provider. See the Fleet section of the AWS, GCP, or Azure deploy guide.enable_sso_oidc is available in all three modules on the v0.17.* tags, and in the AWS module from v0.16.83. The LLM Gateway flags are available only in the Azure module, on the v0.17.* tags.Next steps
- Pick a provider above and follow the deployment guide.
- Review required dependency versions for PostgreSQL, ClickHouse, Redis, and Kubernetes.
- Plan capacity with the scaling guide.
- After the application is running, enable LangSmith Deployment to add agent deployment and management to the UI.
Connect these docs to your agent of choice via MCP for real-time answers.

