Skip to main content
When running LangSmith on Google Cloud Platform (GCP), self-hosted mode deploys a complete LangSmith platform with observability functionality. This page provides:
LangChain publishes production-ready Terraform modules for GCP that provision GKE, Cloud SQL, Memorystore, Cloud Storage, and networking in a single workflow. Start with the Deploy with Terraform overview to choose between the Terraform and Helm-only paths.

Initial setup

1

Deploy to Kubernetes

Follow the Kubernetes installation guide. LangSmith is tested on Google Kubernetes Engine (GKE).GKE-specific notes:
  • LangSmith works with standard GKE clusters
  • Use GCE persistent disk storage class
2

Configure external services

For production deployments, connect to GCP managed services:

Google Cloud Storage

Store trace data in GCS

Cloud SQL

PostgreSQL database

Memorystore

Redis or Valkey for caching

ClickHouse Cloud

Analytics database
3

Set up authentication

After completing these initial setup steps, you can review the complete GCP architecture and best practices below.

Reference architecture

We recommend leveraging GCP’s managed services to provide a scalable, secure, and resilient platform. The following architecture applies to both self-hosted and hybrid and aligns with the Google Cloud Well-Architected Framework: Architecture diagram showing GCP relations to LangSmith services

Compute options

LangSmith supports multiple compute options depending on your requirements:

Google cloud Well-Architected best practices

This reference is designed to align with the six pillars of the Google Cloud Well-Architected Framework:

Operational excellence

Security

Reliability

Performance optimization

Cost optimization

Sustainability

Security and compliance

LangSmith can be configured for: Customers can deploy in Assured Workloads regions for compliance with ISO, HIPAA, or other regulatory requirements as needed.

Monitoring and evals

Use LangSmith to: Integrate with: