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

# 企業部署概述

> 了解 Claude Code 如何與各種第三方服務和基礎設施整合，以滿足企業部署需求。

export const ContactSalesCard = ({surface}) => {
  const utm = content => `utm_source=claude_code&utm_medium=docs&utm_content=${surface}_${content}`;
  const iconArrowRight = (size = 13) => <svg width={size} height={size} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
      <line x1="5" y1="12" x2="19" y2="12" />
      <polyline points="12 5 19 12 12 19" />
    </svg>;
  const STYLES = `
.cc-cs {
  --cs-slate: #141413;
  --cs-clay: #d97757;
  --cs-clay-deep: #c6613f;
  --cs-gray-000: #ffffff;
  --cs-gray-700: #3d3d3a;
  --cs-border-default: rgba(31, 30, 29, 0.15);
  font-family: inherit;
}
.dark .cc-cs {
  --cs-slate: #f0eee6;
  --cs-gray-000: #262624;
  --cs-gray-700: #bfbdb4;
  --cs-border-default: rgba(240, 238, 230, 0.14);
}
.cc-cs-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 16px; margin: 0;
  background: var(--cs-gray-000); border: 0.5px solid var(--cs-border-default);
  border-radius: 8px; flex-wrap: wrap;
}
.cc-cs-text { font-size: 13px; color: var(--cs-gray-700); line-height: 1.5; flex: 1; min-width: 240px; }
.cc-cs-text strong { font-weight: 550; color: var(--cs-slate); }
.cc-cs-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cc-cs-btn-clay {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cs-clay-deep); color: #fff; border: none;
  border-radius: 8px; padding: 8px 14px;
  font-size: 13px; font-weight: 500;
  transition: background-color 0.15s; white-space: nowrap;
}
.cc-cs-btn-clay:hover { background: var(--cs-clay); }
.cc-cs-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--cs-gray-700);
  border: 0.5px solid var(--cs-border-default);
  border-radius: 8px; padding: 8px 14px;
  font-size: 13px; font-weight: 500;
}
.cc-cs-btn-ghost:hover { background: rgba(0, 0, 0, 0.04); }
.dark .cc-cs-btn-ghost:hover { background: rgba(255, 255, 255, 0.04); }
@media (max-width: 720px) {
  .cc-cs-actions { width: 100%; }
}
`;
  return <div className="cc-cs not-prose">
      <style>{STYLES}</style>
      <div className="cc-cs-card">
        <div className="cc-cs-text">
          <strong>Deploying Claude Code across your organization?</strong> Talk to sales about enterprise plans, SSO, and centralized billing.
        </div>
        <div className="cc-cs-actions">
          <a href={`https://claude.com/pricing?${utm('view_plans')}#plans-business`} className="cc-cs-btn-ghost">
            View plans
          </a>
          <a href={`https://claude.com/contact-sales?${utm('contact_sales')}`} className="cc-cs-btn-clay">
            Contact sales {iconArrowRight()}
          </a>
        </div>
      </div>
    </div>;
};

組織可以直接通過 Anthropic 或通過雲端提供商部署 Claude Code。本頁面幫助您選擇正確的配置。

<ContactSalesCard surface="third_party_overview" />

<h2 id="compare-deployment-options">
  比較部署選項
</h2>

對於大多數組織，Claude for Teams 或 Claude for Enterprise 提供最佳體驗。團隊成員可以通過單一訂閱同時存取 Claude Code 和網頁版 Claude，具有集中計費和無需基礎設施設置的優勢。

**Claude for Teams** 是自助服務，包括協作功能、管理工具和計費管理。最適合需要快速開始的較小團隊。

**Claude for Enterprise** 增加了 SSO 和域名捕獲、基於角色的權限、合規性 API 存取和託管策略設置，用於部署組織範圍的 Claude Code 配置。最適合具有安全和合規性要求的大型組織。

了解更多關於 [Team 計劃](https://support.claude.com/en/articles/9266767-what-is-the-team-plan) 和 [Enterprise 計劃](https://support.claude.com/en/articles/9797531-what-is-the-enterprise-plan)。

如果您的組織有特定的基礎設施要求，請比較以下選項：

<table>
  <thead>
    <tr>
      <th>功能</th>
      <th>Claude for Teams/Enterprise</th>
      <th>Anthropic Console</th>
      <th>Amazon Bedrock</th>
      <th>Claude Platform on AWS</th>
      <th>Google Vertex AI</th>
      <th>Microsoft Foundry</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>最適合</td>
      <td>大多數組織（推薦）</td>
      <td>個人開發者</td>
      <td>AWS 原生部署</td>
      <td>AWS Marketplace 計費搭配 Claude API 功能</td>
      <td>GCP 原生部署</td>
      <td>Azure 原生部署</td>
    </tr>

    <tr>
      <td>計費</td>
      <td><strong>Teams：</strong> \$150/座位（Premium）提供 PAYG<br /><strong>Enterprise：</strong> <a href="https://claude.com/contact-sales?utm_source=claude_code&utm_medium=docs&utm_content=third_party_enterprise">聯絡銷售</a></td>
      <td>PAYG</td>
      <td>通過 AWS 的 PAYG</td>
      <td>通過 AWS Marketplace 的 PAYG</td>
      <td>通過 GCP 的 PAYG</td>
      <td>通過 Azure 的 PAYG</td>
    </tr>

    <tr>
      <td>地區</td>
      <td>支援的 [國家/地區](https://www.anthropic.com/supported-countries)</td>
      <td>支援的 [國家/地區](https://www.anthropic.com/supported-countries)</td>
      <td>多個 AWS [地區](https://docs.aws.amazon.com/bedrock/latest/userguide/models-regions.html)</td>
      <td>多個 AWS 地區</td>
      <td>多個 GCP [地區](https://cloud.google.com/vertex-ai/generative-ai/docs/learn/locations)</td>
      <td>多個 Azure [地區](https://azure.microsoft.com/en-us/explore/global-infrastructure/products-by-region/)</td>
    </tr>

    <tr>
      <td>Prompt caching</td>
      <td>預設啟用</td>
      <td>預設啟用</td>
      <td>預設啟用</td>
      <td>預設啟用</td>
      <td>預設啟用</td>
      <td>預設啟用</td>
    </tr>

    <tr>
      <td>身份驗證</td>
      <td>Claude.ai SSO 或電子郵件</td>
      <td>API 金鑰</td>
      <td>API 金鑰或 AWS 認證</td>
      <td>API 金鑰或 AWS 認證</td>
      <td>GCP 認證</td>
      <td>API 金鑰或 Microsoft Entra ID</td>
    </tr>

    <tr>
      <td>成本追蹤</td>
      <td>使用儀表板</td>
      <td>使用儀表板</td>
      <td>AWS Cost Explorer</td>
      <td>AWS Cost Explorer</td>
      <td>GCP Billing</td>
      <td>Azure Cost Management</td>
    </tr>

    <tr>
      <td>包括網頁版 Claude</td>
      <td>是</td>
      <td>否</td>
      <td>否</td>
      <td>否</td>
      <td>否</td>
      <td>否</td>
    </tr>

    <tr>
      <td>企業功能</td>
      <td>團隊管理、SSO、使用監控</td>
      <td>無</td>
      <td>IAM 策略、CloudTrail</td>
      <td>IAM 策略、CloudTrail</td>
      <td>IAM 角色、Cloud Audit Logs</td>
      <td>RBAC 策略、Azure Monitor</td>
    </tr>
  </tbody>
</table>

如需了解每個選項上可用功能的逐項細目，請參閱 [功能可用性](/zh-TW/feature-availability)。

選擇部署選項以查看設置說明：

* [Claude for Teams 或 Enterprise](/zh-TW/authentication#claude-for-teams-or-enterprise)
* [Anthropic Console](/zh-TW/authentication#claude-console-authentication)
* [Claude 應用程式閘道](/zh-TW/claude-apps-gateway)，一個自託管閘道，在 Amazon Bedrock、Google Vertex AI、Microsoft Foundry 或 Anthropic API 前面添加 IdP 登入
* [Amazon Bedrock](/zh-TW/amazon-bedrock)
* [Claude Platform on AWS](/zh-TW/claude-platform-on-aws)
* [Google Vertex AI](/zh-TW/google-vertex-ai)
* [Microsoft Foundry](/zh-TW/microsoft-foundry)

<h2 id="configure-proxies-and-gateways">
  配置代理和網關
</h2>

大多數組織可以直接使用雲端提供商，無需額外配置。但是，如果您的組織有特定的網路或管理要求，您可能需要配置公司代理或 LLM 網關。這些是可以一起使用的不同配置：

* **公司代理**：通過 HTTP/HTTPS 代理路由流量。如果您的組織要求所有出站流量都通過代理伺服器以進行安全監控、合規性或網路策略執行，請使用此選項。使用 `HTTPS_PROXY` 或 `HTTP_PROXY` 環境變數進行配置。在 [企業網路配置](/zh-TW/network-config) 中了解更多。
* **LLM 網關**：位於 Claude Code 和雲端提供商之間的服務，用於處理身份驗證和路由。如果您需要跨團隊的集中使用追蹤、自訂速率限制或預算，或集中身份驗證管理，請使用此選項。使用 `ANTHROPIC_BASE_URL`、`ANTHROPIC_BEDROCK_BASE_URL`、`ANTHROPIC_AWS_BASE_URL` 或 `ANTHROPIC_VERTEX_BASE_URL` 環境變數進行配置。在 [LLM 網關](/zh-TW/llm-gateway) 中了解更多。

以下示例顯示在您的 shell 或 shell 配置文件（`.bashrc`、`.zshrc`）中設置的環境變數。有關其他配置方法，請參閱 [設置](/zh-TW/settings)。

<h3 id="amazon-bedrock">
  Amazon Bedrock
</h3>

<Tabs>
  <Tab title="公司代理">
    通過設置以下 [環境變數](/zh-TW/env-vars) 將 Bedrock 流量路由通過您的公司代理：

    ```bash theme={null}
    # 啟用 Bedrock
    export CLAUDE_CODE_USE_BEDROCK=1
    export AWS_REGION=us-east-1

    # 配置公司代理
    export HTTPS_PROXY='https://proxy.example.com:8080'
    ```
  </Tab>

  <Tab title="LLM 網關">
    通過設置以下 [環境變數](/zh-TW/env-vars) 將 Bedrock 流量路由通過您的 LLM 網關：

    ```bash theme={null}
    # 啟用 Bedrock
    export CLAUDE_CODE_USE_BEDROCK=1

    # 配置 LLM 網關
    export ANTHROPIC_BEDROCK_BASE_URL='https://your-llm-gateway.com/bedrock'
    export CLAUDE_CODE_SKIP_BEDROCK_AUTH=1  # 如果網關處理 AWS 身份驗證
    ```
  </Tab>
</Tabs>

<h3 id="microsoft-foundry">
  Microsoft Foundry
</h3>

<Tabs>
  <Tab title="公司代理">
    通過設置以下 [環境變數](/zh-TW/env-vars) 將 Foundry 流量路由通過您的公司代理：

    ```bash theme={null}
    # 啟用 Microsoft Foundry
    export CLAUDE_CODE_USE_FOUNDRY=1
    export ANTHROPIC_FOUNDRY_RESOURCE=your-resource
    export ANTHROPIC_FOUNDRY_API_KEY=your-api-key  # 或省略以進行 Entra ID 身份驗證

    # 配置公司代理
    export HTTPS_PROXY='https://proxy.example.com:8080'
    ```
  </Tab>

  <Tab title="LLM 網關">
    通過設置以下 [環境變數](/zh-TW/env-vars) 將 Foundry 流量路由通過您的 LLM 網關：

    ```bash theme={null}
    # 啟用 Microsoft Foundry
    export CLAUDE_CODE_USE_FOUNDRY=1

    # 配置 LLM 網關
    export ANTHROPIC_FOUNDRY_BASE_URL='https://your-llm-gateway.com'
    export ANTHROPIC_FOUNDRY_API_KEY=your-gateway-key  # 作為 x-api-key 發送
    ```
  </Tab>
</Tabs>

<h3 id="google-vertex-ai">
  Google Vertex AI
</h3>

<Tabs>
  <Tab title="公司代理">
    通過設置以下 [環境變數](/zh-TW/env-vars) 將 Vertex AI 流量路由通過您的公司代理：

    ```bash theme={null}
    # 啟用 Vertex
    export CLAUDE_CODE_USE_VERTEX=1
    export CLOUD_ML_REGION=us-east5
    export ANTHROPIC_VERTEX_PROJECT_ID=your-project-id

    # 配置公司代理
    export HTTPS_PROXY='https://proxy.example.com:8080'
    ```
  </Tab>

  <Tab title="LLM 網關">
    通過設置以下 [環境變數](/zh-TW/env-vars) 將 Vertex AI 流量路由通過您的 LLM 網關：

    ```bash theme={null}
    # 啟用 Vertex
    export CLAUDE_CODE_USE_VERTEX=1

    # 配置 LLM 網關
    export ANTHROPIC_VERTEX_BASE_URL='https://your-llm-gateway.com/vertex'
    export CLAUDE_CODE_SKIP_VERTEX_AUTH=1  # 如果網關處理 GCP 身份驗證
    export ANTHROPIC_VERTEX_PROJECT_ID=your-gcp-project-id
    export CLOUD_ML_REGION=us-east5
    ```
  </Tab>
</Tabs>

<Tip>
  在 Claude Code 中使用 `/status` 驗證您的代理和網關配置是否正確應用。
</Tip>

<h2 id="best-practices-for-organizations">
  組織的最佳實踐
</h2>

<h3 id="invest-in-documentation-and-memory">
  投資於文件和記憶
</h3>

我們強烈建議投資於文件，以便 Claude Code 理解您的程式碼庫。組織可以在多個級別部署 CLAUDE.md 文件：

* **組織範圍**：部署到系統目錄，如 `/Library/Application Support/ClaudeCode/CLAUDE.md`（macOS），用於公司範圍的標準
* **存儲庫級別**：在存儲庫根目錄中建立 `CLAUDE.md` 文件，包含項目架構、構建命令和貢獻指南。將這些檢入源代碼控制，以便所有用戶受益

在 [記憶和 CLAUDE.md 文件](/zh-TW/memory) 中了解更多。

<h3 id="simplify-deployment">
  簡化部署
</h3>

如果您有自訂開發環境，我們發現創建一個「一鍵」安裝 Claude Code 的方式是在組織中增加採用率的關鍵。

<h3 id="start-with-guided-usage">
  從引導式使用開始
</h3>

鼓勵新用戶嘗試使用 Claude Code 進行程式碼庫問答，或在較小的錯誤修復或功能請求上使用。要求 Claude Code 制定計劃。檢查 Claude 的建議，如果偏離軌道，請提供反饋。隨著時間的推移，當用戶更好地理解這種新範式時，他們將更有效地讓 Claude Code 更自主地運行。

<h3 id="pin-model-versions-for-cloud-providers">
  為雲端提供商固定模型版本
</h3>

如果您通過 [Bedrock](/zh-TW/amazon-bedrock)、[Vertex AI](/zh-TW/google-vertex-ai)、[Foundry](/zh-TW/microsoft-foundry) 或 [Claude Platform on AWS](/zh-TW/claude-platform-on-aws) 部署，請使用 `ANTHROPIC_DEFAULT_FABLE_MODEL`、`ANTHROPIC_DEFAULT_OPUS_MODEL`、`ANTHROPIC_DEFAULT_SONNET_MODEL` 和 `ANTHROPIC_DEFAULT_HAIKU_MODEL` 固定特定模型版本。如果不固定，模型別名會解析為 Claude Code 針對該提供商的內建預設值，這可能會落後於最新版本，且可能尚未在您的帳戶中啟用。固定讓您控制用戶何時移至新模型。有關每個提供商在預設值不可用時的操作，請參閱 [模型配置](/zh-TW/model-config#pin-models-for-third-party-deployments)。

<h3 id="configure-security-policies">
  配置安全策略
</h3>

安全團隊可以配置託管權限，以定義 Claude Code 允許和不允許執行的操作，這些操作無法被本地配置覆蓋。[了解更多](/zh-TW/security)。

<h3 id="leverage-mcp-for-integrations">
  利用 MCP 進行整合
</h3>

MCP 是為 Claude Code 提供更多信息的絕佳方式，例如連接到票證管理系統或錯誤日誌。我們建議一個中央團隊配置 MCP servers 並將 `.mcp.json` 配置檢入程式碼庫，以便所有用戶受益。[了解更多](/zh-TW/mcp)。

在 Anthropic，我們信任 Claude Code 在每個 Anthropic 程式碼庫中推動開發。我們希望您享受使用 Claude Code 就像我們一樣。

<h2 id="next-steps">
  後續步驟
</h2>

選擇部署選項並為您的團隊配置存取權限後：

1. **向您的團隊推出**：分享安裝說明，並讓團隊成員 [安裝 Claude Code](/zh-TW/setup) 並使用其認證進行身份驗證。
2. **設置共享配置**：在您的存儲庫中建立 [CLAUDE.md 文件](/zh-TW/memory)，以幫助 Claude Code 理解您的程式碼庫和編碼標準。
3. **配置權限**：查看 [安全設置](/zh-TW/security)，以定義 Claude Code 在您的環境中可以和不能執行的操作。
