moltbot+dingding+deepseek组合windows安装
钉钉机器人配置与Clawdbot部署指南 本文档介绍了钉钉机器人注册流程和Clawdbot本地部署方法。主要内容包括:1)钉钉机器人注册获取Client ID和Secret;2)Clawdbot本地安装步骤;3)钉钉插件安装配置;4)DeepSeek模型集成方法。文档还提供了QQ聊天插件配置参考和常见问题提示,指出配置主要存储在.clawdbot文件夹中,建议以官网最新名称为准(Moltbot)。
钉钉机器人注册
注册企业应用内机器人url
iRobot
-
Client ID (原 AppKey 和 SuiteKey)
dingtxxxxxxxxxxx -
Client Secret (原 AppSecret 和 SuiteSecret)
zj3dtyyyyyyyyyyyyyyyyyyyyyyyyyE
安装clawdbot到本地
官网
iwr -useb https://molt.bot/install.ps1 | iex
在onboard模式下配置时,ai模型配置和通讯方式可以忽略或任选一个;
常用指令
clawdbot doctor
clawdbot gateway restart
安装dingding插件
安装
git clone https://gitee.com/henry_wu001/moltbot-dingtalk.git moltbot-dingtalk-stream
cd moltbot-dingtalk-stream
npm install && npm run build
cp -r . ~/.clawdbot/extensions/moltbot-dingtalk-stream
clawdbot gateway restart
也可以直接git clone到.clawdbot/extensions下安装依赖并编译;
配置.clawdbot/clawdbot.json
{
"channels": {
"moltbot-dingtalk-stream": {
"enabled": true,
"clientId": "YOUR_APP_KEY",
"clientSecret": "YOUR_APP_SECRET"
}
}
}
也可以配置qq聊天插件
https://www.cnblogs.com/runyuai/p/19547053
https://bot.q.qq.com/wiki
配置deepseek
用命令行添加
https://cloud.tencent.com/developer/article/2625144
clawdbot config set ‘models.providers.deepseek’ --json ‘{
“baseUrl”: “https://api.deepseek.com/v1”,
“apiKey”: “e42d886275684636e0328d5810f0d32e”,
“api”: “openai-completions”,
“models”: [
{ “id”: “deepseek-chat”, “name”: “DeepSeek Chat” },
{ “id”: “deepseek-reasoner”, “name”: “DeepSeek Reasoner” }
]
}’
没有成功,提示应该用object而非string.
直接修改参考
C:\Users\用户名 \ .clawdbot\clawdbot.json
"models": {
"providers": {
"deepseek": {
"baseUrl": "https://api.deepseek.com/v1",
"apiKey": "${DEEPSEEK_API_KEY}",
"api": "openai-completions",
"models": [
{
"id": "deepseek-chat",
"name": "DeepSeek V3",
"description": "Fast, cost-effective general assistant",
"reasoning": false,
"input": ["text"],
"cost": {
"input": 0.14,
"output": 0.28,
"cacheRead": 0.014,
"cacheWrite": 0.14
},
"contextWindow": 128000,
"maxTokens": 8192
},
{
"id": "deepseek-reasoner",
"name": "DeepSeek R1",
"description": "Advanced reasoning with chain-of-thought",
"reasoning": true,
"input": ["text"],
"cost": {
"input": 0.55,
"output": 2.19,
"cacheRead": 0.14,
"cacheWrite": 0.55
},
"contextWindow": 64000,
"maxTokens": 8192
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "deepseek/deepseek-chat",
"fallbacks": ["deepseek/deepseek-reasoner"]
},
"models": {
"deepseek/deepseek-chat": {
"alias": "ds"
},
"deepseek/deepseek-reasoner": {
"alias": "r1"
}
},
"workspace": "./workspace",
"compaction": {
"mode": "safeguard"
},
"maxConcurrent": 4,
"subagents": {
"maxConcurrent": 8
}
}
}
总结
clawdbot一个是配置文件夹.clawdbot,一个是工作文件夹clawd;大部分配置更新都在配置文件夹下的配置文件中。通讯方式通过插件方式安装,由于变更较快,很多地方已经改名为moltbot有些还是clawdbot,以官网为准。
更多推荐



所有评论(0)