npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

soulhubcli

v1.0.21

Published

SoulHub CLI - Install and manage AI agent persona templates for OpenClaw

Readme

SoulHub CLI

SoulHub CLI — 用于发现、安装和管理 AI Agent 灵魂(Soul)的命令行工具。支持从 SoulHub Registry 或本地目录安装单 Agent 和多 Agent 团队,兼容 OpenClaw 和 LightClaw。

安装

方式一:curl 一键安装(推荐)

无需安装 Node.js,自动下载对应平台的二进制文件:

curl -fsSL https://soulhub-1251783334.cos.ap-guangzhou.myqcloud.com/install.sh | bash

指定版本安装:

SOULHUB_VERSION=v1.0.1 curl -fsSL https://soulhub-1251783334.cos.ap-guangzhou.myqcloud.com/install.sh | bash

方式二:npm 安装

npm install -g soulhubcli

或使用 npx 直接运行:

npx soulhubcli <command>

命令一览

| 命令 | 说明 | |------|------| | soulhub search <keyword> | 搜索 Agent | | soulhub info <name> | 查看 Agent 详细信息(identity、soul、skills 等) | | soulhub install <name> | 从 Registry 安装 Agent 或团队(默认为 worker,安装到所有检测到的 claw) | | soulhub install <name> --main | 安装为主 Agent | | soulhub install --from <source> | 从本地目录、ZIP 文件或 URL 安装 | | soulhub list | 列出已安装的 Agent | | soulhub update [name] | 更新已安装的 Agent | | soulhub rollback | 回滚到上一次安装状态 |

使用方法

搜索 Agent

soulhub search python
soulhub search "content writing"

安装 Agent

CLI 会自动识别目标是单 Agent 还是多 Agent 团队,无需手动区分。

默认行为:安装为 Worker Agent,自动安装到所有检测到的 claw 目录。

从 Registry 安装:

# 安装单 Agent(默认为 worker,安装到所有检测到的 claw)
soulhub install writer-wechat

# 安装为主 Agent
soulhub install writer-wechat --main

# 安装多 Agent 团队(调度 Agent + 工作 Agent)
soulhub install dev-squad

从本地安装:

# 从本地目录安装(自动识别单/多 Agent)
soulhub install --from ./my-agent/

# 从 ZIP 文件安装
soulhub install --from ./agent-team.zip

# 从 URL 安装
soulhub install --from https://example.com/agent-team.zip

指定目标目录:

# 安装到自定义目录(不依赖 OpenClaw/LightClaw 环境)
soulhub install writer-wechat --dir ./my-agents

# 指定 claw 类型(只安装到该 claw)
soulhub install writer-wechat --clawtype LightClaw

列出已安装的 Agent

soulhub list

更新 Agent

soulhub update              # 更新全部
soulhub update ops-assistant # 更新指定 Agent

卸载 Agent

soulhub uninstall ops-assistant

安装行为说明

单 Agent 安装

  • 默认安装为 Worker Agent(子 agent),部署到 workspace-<agentId>/ 目录
  • 使用 --main 参数可安装为主 Agent,部署到 workspace/ 目录
  • 自动安装到所有检测到的 claw 目录(OpenClaw / LightClaw),使用 --clawtype 可指定单个 claw
  • 如果目标目录已存在,CLI 会自动备份(复制到 agentbackup/
  • 仅覆盖 IDENTITY.mdSOUL.md 等灵魂文件,不影响 workspace 中的其他运行时文件
  • 安装完成后自动重启 OpenClaw Gateway;若重启失败会提示手动重启

多 Agent 团队安装

  • 调度 Agent(Dispatcher) 作为主 Agent 安装到 workspace/ 目录
  • 工作 Agent(Worker) 安装到各自的 workspace-<agentId>/ 目录
  • 自动配置多 Agent 之间的通信
  • Worker Agent 自动注册到 claw 配置中
  • 安装完成后自动重启 OpenClaw Gateway

配置

CLI 将配置存储在 ~/.soulhub/config.json

自定义 Registry

通过环境变量设置自定义 Registry 地址:

export SOULHUB_REGISTRY_URL=https://your-registry.example.com

OpenClaw / LightClaw 目录

CLI 按以下优先级查找 claw 安装目录:

  1. --clawtype 命令行参数(指定时只安装到该 claw)
  2. OPENCLAW_HOME / LIGHTCLAW_HOME 环境变量
  3. 默认路径 ~/.openclaw~/.lightclaw

未指定 --clawtype 时,CLI 会检测所有可用的 claw 目录并全部安装。

环境要求

  • Node.js >= 18.0.0
  • OpenClaw 或 LightClaw(可选,使用 --dir 参数时不需要)

License

MIT