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.
This guide is for self-hosted LangSmith customers who have enabled LangSmith Deployment on their instance. For Cloud customers, see Deploy on Cloud. For standalone Agent Servers without a control plane, see Self-host standalone servers.
Overview
Applications deployed to a self-hosted LangSmith instance with a control plane use Docker images. In this guide, the application deployment workflow is:- Test your application locally using
langgraph devor Studio. - Build a Docker image using the
langgraph buildcommand. - Push the image to a container registry accessible by your infrastructure.
- Deploy from the control plane UI by specifying the image URL.
Prerequisites
Before completing this guide, you’ll need the following:- LangSmith Deployment enabled on your self-hosted LangSmith instance.
- Access to the LangSmith UI with LangSmith Deployment enabled.
- A container registry accessible by your Kubernetes cluster. If using a private registry that requires authentication, you must configure image pull secrets as part of your infrastructure setup. Refer to Private registry authentication.
Step 1. Test locally
Before deploying, test your application locally. You can use the LangGraph CLI to run an Agent server in development mode:Step 2. Build Docker image
Build a Docker image of your application using thelanggraph build command:
| Option | Default | Description |
|---|---|---|
-t, --tag TEXT | Required | Tag for the Docker image |
--platform TEXT | Target platform(s) to build for (e.g., linux/amd64,linux/arm64) | |
--pull / --no-pull | --pull | Build with latest remote Docker image |
-c, --config FILE | langgraph.json | Path to configuration file |
Step 3. Push to container registry
Push your image to a container registry accessible by your Kubernetes cluster. The specific commands depend on your registry provider.Step 4. Deploy with the control plane UI
The control plane UI allows you to create and manage deployments, view logs and metrics, and update configurations. To create a new deployment in the LangSmith UI:- In the left-hand navigation panel, select Deployments.
- In the top-right corner, select + New Deployment.
- In the deployment configuration panel, provide:
- Image URL: The full image URL you pushed in Step 3.
- Listener/Compute ID: Select the listener configured for your infrastructure.
- Namespace: The Kubernetes namespace to deploy to.
- Environment variables: Any required configuration (API keys, etc.).
- Other deployment settings as needed.
- Select Submit.
A LangSmith Observability tracing project is automatically created for each deployment with the same name as the deployment. Tracing environment variables are set automatically by the control plane.
Update deployment
To deploy a new version of your application, create a new revision: Starting from the LangSmith UI:- In the left-hand navigation panel, select Deployments.
- Select an existing deployment.
- In the Deployment view, select + New Revision in the top-right corner.
- Update the configuration:
- Update the Image URL to your new image version.
- Update environment variables if needed.
- Adjust other settings as needed.
- Select Submit.
Private registry authentication
If your container registry requires authentication (e.g., AWS ECR, Azure ACR, GCP Artifact Registry, private Docker registry), you must configure Kubernetes image pull secrets before deploying applications. This is a one-time infrastructure configuration.This configuration is done at the infrastructure level, not per-deployment. Once configured, all deployments automatically inherit the registry credentials.
imagePullSecrets in your LangSmith Helm chart’s values.yaml file. See the detailed steps in the Enable LangSmith Deployment guide.
For detailed steps on creating image pull secrets for different registry providers, refer to the Kubernetes documentation on pulling images from private registries.
Next steps
- Control plane: Learn more about control plane features.
- Data plane: Understand data plane architecture.
- Observability: Monitor your deployments with automatic tracing.
- Studio: Test and debug deployed applications.
- LangGraph CLI: Full CLI reference documentation.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

