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

@qingmiao-tech/openclaw-guard

v0.9.4

Published

Safer OpenClaw operations console with guided setup, backup & recovery, and security guardrails.

Readme

这是什么

OpenClaw Guard 是围绕 OpenClaw 构建的运维与安全控制台。它不追求把所有能力都堆在你面前,而是优先把三件事做扎实:

  • 先装得上:检查机器环境,安装或修复 OpenClaw,并拉起 Guard Web。
  • 再保得住:把记忆、角色、工作区和关键资产纳入备份与恢复视图。
  • 出问题能自救:提供安全预设、运行诊断、日志、修复和回退路径。

如果你不想在第一天就去理解 Git、Cron、OAuth、插件体系这些细节,Guard 的首页和工作台会先带你走最关键的主路径。

适合这些场景

  • 你刚接手一台机器,想先把 OpenClaw 跑起来,再逐步完成模型、渠道和保护设置。
  • 你希望在一个地方管理 OpenClaw、Gateway、模型、官方渠道、安全预设和恢复点。
  • 你担心“玩坏了就回不去”,希望在更新、试验或重构前先留下可恢复的检查点。

3 分钟上手

1. 安装并启动 Guard

npm install -g @qingmiao-tech/[email protected]
openclaw-guard init-machine --install-openclaw --start-web --port 18088

如果你更喜欢不落全局安装,也可以直接用 npx

npx -y @qingmiao-tech/[email protected] init-machine --install-openclaw --start-web --port 18088

如果你更希望固定到某个 GitHub Release 资产,也可以直接安装:

npm install -g https://github.com/qingmiao-tech/openclaw-guard/releases/download/v0.9.4/qingmiao-tech-openclaw-guard-0.9.4.tgz

当前公开安装方式、npm / npx 更新方式和版本线说明,见 版本与发布

2. 打开工作台

  • 主入口:http://127.0.0.1:18088/workbench
  • 根路径也会直接进入 Guard 工作台:http://127.0.0.1:18088/

3. 第一次登录先看初始化密码

  • 首次启动时,Guard 会在本机终端打印一条随机生成的初始化密码。
  • 如果你当时没来得及记下,可以在本机终端重新执行:
openclaw-guard auth show-password
  • 这个命令只会在本机 CLI 中显示密码,不会通过网页接口返回。
  • 如果你已经改过密码,请直接使用修改后的当前密码登录。

4. 跟着首页的 4 条主路径走

  • 安装 / 修复 OpenClaw
  • 配置模型
  • 连接渠道
  • 开启备份与恢复

首页会优先回答三个问题:

  • 现在能不能正常工作?
  • 下一步最建议先做什么?
  • 当前有没有风险或阻塞项?

首发版的核心能力

  • 带路首页:从“指标墙”改成“下一步做什么”的控制台入口。
  • OpenClaw 生命周期管理:安装、修复、更新、回退、卸载和状态诊断。
  • 备份与恢复:默认用“保存现在 / 回到某个恢复点 / 恢复后继续往前走”的产品语言呈现。
  • 安全中心:聚合安全检查、权限模式和主机加固建议。
  • 工作区工具:统一管理角色、文件、搜索和核心记忆资产。
  • 脱敏诊断包:适合贴到 GitHub Issue 或远程协助场景的支持信息导出。

支持平台矩阵

| 平台 | 状态 | 说明 | | --- | --- | --- | | Windows | Supported | 支持托管安装、后台启动脚本、工作台与诊断导出。 | | macOS | Supported | 支持脚本启动、工作台、安全建议与恢复流程。 | | Linux | Supported | 当前重点覆盖 Debian/Ubuntu、Fedora/RHEL、Arch 三类发行版。 |

常用入口

命令行

# 启动 Guard Web
openclaw-guard web --port 18088

# 查看 Guard Web 标准状态报告
openclaw-guard web-status --port 18088 --lang zh
openclaw-guard web-status --port 18088 --lang en --json

# 查看当前仍可回看的初始化密码
openclaw-guard auth status
openclaw-guard auth show-password

# 用 npm 全局更新到最新版
npm install -g @qingmiao-tech/openclaw-guard@latest

# 用 npx 直接运行最新版
npx -y @qingmiao-tech/openclaw-guard@latest web-status --port 18088 --lang zh

# 整机初始化(支持预演)
openclaw-guard init-machine --install-openclaw --start-web --port 18088 --dry-run --json

# OpenClaw 生命周期管理
openclaw-guard openclaw status
openclaw-guard openclaw update
openclaw-guard openclaw rollback --history-id <id>

一键脚本

便捷脚本都在 launchers/ 目录下:

  • Windows: launchers\start-web.bat / launchers\stop-web.bat / launchers\status-web.bat
  • macOS / Linux: bash ./launchers/start-web.sh
  • macOS 双击入口: launchers/start-web.command

文档

完整站点:https://qingmiao-tech.github.io/openclaw-guard/

诊断包与求助

当你准备提 Issue、寻求远程协助,或者只是想先留下当前现场时,优先导出脱敏诊断包:

  • 工作台首页可直接下载“诊断包”
  • 也可以访问:GET /api/support/diagnostics?download=1

诊断包会包含:

  • 版本与运行状态
  • Guard Web / Gateway / OpenClaw 状态
  • 备份与恢复概览
  • 最近日志与提醒
  • 安全检查摘要

诊断包不会直接包含:

  • API Key、Token、Secret、Cookie、密码原文
  • 本机用户名原文
  • 用户主目录等敏感路径原文

已知限制

  • “成本”能力目前仍是估算视图,不作为正式账单能力,也不会在主导航中突出展示。
  • 自定义渠道插件暂不作为公开首发能力,当前优先支持官方渠道与稳定的扩展预留。
  • 高级 Git 仍然保留给技术用户;普通用户默认只需要理解“保存现在”和“恢复到某个状态”。
  • Linux 初始化链路当前只覆盖主流发行版推荐路径,不承诺覆盖所有变种系统。

License

MIT