Skip to main content
LangSmith stores run inputs, outputs, errors, manifests, extras, events, and attachments in blob storage. As of LangSmith v0.18, blob storage is required: the self-hosted API and queue workers do not start without it. When you do not configure your own storage, the LangSmith Helm chart deploys RustFS, an S3-compatible object store, in your cluster and uses it. RustFS runs as a single pod with one persistent volume, so it has no replication and its capacity is the size of that volume. For production, use your own blob storage, such as Amazon S3, Google Cloud Storage, or Azure Blob Storage. It also keeps sensitive run data in storage you control when you use LangSmith Managed ClickHouse.
For cloud-specific setup, choose your platform:For complete cloud-specific setup and architecture guides, see AWS, GCP, or Azure.

Upgrade to v0.18

How an upgrade to LangSmith v0.18 behaves depends on your current blob storage configuration:
  • A bucket or container is configured: If config.blobStorage.bucketName (S3 or GCS) or config.blobStorage.azureStorageContainerName (Azure) is set, LangSmith keeps using that storage. No values change is needed.
  • No blob storage is configured: The chart deploys RustFS and LangSmith stores blobs there. To use your own storage instead, configure it before you upgrade. See Configuration.
  • config.blobStorage.enabled is set: The chart no longer has this setting. Remove it from your values. The chart fails with enabled: false.
  • engine is GCS or Azure with no bucket or container: The chart fails instead of deploying RustFS. Set the bucket or container.
If you deploy LangSmith without the Helm chart, configure blob storage before you upgrade. The services read the same BLOB_STORAGE_ENGINE, S3_BUCKET_NAME, and AZURE_STORAGE_CONTAINER_NAME settings the chart sets.

Use the bundled RustFS

The chart deploys RustFS when config.blobStorage.external.enabled is false and neither bucketName nor azureStorageContainerName is set. It creates a langsmith bucket and points the LangSmith services at it. Use the bundled RustFS for development and evaluation, not production. Configure it under rustfs in your Helm values:
  • Volume size: rustfs.statefulSet.persistence.size sets the persistent volume, 50Gi by default. Set storageClassName to choose its storage class. Without persistence, stored traces are lost when the RustFS pod restarts.
  • Credentials: The access key is langsmith. When rustfs.secretKey is empty, the chart keeps the secret key from an earlier install, or derives one from config.apiKeySalt, so every render of the chart produces the same key. To choose the key, set rustfs.secretKey, or set rustfs.existingSecretName to a Kubernetes secret with access_key and secret_key entries.
  • Security context: RustFS runs as user and group 10001, with fsGroup: 10001 so it can write to its volume. On platforms that assign user IDs, such as OpenShift with the restricted-v2 security context constraint, set runAsUser, runAsGroup, and fsGroup under rustfs.statefulSet.podSecurityContext to null.
Helm
If you use config.existingSecretName and render the chart without cluster access, as Argo CD does, config.apiKeySalt is not in your values. Set rustfs.secretKey or rustfs.existingSecretName in that case. Otherwise, each render generates a new random secret key.
RustFS supports a read-only root filesystem. Set readOnlyRootFilesystem: true in rustfs.statefulSet.securityContext and rustfs.bucketJob.securityContext.

Requirements

To use your own blob storage instead of the bundled RustFS, you need the following.
Azure blob storage is available in Helm chart versions 0.8.9 and greater. Deleting trace projects is supported in Azure starting in Helm chart version 0.10.43.Native GCS blob storage engine support (using engine: "GCS") is available in Helm chart versions 0.13.29 and greater. For earlier versions, GCS is supported via the S3-compatible API by setting engine: "S3" with HMAC credentials.
  • Access to a valid blob storage service
  • A bucket/directory in your blob storage to store the data. We highly recommend creating a separate bucket/directory for LangSmith data.
    • If you are using TTLs, you will need to set up a lifecycle policy to delete old data. For more information, see configuring TTLs. These policies should mirror the TTLs you have set in your LangSmith configuration, or you may experience data loss. See TTL configuration for blob storage for how to set up the lifecycle rules.
    • If you use automation rules, configure automation outcome retention separately, even when trace TTLs are disabled.
  • Credentials to permit LangSmith Services to access the bucket/directory
    • You will need to provide your LangSmith instance with the necessary credentials to access the bucket/directory. Read the authentication section below for more information.
  • If using S3 or GCS, an API URL for your blob storage service
    • This will be the URL that LangSmith uses to access your blob storage system
    • For Amazon S3, this will be the URL of the S3 endpoint. Something like: https://s3.amazonaws.com or https://s3.us-west-1.amazonaws.com if using a regional endpoint.
    • For Google Cloud Storage, this will be the URL of the GCS endpoint. Something like: https://storage.googleapis.com
    • For Neon Object Storage, this is the storage endpoint of your Neon branch. Something like: https://br-cool-darkness-a1b2c3d4.storage.c-1.us-east-2.aws.neon.tech

Authentication

Amazon S3

To authenticate to Amazon S3, you will need to create an IAM policy granting the following permissions on your bucket.
Once you have the correct policy, there are three ways to authenticate with Amazon S3:
  1. IAM Roles for Service Accounts (IRSA) (Recommended): You can create an IAM role for your LangSmith instance and attach the policy to that role. This is the recommended way to authenticate with Amazon S3 in production.
    1. You will need to create an IAM role with the policy attached.
    2. You will need to allow LangSmith service accounts to assume the role. The langsmith-queue, langsmith-backend, langsmith-platform-backend, and langsmith-ingest-queue service accounts will need to be able to assume the role.
      The service account names will be different if you are using a custom release name. You can find the service account names by running kubectl get serviceaccounts in your cluster.
    3. You will need to provide the role ARN to LangSmith. You can do this by adding the eks.amazonaws.com/role-arn: "<role_arn>" annotation to the queue, backend, platform-backend, and ingest-queue services in your Helm Chart installation.
  2. Access Key and Secret Key: You can provide LangSmith with an access key and secret key. This is the simplest way to authenticate with Amazon S3. However, it is not recommended for production use as it is less secure.
    1. You will need to create a user with the policy attached. Then you can provision an access key and secret key for that user.
  3. VPC Endpoint Access: You can enable access to your S3 bucket via a VPC endpoint, which allows traffic to flow securely from your VPC to your S3 bucket.
    1. You’ll need to provision a VPC endpoint and configure it to allow access to your S3 bucket.
    2. You can refer to our public Terraform modules for guidance and an example of configuring this.

KMS encryption header support

Starting with LangSmith Helm chart version 0.11.24, you can pass a KMS encryption key header and enforce a specific KMS key for writes by providing its ARN. To enable this, set the following values in your Helm chart:
By default, LangSmith will still store tokens for search in ClickHouse. If you are using LangSmith Managed Clickhouse, you may want to disable this feature to avoid sending potentially sensitive information to ClickHouse. You can do this in your blob storage configuration.

Configuration

After creating your bucket and obtaining the necessary credentials, configure LangSmith to use your blob storage system. Set external.enabled: true so the chart does not deploy RustFS.
Helm
If using an access key and secret, you can also provide an existing Kubernetes secret that contains the authentication information. This is recommended over providing the access key and secret key directly in your config. See the generated secret template for the expected secret keys.

TTL configuration

If using the TTL feature with LangSmith, you’ll also have to configure TTL rules for your blob storage. Trace information stored on blob storage is stored on a particular prefix path, which determines the TTL for the data. When a trace’s retention is extended, its corresponding blob storage path changes to ensure that it matches the new extended retention. The following TTL prefixes are used:
  • ttl_s/: Short term (base) TTL, configured for 14 days.
  • ttl_l/: Long term (extended) TTL, configured for 400 days by default.

Custom retention prefixes

If you use workspace-level extended retention or per-project extended retention, LangSmith writes blob data to prefixes of the form ttl_XXd/, where XX is the number of days configured for that workspace or project. For example, if a workspace is configured with 90-day extended retention, blob data for that workspace is written to the ttl_90d/ prefix. You must create a lifecycle rule for each custom retention period configured across your workspaces and projects. If you set the periods users can pick, create a rule for each value in the list before users choose it. Common examples:
  • ttl_90d/ — 90-day retention
  • ttl_180d/ — 180-day retention
  • ttl_365d/ — 365-day retention
If a lifecycle rule is missing for a configured retention period, blob data under that prefix will never be automatically deleted. Ensure you add a matching lifecycle rule whenever you configure a new workspace retention period.
For example, if you have workspaces configured with 90-day and 180-day extended retention, you would add the following lifecycle rules in addition to the default ttl_s and ttl_l rules:
If you have customized the TTLs in your LangSmith configuration, you will need to adjust the TTLs in your blob storage configuration to match.

Amazon S3 lifecycle rules

If using S3 for your blob storage, you will need to setup a filter lifecycle configuration that matches the prefixes above. You can find information for this in the Amazon Documentation.As an example, if you are using Terraform to manage your S3 bucket, you would setup something like this:

Automation outcome retention

Automation rules can store outcome details under run_rules/outcomes/ in your LangSmith blob-storage bucket or container. Configure a lifecycle rule to expire these objects after 30 days. This policy is independent of trace retention and does not apply to other run_rules/ objects or SmithDB data.
Add the rule to your existing lifecycle configuration. Do not replace existing rules for ttl_s/, ttl_l/, or custom retention prefixes. Keep the same rule on any disaster recovery buckets.The rule covers both existing and future objects. Existing objects older than 30 days become eligible for deletion after the policy takes effect. Age is based on storage timestamps, not timestamps in object names. Lifecycle processing is asynchronous, so 30 days is not an exact deletion deadline.
Add this rule to your existing aws_s3_bucket_lifecycle_configuration resource:
In versioned buckets, expiration adds a delete marker rather than permanently deleting the current version. The example also deletes noncurrent versions 30 days after they become noncurrent. This can retain data beyond 30 days from upload. Review this additional retention and your expired delete-marker cleanup rules. See S3 lifecycle actions.
Object locks, legal holds, and storage retention policies can prevent deletion. Review these settings together with versioning, snapshots, and soft delete before relying on lifecycle rules for permanent erasure.