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

# 激活许可证

安装 Dify Enterprise 后，你需要激活许可证才能使用相关服务。

## 激活方式

* 在线激活(默认)
* 离线激活

## 在线激活

点击 Dify 企业版后台左侧目录的 License 栏，轻点右上角的激活按钮，激活类型选择 `Online`，输入 `License ID` 完成激活。

<Tip>
  请联系 Dify 商务团队以获取 `License ID`。
</Tip>

![](https://assets-docs.dify.ai/2025/04/767730970c14696c6eea2eb3b2289898.png)

## 离线激活

* 点击 Dify 企业版后台左侧目录的 License 栏，轻点右上角的激活按钮，激活类型选择 `Offline`。

  复制 `Cluster ID` 并发送至你的 Dify 商务团队以获取 `Offline Code`。

![](https://assets-docs.dify.ai/2024/11/3b5198ceff1db9bab8e614b7ef39e699.png)

* 在激活许可证之前，需要将 `values.yaml` 文件中的 `licenseMode` 值改为 `offline`。

  1. 显示 Helm Chart 配置

     ```
     helm show values dify/dify
     ```

  2. 将许可证模式设置为 `offline`

     ```yaml theme={null}
     enterprise:
         licenseMode: "offline"
     ```

修改完成后，回到 License 激活窗口，输入 `Offline Code` 完成激活。

![](https://assets-docs.dify.ai/2024/11/beac33066670e291dbafa1c71c2bf58c.png)
