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

# 设置 LangSmith

本节介绍如何托管和管理 LangSmith 基础设施。您可以设置 LangSmith 用于[可观测性](/langsmith/observability)、[评估](/langsmith/evaluation)和[提示工程](/langsmith/prompt-engineering)，或者通过 [LangSmith 部署](/langsmith/deployment) 使用完整的平台体验，通过 UI 部署和管理您的应用程序。

<Callout icon="building" color="#2563EB" iconType="regular">
  **如果您正在设置或维护 LangSmith 基础设施，请从这里开始。**

  如果您想部署一个智能体应用程序，[部署部分](/langsmith/deployment) 涵盖了应用程序结构和部署配置。
</Callout>

## 选择如何设置 LangSmith

您可以通过以下三种模式之一部署 LangSmith：

* [**云端**](/langsmith/cloud)：完全由 LangChain 托管
* [**混合**](/langsmith/hybrid)：LangChain 管理 <Tooltip tip="用于管理部署的 LangSmith UI 和 API。">控制平面</Tooltip>；您托管 <Tooltip tip="您的 Agent Server 和智能体执行所在的运行时环境。">数据平面</Tooltip>
* [**自托管**](/langsmith/self-hosted)：您在自己的基础设施内管理完整堆栈

<Columns cols={3}>
  <Card title="云端" icon="cloud" iconType="solid" href="/langsmith/cloud" cta="开始使用">
    完全托管的可观测性、评估、提示工程和应用程序部署。从 GitHub 部署，具备自动化 CI/CD。
  </Card>

  <Card title="混合" icon="cloud" href="/langsmith/hybrid" cta="设置混合模式">
    **（企业版）** 可观测性、评估、提示工程和应用程序部署，您的应用程序在您的基础设施中运行。
  </Card>

  <Card title="自托管" icon="server" iconType="solid" href="/langsmith/self-hosted" cta="运行自托管">
    **（企业版）** 完全控制，具备可观测性、评估和提示工程。通过启用 LangSmith 部署获得完整的平台体验，或运行独立服务器。
  </Card>
</Columns>

### 对比

请参考下表进行对比：

| 功能                                          | **云端**       | **混合**                          | **自托管**               |
| ------------------------------------------- | ------------ | ------------------------------- | --------------------- |
| **基础设施位置**                                  | LangChain 云端 | 分离：控制平面在 LangChain 云端，数据平面在您的云端 | 您的云端                  |
| **谁管理更新**                                   | LangChain    | LangChain（控制平面），您（数据平面）         | 您                     |
| **谁管理您的应用程序的 CI/CD**                        | LangChain    | 您                               | 您                     |
| **可以部署应用程序吗？**                              | ✅ 是          | ✅ 是                             | ✅ 是（启用 LangSmith 部署后） |
| **可观测性数据位置**                                | LangChain 云端 | LangChain 云端                    | 您的云端                  |
| **[定价](https://www.langchain.com/pricing)** | Plus 层级      | 企业版                             | 企业版                   |
| **最适合**                                     | 快速设置，托管基础设施  | 数据驻留要求 + 托管控制平面                 | 完全控制，数据隔离             |

<Tip>
  您可以[免费在本地运行 Agent Server](/langsmith/local-dev-testing) 进行测试和开发。
</Tip>

### 相关链接

* [计划](https://langchain.com/pricing)
* [定价](https://www.langchain.com/pricing)
* [可观测性](/langsmith/observability)

***

<div className="source-links">
  <Callout icon="edit">
    [Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/i18n\zh-CN\langsmith\platform-setup.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>
