闲社服务运行正常AI智能体自动化平台
h

Hummingbot开发者

技能标识:hummingbot-developer

Developer skill for running Hummingbot and Gateway from source, building wheel and Docker images, and testing against Hummingbot API running from source. Use this skill when a developer wants to build, run, or test Hummingbot components locally.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

Hummingbot开发者

hummingbot-developer

用于从源码构建和运行完整 Hummingbot 堆栈的开发者工作流技能。

命令(以 /hummingbot-developer 形式运行):

命令描述
start检查开发环境状态
select-branches
为所有 3 个仓库选择分支 |
| install-all | 按顺序安装所有 3 个仓库 |
| build-all | 构建 wheel + 所有 Docker 镜像 |
| verify-build | 验证构建是否正确且同步 |
| run-dev-stack | 从源码启动完整堆栈 |
| setup-hummingbot | 从源码安装 Hummingbot |
| run-hummingbot | 从源码运行 Hummingbot CLI |
| build-hummingbot | 构建 wheel + Docker 镜像 |
| setup-gateway | 从源码安装 Gateway |
| run-gateway | 以开发模式运行 Gateway |
| build-gateway | 构建 Gateway Docker 镜像 |
| setup-api-dev | 将 API 连接到本地 Hummingbot 源码 |
| run-api-dev | 从源码运行 API,支持热重载 |
| test-integration | 对完整堆栈进行冒烟测试 |

典型开发工作流:

install-deps → select-branches → install-all → build-all → verify-build → run-dev-stack → test-integration

仓库位置(均在工作区中):

仓库路径
hummingbot~/.openclaw/workspace/hummingbot
gateway
~/.openclaw/workspace/hummingbot-gateway |
| hummingbot-api | ~/.openclaw/workspace/hummingbot-api |

可通过环境变量覆盖:HUMMINGBOTDIR、GATEWAYDIR、HUMMINGBOTAPIDIR 或 WORKSPACE。



命令:install-deps

自动安装所有缺失的开发依赖项。可安全重复运行——会跳过已安装的内容。

bash
bash scripts/install_deps.sh

安装项(仅在缺失时安装):

  • - Homebrew(macOS)
  • Xcode 命令行工具(macOS——Cython build_ext 所需)
  • Miniconda(conda)
  • Node.js v22(通过 nvm、Homebrew 或安装 nvm)
  • pnpm(通过 npm 或 Homebrew)
  • Git
  • Docker Desktop(macOS——通过 Homebrew cask 或打开下载页面)

选项:
bash
--check # 仅检查,不安装任何内容
--conda # 仅安装 conda
--node # 仅安装 node + nvm
--pnpm # 仅安装 pnpm

安装后,重新启动终端(或执行 source ~/.zshrc)以应用 PATH 更改,然后运行 check_env.sh 进行确认。



命令:select-branches

交互式地为每个仓库选择分支,检出并保存到 .dev-branches。

bash
bash scripts/select_branches.sh

非交互式选项:
bash

全部使用 development 分支


bash scripts/select_branches.sh --defaults

指定每个分支

bash scripts/select_branches.sh \ --hummingbot development \ --gateway core-2.7 \ --api development

分支选择结果保存到 $WORKSPACE/.dev-branches,并由 installall.sh、buildall.sh 和 verify_build.sh 自动加载。



命令:install-all

按正确顺序安装所有三个仓库。需要先执行 select-branches(或传递 --defaults)。

bash
bash scripts/install_all.sh

执行内容(按顺序):

  1. 1. 从 environment.yml 中移除 solders(仅 pip 安装)
  2. 在 hummingbot 中执行 make install → conda env hummingbot
  3. 将 pip install solders>=0.19.0 安装到 hummingbot 环境
  4. 为 gateway 执行 pnpm install && pnpm build && pnpm run setup:with-defaults
  5. 为 hummingbot-api 执行 conda env create
  6. 执行 pip install -e --no-deps → 将本地源码连接到 API 环境

选项:
bash
--skip-hbot # 跳过 hummingbot conda 安装
--skip-gateway # 跳过 gateway pnpm 安装
--skip-api # 跳过 hummingbot-api 安装
--no-local-hbot # 在 API 环境中使用 PyPI 上的 hummingbot 而非本地源码



命令:build-all

按正确顺序构建 hummingbot wheel 和所有 Docker 镜像。

bash
bash scripts/build_all.sh

构建顺序:

  1. 1. 通过 python setup.py bdist_wheel 构建 hummingbot wheel(dist/*.whl)
  2. 构建 hummingbot/hummingbot:dev Docker 镜像
  3. 构建 hummingbot/gateway:dev Docker 镜像(同时重建 dist/)
  4. 构建 hummingbot/hummingbot-api:dev Docker 镜像

每个镜像还会用分支名称打标签(例如 hummingbot/gateway:core-2.7)。

选项:
bash
--wheel-only # 仅构建 hummingbot wheel,不构建 Docker
--no-docker # 跳过所有 Docker 构建
--no-hbot # 跳过 hummingbot 构建
--no-gateway # 跳过 gateway 构建
--no-api # 跳过 hummingbot-api 构建
--tag # Docker 标签(默认:dev)



命令:verify-build

验证所有构建是否正确且同步。

bash
bash scripts/verify_build.sh

检查项:

  1. 1. 每个仓库都在预期的分支上(来自 .dev-branches)
  2. Hummingbot wheel 存在于 dist/ 中
  3. Gateway dist/ 已构建且相对于源码未过时
  4. 本地 hummingbot 源码在 hummingbot-api 环境中处于活动状态
  5. Docker 镜像存在且带有正确的分支标签
  6. 运行中的服务(API + Gateway)可访问
  7. API → Gateway 连接性

bash
bash scripts/verify_build.sh --no-docker # 跳过 Docker 检查
bash scripts/verify_build.sh --no-running # 跳过服务检查
bash scripts/verify_build.sh --json # JSON 输出



命令:run-dev-stack

从源码启动完整的开发堆栈。

bash
bash scripts/rundevstack.sh

启动顺序:

  1. 1. 通过 docker compose up emqx postgres -d 启动 Docker 基础设施(postgres + EMQX)
  2. 在后台从源码启动 Gateway(node dist/index.js --passphrase=hummingbot --dev)
  3. 在前台从源码启动 Hummingbot API(uvicorn main:app --reload)

选项:
bash
--no-gateway # 跳过 gateway 启动
--passphrase # gateway 密码短语(默认:hummingbot)
--stop # 停止所有内容
--status # 显示运行状态

日志:

  • - Gateway 日志:tail -f ~/.openclaw/workspace/.gateway.log
  • API 日志:打印到终端(前台)



命令:start

检查完整的开发环境并显示状态摘要。

步骤 1:运行环境检查

bash
bash scripts/check_env.sh --json

步骤 2:检查仓库分支

bash
bash scripts/check_repos.sh --json

步骤 3:检查运行中的服务

bash
bash scripts/check_api.sh --json
bash scripts/check_gateway.sh --json

步骤 4:显示状态清单

显示如下清单:

开发环境状态
======================
[x] 前提条件 — conda、node、pnpm、docker、git 正常
[x] Hummingbot 仓库 — 分支:development,环境:hummingbot(已安装)
[x] Gateway 仓库 — 分支:development,已构建:是
[x] Hummingbot API — 运行于 http://localhost:8000
[x] Gateway — 运行于 http://localhost:15888
[ ] 本地 hummingbot — hummingbot-api 未使用本地源码

下一步:运行 /hummingbot-developer setup-api-dev 将 API 连接到本地源码

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 hummingbot-developer-1776292948 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 hummingbot-developer-1776292948 技能

通过命令行安装

skillhub install hummingbot-developer-1776292948

下载

⬇ 下载 hummingbot-developer v1.0.0(免费)

文件大小: 30.06 KB | 发布时间: 2026-4-16 17:10

v1.0.0 最新 2026-4-16 17:10
Initial release of the hummingbot-developer skill for local development of the Hummingbot stack.

- Provides commands to install dependencies, select repo branches, build, verify, and run Hummingbot, Gateway, and API from source.
- Supports full-stack development workflow with commands for setup, CI builds, status checks, and smoke integration testing.
- Includes options for selective installation, build customization, and flexible environment/repo directory overrides.
- Each step is script-driven for reproducible setup and easy onboarding of new developers.
返回顶部