> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-patchr-1773857969-df0cef9.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# LangSmith Deployment

> Deploy and manage agents with durable execution, real-time streaming, and horizontal scaling.

LangSmith Deployment is a workflow orchestration runtime purpose-built for agent workloads. It provides the managed infrastructure agents need to run reliably in production at scale, supporting the full lifecycle from local development to deployment. LangSmith Deployment is framework-agnostic: you can deploy agents built with LangGraph or [other frameworks](/langsmith/deploy-other-frameworks).

<Note>
  LangSmith Deployment requires a [Plus plan or above](https://www.langchain.com/pricing).
</Note>

<Callout icon="rocket" color="#4F46E5" iconType="regular">
  **Get started building in minutes with the [Cloud agent deployment quickstart](/langsmith/deployment-quickstart).**
</Callout>

<CardGroup cols={2}>
  <Card title="Agent Server" cta="Start exploring" href="/langsmith/assistants" icon="cpu">
    Agent Server's durable execution engine powers the core primitives: **assistants** to manage configurations, **threads** to persist state, and **runs** to execute workloads.
  </Card>

  <Card title="Core capabilities" cta="Start building" href="/langsmith/streaming" icon="bolt">
    Stream output to users, pause for human review, handle concurrent input, and connect agents via MCP and A2A—all available in Agent Server.
  </Card>

  <Card title="Tutorials" cta="Browse tutorials" href="/langsmith/agent-server-feedback" icon="book">
    Guided examples to build production-ready agents for your use case.
  </Card>

  <Card title="Advanced configuration" cta="Configure your server" href="/langsmith/auth" icon="lock">
    Authentication, encryption, custom routes, and short- and long-term memory stores.
  </Card>
</CardGroup>

## Agent deployment workflow

<Note>
  **Start here if you're building or operating agent applications.** This section is about deploying **your application**. If you need to set up LangSmith infrastructure, the [Platform setup section](/langsmith/platform-setup) covers infrastructure options.
</Note>

<CardGroup cols={2}>
  <Card title="1. Test locally" href="/langsmith/local-dev-testing" icon="terminal">
    Run your app on a local development server.
  </Card>

  <Card title="2. Configure" href="/langsmith/application-structure" icon="file-code">
    Set up dependencies, project structure, and environment config.
  </Card>

  <Card title="3. Choose hosting & deploy your agent" href="/langsmith/platform-setup" icon="rocket">
    Select Cloud, Hybrid, or Self-hosted, then deploy via git push, Docker image, or standalone server.
  </Card>

  <Card title="4. Monitor" href="/langsmith/observability" icon="chart-bar">
    Track traces, alerts, and dashboards.
  </Card>
</CardGroup>

## Capabilities

### Durable execution

At its core, LangSmith Deployment is a durable execution engine. Your agents run on a managed task queue with automatic checkpointing, so any run can be retried, replayed, or resumed from the exact point of interruption, not from scratch.

Because execution is durable, agents can do things that would be fragile or impossible in a stateless runtime:

* **Wait for external input.** An agent calls [`interrupt()`](/langsmith/add-human-in-the-loop) and the runtime checkpoints its state, frees resources, and waits for a human to approve a transaction, a reviewer to edit a draft, or another system to return results. When [`Command(resume=...)`](/langsmith/add-human-in-the-loop) arrives hours or days later, execution picks up exactly where it stopped. This is the primitive underneath [human-in-the-loop](/langsmith/add-human-in-the-loop) workflows and [time-travel debugging](/langsmith/human-in-the-loop-time-travel).
* **Run in the background.** [Background runs](/langsmith/background-run) execute without blocking the caller. The runtime manages the full lifecycle (queuing, execution, checkpointing, completion) while the client moves on.
* **Run on a schedule.** [Cron jobs](/langsmith/cron-jobs) trigger agent execution on a recurring cadence. A daily summary agent, a weekly report, a periodic data sync. The runtime starts a new execution on schedule with the same durability guarantees.
* **Handle concurrent input.** When a user sends new input while an agent is mid-run ([double-texting](/langsmith/double-texting)), the runtime can queue it, cancel the in-progress run, or process both in parallel without data races or corrupted state.
* **Retry on failure.** Configurable [retry policies](/oss/python/langgraph/use-graph-api#add-retry-policies) control backoff, max attempts, and which exceptions trigger retries on a per-node basis. Runs survive process restarts, infrastructure failures, and code revisions mid-execution.

For details on how containers, processes, and the task queue work together, see [Agent Server: Runtime architecture](/langsmith/agent-server#runtime-architecture). For scaling and throughput tuning, see [Configure Agent Server for scale](/langsmith/agent-server-scale).

### Streaming

Agents need to show their work in real time. The runtime provides [resumable streaming](/langsmith/streaming). If a client disconnects mid-stream (network switch, tab sleep, mobile backgrounding), it reconnects and picks up where it left off. Multiple [streaming modes](/langsmith/streaming) give you control over granularity, from full state snapshots after each step to token-by-token LLM output as it arrives from the provider.

### Studio

[Studio](/langsmith/studio) connects to any Agent Server (local or deployed) and gives you an interactive environment for developing and debugging agents. Visualize execution graphs, inspect state at any checkpoint, step through runs, modify state mid-execution, and branch to explore alternative paths.

### Agent composition

Agents don't run in isolation. [RemoteGraph](/langsmith/use-remote-graph) lets any agent call other deployed agents using the same interface you use locally: a research agent delegates to a search agent on a different deployment, a routing agent dispatches to specialized sub-agents. The agents don't need to know whether they're calling something local or remote.

Native support for [MCP](/langsmith/server-mcp) and [A2A](/langsmith/server-a2a) means your deployed agents can expose and consume tool interfaces and agent-to-agent protocols alongside the broader ecosystem.

### Deployment options

* **[Cloud](/langsmith/deploy-to-cloud)**: Fully managed. Push from a git repo or use [`langgraph deploy`](/langsmith/cli#deploy).
* **[Hybrid](/langsmith/deploy-with-control-plane)**: Runs in your cloud, managed by the LangSmith [control plane](/langsmith/control-plane).
* **[Self-hosted](/langsmith/self-hosted)**: Fully self-managed in your own infrastructure.

Same runtime, same APIs. What changes is who manages the infrastructure. For a comparison, refer to [Platform setup](/langsmith/platform-setup).

### Reference & operations

#### Securing and customizing your server

* [Custom auth](/langsmith/auth): Authentication and multi-tenant access control
* [Server customization](/langsmith/custom-routes): Custom routes, [middleware](/langsmith/custom-middleware), [lifespan hooks](/langsmith/custom-lifespan), [encryption](/langsmith/encryption)

#### Operations

* [CI/CD pipelines](/langsmith/cicd-pipeline-example)
* [TTL configuration](/langsmith/configure-ttl) for state and thread management
* [Semantic search](/langsmith/semantic-search)

#### Reference

* [Agent Server](/langsmith/agent-server): Runtime architecture reference

***

<div className="source-links">
  <Callout icon="edit">
    [Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/langsmith/deployment.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
  </Callout>

  <Callout icon="terminal-2">
    [Connect these docs](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
  </Callout>
</div>
