> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy to self-hosted

> Host LangSmith Agent Server on your own infrastructure with full control over data, networking, and resources.

Self-hosted Agent Server hosting runs [LangSmith Agent Server](https://docs.langchain.com/langsmith/agent-server.md) and its supporting databases inside infrastructure that you operate. With a full self-hosted LangSmith installation, you also run the control plane and data plane listener.

LangChain ships the container images, Helm charts, and license; you provide the Kubernetes cluster (or Docker host), PostgreSQL, Redis, and the networking and observability tooling that fit your environment. Self-hosted is the best deployment option when you have data residency, regulatory constraints, custom networking, or air-gapped requirements.

Self-hosted deployments require an [Enterprise plan](https://www.langchain.com/pricing) and the LangSmith license key delivered with that plan. For a setup guide, see [Self-hosted LangSmith](https://docs.langchain.com/langsmith/self-hosted.md).

## Topologies

LangSmith supports three self-hosted topologies that trade off setup complexity against control-plane features. Reference pages for [platform features](https://docs.langchain.com/langsmith/self-hosted-platform-features.md), [Agent Server metrics](https://docs.langchain.com/langsmith/self-hosted-agent-server-metrics.md), and [diagnostics](https://docs.langchain.com/langsmith/diagnostics-self-hosted.md) apply to all three.

> [card] [Full self-hosted platform](https://docs.langchain.com/langsmith/deploy-with-control-plane.md)
>
> The complete LangSmith platform—[control plane](https://docs.langchain.com/langsmith/control-plane.md) UI and APIs, [data plane](https://docs.langchain.com/langsmith/data-plane.md) listener, observability, evaluation, and agent deployment management. Best for teams that want the LangSmith product experience inside their own network.

> [card] [Hybrid](https://docs.langchain.com/langsmith/hybrid.md)
>
> LangChain-hosted control plane with the data plane (Agent Servers and databases) in your infrastructure. Best when you want managed deployment workflows but need agent workloads and customer data to stay inside your VPC.

> [card] [Standalone server](https://docs.langchain.com/langsmith/deploy-standalone-server.md)
>
> The lightest option—Agent Server containers (API + queue workers) with your own PostgreSQL and Redis. No control plane, no managed UI. Best for embedding the runtime into existing infrastructure or running air-gapped.

> [card] [Platform features](https://docs.langchain.com/langsmith/self-hosted-platform-features.md)
>
> Reference for self-hosted-only platform behavior: custom Postgres and Redis, listeners, and resource customization.

> [card] [Agent Server metrics](https://docs.langchain.com/langsmith/self-hosted-agent-server-metrics.md)
>
> Prometheus and Datadog export for Agent Server, including Agent Server UI metrics and internal metrics.

> [card] [Diagnostics](https://docs.langchain.com/langsmith/diagnostics-self-hosted.md)
>
> Collect logs, inspect state, and troubleshoot a self-hosted installation.

## Who manages what

Self-hosted shifts ownership of infrastructure operations from LangChain to your team, which provides flexibility and control over how you configure and operate is layer:

| | **Who manages it** | **Where it runs** |
| - | - | - |
| LangSmith platform (UI, APIs, datastores) | You | Your infrastructure |
| Agent Server runtime | You | Your infrastructure |
| PostgreSQL and Redis | You | Your infrastructure |
| CI/CD for your apps | You | Your CI environment |
| Upgrades, scaling, and backups | You | Your infrastructure |

In return, you can integrate with your own [Postgres](https://docs.langchain.com/langsmith/self-hosted-platform-features.md#custom-postgresql) and [Redis](https://docs.langchain.com/langsmith/self-hosted-platform-features.md#custom-redis), size [CPU and memory](https://docs.langchain.com/langsmith/self-hosted-platform-features.md#resource-customization) for your workload, and operate inside your existing network and observability stack. For the corresponding Cloud-managed model, see [Deploy to Cloud](https://docs.langchain.com/langsmith/deploy-to-cloud-overview.md).

## Next steps

> [card] [Pick a topology](https://docs.langchain.com/langsmith/deploy-standalone-server.md)
>
> Compare standalone server, full platform, and hybrid to find the right fit.

> [card] [Enable Agent Server hosting](https://docs.langchain.com/langsmith/enable-self-hosted-agent-server.md)
>
> Add a control plane and data plane to deploy and manage agents on self-hosted LangSmith.

***

[Connect these docs](https://docs.langchain.com/use-these-docs.md) to your agent of choice via MCP for real-time answers.

[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/deploy-to-self-hosted-overview.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
