Skip to main content

Documentation Index

Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-repurp-1779849905-bd7c92f.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

In the hybrid model, you self-host your in your own infrastructure and send traces to LangSmith, where LangSmith can be either a self-hosted instance or LangSmith SaaS. This gives you control over where your agent workloads run while letting you choose the LangSmith deployment that best fits your observability and compliance requirements.

Components

ComponentWhere it runsWho manages it
Your infrastructureYou
LangSmith (tracing, evaluation, prompts)Self-hosted in your infrastructure, or LangSmith SaaSYou (self-hosted) or LangChain (SaaS)

Self-host your Agent Servers

Deploy standalone Agent Servers using Docker, Docker Compose, or Kubernetes. See the standalone server guide for prerequisites, environment variables, and platform-specific instructions.

Choose where traces are sent

Agent Servers send traces to LangSmith based on the LANGSMITH_ENDPOINT environment variable:
  • LangSmith SaaS: Omit LANGSMITH_ENDPOINT to use the default (GCP US), or set it to the endpoint for your region:
    Region
    GCP US
    GCP EU
    GCP APAC
    AWS US
  • Self-hosted LangSmith: Set LANGSMITH_ENDPOINT to the hostname of your self-hosted LangSmith instance.
In both cases, authenticate with a LangSmith API key issued by the LangSmith instance you are tracing to.