> For the complete documentation index, see [llms.txt](https://doc.duaer.com/zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/zh/integrations/builtin/credentials/moonshot.md).

# 在 Duaer 里配置 Moonshot 凭证

在 Duaer 中保存 Moonshot 的连接信息，供工作流程节点在运行时使用。密钥经实例加密密钥保护，不会写进节点参数。
## 获取 Moonshot API 密钥 <a href="#get-an-api-key" id="get-an-api-key"></a>

Duaer 的 Moonshot 凭证要 API 密钥和对应的 Region：

1. 在 Moonshot 开放平台创建 API 密钥：中国站 [platform.moonshot.cn](https://platform.moonshot.cn)，国际站 [platform.moonshot.ai](https://platform.moonshot.ai)。密钥通常只显示一次。
2. 在 Duaer 里新建凭证，把密钥粘到 API Key。
3. Region 选签发密钥的那个站：中国站选 China，国际站选 International。选错时连接测试会报认证失败。

## Duaer 里的 Moonshot 字段 <a href="#moonshot" id="moonshot"></a>

在 Duaer 里新建 Moonshot 凭证，填写这些字段：

- API Key（必填，密钥）
- Region：默认 International，可选 International、China。

保存时，Duaer 会用这些值测试一次连接。

使用它的 Duaer 节点：[Moonshot Kimi](/zh/integrations/builtin/app-nodes/n8n-nodes-langchain.moonshot.md)、[Moonshot Kimi Chat Model](/zh/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatmoonshot.md)。

## 在 Duaer 里保存连接

打开 Credentials，创建 Moonshot。按字段填写密钥、OAuth 或服务器地址。保存后，工作流程节点引用这份凭证，而不是把密钥写进参数。

凭证内容经实例的加密密钥保护。换密钥或弄丢密钥后，已存凭证会解不开，见托管文档里的加密密钥说明。对应节点见 [相关节点](/zh/integrations/builtin/app-nodes/n8n-nodes-langchain.moonshot.md)。

## 谁能用这份凭证

能否看到或编辑，取决于项目和角色。不要把密钥贴进聊天或变量。外部密钥库见外部密钥文档。
## Questions

### Duaer 的 Moonshot 凭证密钥会出现在节点参数里吗？

不会。在 Duaer 里，Moonshot 的密钥保存在凭证中，节点只引用凭证。执行记录也不应出现明文密钥。

### 在 Duaer 里 Moonshot 凭证保存失败常见原因是什么？

字段填错、OAuth 回调地址与实例 URL 不一致，或当前角色不能创建凭证。先核对 Moonshot 服务商要求的字段，再确认你在该项目里有权新建凭证。

