Xpersona
D

deerflow-install-master

CLAWHUB · Unverified

DeerFlow 2.0 一键安装与配置技能。基于真实部署经验(2026-03-29),涵盖从下载仓库到成功运行的全流程,包括踩坑规避方案。 Use when: (1) 需要在 OpenClaw 环境安装 DeerFlow 2.0, (2) 需要快速排查安装问题, (3) 需要了解 DeerFlow 的最佳实践。 Skill: deerflow-install-master Owner: fangbb-coder Summary: DeerFlow 2.0 一键安装与配置技能。基于真实部署经验(2026-03-29),涵盖从下载仓库到成功运行的全流程,包括踩坑规避方案。 Use when: (1) 需要在 OpenClaw 环境安装 DeerFlow 2.0, (2) 需要快速排查安装问题, (3) 需要了解 DeerFlow 的最佳实践。 Tags: latest:1.0.0 Version history: v1.0.0 | 2026-03-29T13:37:44.112Z | user DeerFlow 2.0 一键安装与配置技能首发。适用于 OpenClaw 环境下从下载到运行的全流程自动化部署。 - 支持 Docker 推荐模式与本地 Python 安装(含 3.11 补丁指引) - 覆盖环境检查、依赖安装、配置写入、服务启动与

62
Rank
84
Safety
984
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 984 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1785c5d9savzszf3ahrfcv00183m3g0:deerflow-install-master
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-fangbb-coder-deerflow-install-master/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

9,324 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: deerflow-install
description: |
  DeerFlow 2.0 一键安装与配置技能。基于真实部署经验(2026-03-29),涵盖从下载仓库到成功运行的全流程,包括踩坑规避方案。
  Use when: (1) 需要在 OpenClaw 环境安装 DeerFlow 2.0, (2) 需要快速排查安装问题, (3) 需要了解 DeerFlow 的最佳实践。
author: 小飞侠 (基于 DeerFlow 部署经验)
homepage: https://github.com/bytedance/deer-flow
source: https://github.com/bytedance/deer-flow
version: "1.0.0"
---

# DeerFlow 安装技能

快速、可靠地在 OpenClaw 环境中安装和配置 DeerFlow 2.0 Super Agent。

## 快速开始

```bash
# 直接调用技能(示例)
skill: deerflow-install
参数: environment=openclaw, model=step-3.5-flash, proxy=http://your-proxy:port
```

或通过自然语言:
- "安装 DeerFlow"
- "部署 DeerFlow 2.0"
- "配置 DeerFlow 环境"

## 安装流程概览

1. **环境检查** → 验证 Docker/Python、端口占用、权限
2. **仓库获取** → 克隆 deer-flow 仓库或下载最新 release
3. **依赖安装** → 根据环境选择 Docker 模式或本地模式
4. **配置写入** → 设置 API Keys、模型、工具
5. **服务启动** → 启动 LangGraph + Gateway
6. **功能测试** → 验证聊天、搜索、文件操作
7. **文档输出** → 生成安装报告和故障排查指南

## 详细步骤

### 阶段 1:环境检查

```bash
# 检查 Python 版本(推荐 3.12+,3.11 需要补丁)
python3 --version  # 应 >= 3.11

# 检查 Docker 权限(Docker 模式需要)
groups $USER | grep docker  # 应在 docker 组

# 检查端口占用
netstat -tlnp | grep -E "2024|8091"
```

**常见问题**:
- ❌ Python 3.11 会触发 PEP 695 语法错误 → 应用补丁(见阶段 2)
- ❌ Docker permission denied → 将用户加入 docker 组:`sudo usermod -aG docker $USER`

### 阶段 2:获取 DeerFlow 仓库

```bash
cd /vol1/@apphome/trim.openclaw/data/workspace
git clone https://github.com/bytedance/deer-flow.git
cd deer-flow
```

如果网络慢,可以使用镜像或代理。

### 阶段 3:选择安装模式

#### 模式 A:Docker 模式(推荐)

```bash
make docker-init   # 首次拉取 sandbox 镜像
make docker-start  # 启动所有服务
```

**优点**:环境隔离,无 Python 版本问题。

#### 模式 B:本地 Python 模式(3.12+ 或 3.11+ 补丁)

如果使用 Python 3.11,**必须应用以下补丁**:

```bash
# 1. 修复 typing.override 和 TypedDict 导入
find backend/packages/harness/deerflow -name "*.py" -exec \
  sed -i 's/from typing import override/from typing_extensions import override/' {} \;
find backend/packages/harness/deerflow -name "*.py" -exec \
  sed -i 's/from typing import TypedDict/from typing_extensions import TypedDict/' {} \;

# 2. 修复 PEP 695 函数泛型(如果有)
# 手动修改 deerflow/reflection/resolvers.py 第 75 行:
# def resolve_variable[T] → def resolve_variable(T)
```

然后创建虚拟环境并安装依赖:

```bash
cd backend
python3 -m venv .venv
source .venv/bin/activate  # 或直接使用 .venv/bin/pip
pip install -U pip
pip install fastapi uvicorn httpx langchain langchain-openai \
  langgraph-cli[inmem] langgraph-checkpoint-sqlite tavily-python
```

### 阶段 4:配置文件设置

**1. 环境变量文件**(`.env`):

```env
OPENROUTER_API_KEY=your-key-here
TAVILY_API_KEY=your-key-here
INFOQUEST_API_KEY=your-key-here  # 可选备用
```

**2. 模型配置**(`config.yaml`):

确保模型 ID 正确:
```yaml
models:
  - name: step-3.5-flash
    model: stepfun/step-3.5-flash:free  # OpenRouter 免费模型
    api_key: $OPENROUTER_API_KEY
    base_url: https://openrouter.ai/api/v1
```

**3. 工具配置**(默认启用):

```yaml
tools:
  - name: web_search
    use: deerflow.community.tavily.tools:web_search_tool
    api_key: $TAVILY_API_KEY
  - name: ls
    use: deerflow.sandbox.tools:ls_tool
  - name: read_file
    use: deerflow.sandbox.tools:read_file_tool
  - 

_meta.json

{
  "ownerId": "kn7fmm7chcy80ppfeskcsdzzhh80qnnt",
  "slug": "deerflow-install-master",
  "version": "1.0.0",
  "publishedAt": 1774791464112
}

skill-card.md

## Description:

DeerFlow 2.0 installation and configuration guidance for OpenClaw environments, covering repository setup, dependency installation, configuration, service startup, validation, and troubleshooting.

This skill is ready for commercial/non-commercial use.

## Publisher:

[fangbb-coder](https://clawhub.ai/user/fangbb-coder)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineers use this skill to install, configure, run, and troubleshoot DeerFlow 2.0 in OpenClaw environments. It provides command guidance, configuration examples, startup checks, and common issue resolutions.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The workflow may run mutable third-party installation code and Make targets from the DeerFlow upstream repository.

Mitigation: Review the cloned repository first and pin the upstream commit or release before running installation commands.

Risk: Docker-level privileges, shell access, and file-write tools can broaden the impact of mistakes or compromised dependencies.

Mitigation: Use a dedicated low-privilege account or rootless Docker, restrict sandbox paths, and enable only the tools required for the deployment.

Risk: API keys are stored in environment configuration and services are started in the background.

Mitigation: Protect secret files, avoid committing credentials, document service stop and cleanup steps, and rotate keys if exposure is suspected.

## Reference(s):

- [ClawHub skill release page](https://clawhub.ai/fangbb-coder/skills/deerflow-install-master)
- [DeerFlow upstream project homepage](https://github.com/bytedance/deer-flow)

## Skill Output:

**Output Type(s):** [Guidance, Markdown, Shell commands, Configuration]

**Output Format:** [Markdown with inline bash, env, and YAML examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May include installation reports, troubleshooting checklists, API examples, and startup script guidance.]

## Skill Version(s):

1.0.0 (source: server release metadata and skill frontmatter)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to deerflow-install-master and adjacent AI workflows.