Session Timeout Configuration for LangSmith Self-Hosted

Last updated: December 5, 2025

Configure session timeout to control how long user sessions remain active before requiring re-authentication.

Configuration

The environment variable depends on your authentication method:

OAuth 2.0 / SSO Authentication

platformBackend:
  deployment:
    extraEnv:
      - name: OAUTH_SESSION_MAX_SEC
        value: "28800"  # 8 hours in seconds

Documentation: SSO Session Length Controls

Basic Authentication (Email/Password)

platformBackend:
  deployment:
    extraEnv:
      - name: BASIC_AUTH_JWT_EXPIRATION_SECONDS
        value: "28800"  # 8 hours in seconds

Documentation: Basic Authentication

Common Timeout Values

Duration

Seconds

1 hour

3600

4 hours

14400

8 hours

28800

24 hours

86400

Apply Changes

  1. Update your values.yaml with the appropriate configuration

  2. Apply with Helm: helm upgrade <release-name> <chart> -f values.yaml

  3. Verify platform backend pods restart with new configuration