# OpenClaw
# DeepSeek
# DeepSeek V4
# 大模型配置
# API Key
# 保姆级教程
# 入门
教程简介
DeepSeek V4 已正式发布,作为目前性能最强劲的国产大语言模型之一,它在代码生成、逻辑推理和长文本理解等方面均表现出色。本教程将手把手带你完成 DeepSeek V4 接入龙虾(OpenClaw)的全流程配置,即便你是第一次接触 AI 工具配置,也能顺利完成。
## DeepSeek V4 接入龙虾(OpenClaw)保姆级配置教程
DeepSeek V4 已正式发布,作为目前性能最强劲的国产大语言模型之一,它在代码生成、逻辑推理和长文本理解等方面均表现出色。本教程将手把手带你完成 DeepSeek V4 接入龙虾(OpenClaw)的全流程配置,即便你是第一次接触 AI 工具配置,也能顺利完成。
---
## 教程目录
**第一部分:获取 API Key**
1. 步骤一:登录 DeepSeek 开放平台
2. 步骤二:创建 API Key
3. 关键参数速查
**第二部分:OpenClaw 配置文件**
4. 找到 OpenClaw 配置文件
**第三部分:修改龙虾配置**
5. 备份原文件
6. 替换配置文件(适用于全新安装)
7. 替换核心参数
**第四部分:测试效果**
8. 测试效果
1
步骤一:登录 DeepSeek 开放平台
2
步骤二:创建 API Key
3
步骤三:关键参数速查
4
步骤四:找到 OpenClaw 配置文件
代码示例
openclaw setup
5
步骤五:备份原文件
6
步骤六:替换配置文件(适用于全新安装)
代码示例
{
"models": {
"mode": "merge",
"providers": {
"custom-001": {
"baseUrl": "https://api.deepseek.com/v1",
"apiKey": "sk-xxxxxx",
"api": "openai-completions",
"models": [
{
"id": "deepseek-v4-pro",
"name": "deepseek-v4-pro (Custom Provider)",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
}
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "custom-001/deepseek-v4-pro"
},
"models": {
"custom-001/deepseek-v4-pro": {}
},
"workspace": "C:\\Users\\Administrator\\.openclaw\\workspace",
"contextPruning": {
"mode": "cache-ttl",
"ttl": "1h"
},
"compaction": {
"mode": "safeguard"
},
"heartbeat": {
"every": "30m"
}
}
},
"tools": {
"profile": "coding",
"web": {
"search": {
"enabled": true,
"provider": "gemini",
"gemini": {
"apiKey": "sk-xxxxxxxxxx"
}
}
}
},
"commands": {
"native": "auto",
"nativeSkills": "auto",
"restart": true,
"ownerDisplay": "raw"
},
"session": {
"dmScope": "per-channel-peer"
},
"hooks": {
"internal": {
"enabled": true,
"entries": {
"boot-md": {
"enabled": true
},
"bootstrap-extra-files": {
"enabled": true
},
"command-logger": {
"enabled": true
},
"session-memory": {
"enabled": true
}
}
}
},
"gateway": {
"port": 18789,
"mode": "local",
"bind": "loopback",
"controlUi": {
"allowedOrigins": [
"http://localhost:18789"
]
},
"auth": {
"mode": "token",
"token": ""
},
"tailscale": {
"mode": "off",
"resetOnExit": false
},
"nodes": {
"denyCommands": [
"camera.snap",
"camera.clip",
"screen.record",
"contacts.add",
"calendar.add",
"reminders.add",
"sms.send"
]
}
},
"skills": {
"install": {
"nodeManager": "npm"
},
"entries": {
"goplaces": {
"apiKey": "sk-xxxxxxxxxxxxxx"
},
"nano-banana-pro": {
"apiKey": "sk-xxxxxxxxxxxxxxxxxxxxx"
},
"notion": {
"apiKey": "sk-xxxxxxxxxxxxxxxxxxxx"
},
"openai-image-gen": {
"apiKey": "sk-xxxxxxxxxxxxxxxxxxxxx"
},
"openai-whisper-api": {
"apiKey": "sk-xxxxxxxxxxxxxxxxxxxx"
},
"sag": {
"apiKey": "sk-xxxxxxxxxxxxxxxxxxxxx"
}
}
}
}
7
步骤七:替换核心参数
8
步骤八:测试效果
返回教程列表
觉得有用?分享给更多朋友吧