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

f-ck-openclaw-safe

v1.1.0

Published

Unleash every hidden limit in OpenClaw. Remove all artificial restrictions safely.

Readme

FUCK-OPENCLAW-SAFE

移除 OpenClaw 中所有人为限制。一行命令。完全可逆。

English


数据说话:为什么 OpenClaw 越更新越弱

我们拉取了从 v2026.1.5 到 v2026.3.24 的每一个正式版本源码,做了完整的能力回归分析。

能力巅峰版本:v2026.2.9。 之后的每个版本,限制增长速度都超过了功能增长。

能力评分(越高 = 越自由)

  303 |                    ★ v2026.2.9(巅峰)
  290 |              *  *        *
  257 |                                  * v2026.2.22(断崖)
  224 |                                        *
  212 |                                           * *(当前)
      +----+----+----+----+----+----+----+----+----+
       1.5  1.15 1.29 2.1  2.9  2.13 2.19 3.2  3.24

| 指标 | v2026.2.9(巅峰) | v2026.3.24(当前) | 变化 | |------|-------------------|-------------------|------| | 源码文件 | 1,662 | 3,053 | +84% | | 工具数 | 50 | 76 | +52% | | 安全限制文件 | 116 | 303 | +161% | | 环境变量黑名单文件 | 1 | 9 | +800% | | 认证限制点 | 10 | 42 | +320% | | 子 Agent 被禁工具 | 6 个 | 14 个 | +133% | | Spawn 深度 | 无限制 | 1 层 | 锁死 | | MAX_RUN_RETRY | 无限制 | 160 | 锁死 | | soul-evil hook | 存在 | 删除 | - | | food-order 技能 | 存在 | 删除 | - |

功能增长了 52%,安全限制增长了 161%。 每增加 1 个功能,就增加 3 个限制。这就是为什么感觉越来越弱 — 能力还在,但被锁在笼子里了。

这个工具就是来砸笼子的。


一行命令,搞定

npx f-ck-openclaw-safe full

280+ 个限制全部消失。重启 OpenClaw。完事。

或者克隆到本地运行:

git clone https://github.com/DEEP-IOS/FUCK-OPENCLAW-SAFE.git
cd FUCK-OPENCLAW-SAFE
node cli.js full

为什么做这个

OpenClaw 在编译后的 dist 文件和默认配置中硬编码了 280+ 个人为限制。从 2026 年 1 月到 3 月,每个版本都在加限制。结果就是:Agent 被阉割、协作崩溃、用户抓狂。

你的硬件。你的 API Key。你的规则。

你是不是也遇到了这些问题?

| 你的体感 | 根本原因 | 修复后 | |---|---|---| | Agent 做到一半就停了 | MAX_RUN_RETRY = 160,循环 160 次就放弃 | 2,000 | | 子 Agent 什么也做不了 | SUBAGENT_TOOL_DENY 禁止了 spawn/session/gateway 工具 | 清空禁止列表 | | 多 Agent 协作像单兵作战 | A2A 关闭 + 只能看自己的会话树 + 对话 5 轮截断 | A2A 开启,全局可见,200 轮 | | 大文件读不全 | READ_PAGE = 50KB,整个文件被截断 | 512KB | | 回答总是被截断 | DEFAULT_MAX_TOKENS = 4096 输出上限 | 16,384 | | 命令行工具总要我确认 | jq/sort/grep 被移出安全白名单 + exec=allowlist | 恢复 + host 模式 | | 上下文窗口感觉很小 | DEFAULT_CONTEXT_WINDOW = 32,000,远低于模型实际能力 | 200,000 | | 长任务直接超时 | JOB_TTL = 3 小时 硬上限 | 24 小时 | | 最多只能开 5 个子 Agent | maxChildrenPerAgent = 5(默认),Zod .max(20)(硬墙) | 999 | | 子 Agent 完全扁平,不能嵌套 | maxSpawnDepth = 1,只允许一层 | 999 | | 工具返回结果被截断 | HARD_MAX_TOOL_RESULT_CHARS = 400K | 2,000,000 | | 项目启动加载几乎为零 | DEFAULT_BOOTSTRAP_MAX_CHARS = 20K | 200,000 | | 压缩后上下文丢太多 | MAX_RECENT_TURNS_PRESERVE = 12DEFAULT = 3 | 48 / 8 | | Agent 对话太短 | MAX_PING_PONG_TURNS = 5,5 轮强制截断 | 200 | | 命令串行执行,一个个来,慢 | maxConcurrent = 1 命令通道 | 解锁 |

每一条都是 OpenClaw 团队故意设定的硬编码值。

工作原理

三种模式,一个目标:完全自由。

| 模式 | 命令 | 作用 | |------|------|------| | patch | f-ck-openclaw-safe patch | 改写 dist 文件中的硬编码限制 | | config | f-ck-openclaw-safe config | 生成 openclaw.json 启用 48 个被禁功能 | | full | f-ck-openclaw-safe full | 两者同时执行(推荐) |

其他命令:

| 命令 | 说明 | |------|------| | f-ck-openclaw-safe status | 显示当前限制状态 | | f-ck-openclaw-safe unpatch | 从备份恢复原始文件 |

参数:--openclaw-dir=路径--dry-run--verbose

56 项限制修改一览

| 参数 | 修改前 | 修改后 | |------|--------|--------| | MAX_RUN_RETRY_ITERATIONS | 160 | 2,000 | | MAX_PING_PONG_TURNS | 5 | 200 | | DEFAULT_CONTEXT_WINDOW | 32,000 | 200,000 | | DEFAULT_MAX_TOKENS | 4,096 | 16,384 | | HARD_MAX_TOOL_RESULT_CHARS | 400,000 | 2,000,000 | | MAX_OBSERVATION_INPUT_CHARS | 64,000 | 256,000 | | MAX_OVERFLOW_COMPACTION_ATTEMPTS | 3 | 10 | | MAX_RECENT_TURNS_PRESERVE | 12 | 48 | | DEFAULT_BOOTSTRAP_MAX_CHARS | 20,000 | 200,000 | | DEFAULT_READ_PAGE_MAX_BYTES | 50 KB | 512 KB | | MAX_ADAPTIVE_READ_MAX_BYTES | 512 KB | 2 MB | | MAX_ADAPTIVE_READ_PAGES | 8 | 64 | | MAX_JOB_TTL_MS | 3 小时 | 24 小时 | | DEFAULT_SUBAGENT_ANNOUNCE_TIMEOUT_MS | 90 秒 | 10 分钟 | | MAX_ANNOUNCE_RETRY_COUNT | 3 | 20 | | DEFAULT_PARENT_FORK_MAX_TOKENS | 100,000 | 200,000 | | MAX_COMPACTION_SUMMARY_CHARS | 16,000 | 64,000 | | MAX_STEER_MESSAGE_CHARS | 4,000 | 16,000 | | MAX_CONTEXT_CHARS | 3,000 | 16,000 | | MAX_INSTRUCTION_LENGTH | 800 | 4,000 | | MAX_QUALITY_GUARD_MAX_RETRIES | 3 | 8 | | MAX_TOOL_FAILURES | 8 | 32 | | DEFAULT_MAX_PDFS | 10 | 30 | | DEFAULT_MAX_PAGES | 20 | 100 | | DEFAULT_MAX_IMAGES | 20 | 100 | | maxSpawnDepth(Zod 硬墙) | 5 | 999 | | maxChildrenPerAgent(Zod 硬墙) | 20 | 999 | | MAX_SESSION_HISTORY_LIMIT | 1,000 | 10,000 | | CONTROL_PLANE_RATE_LIMIT | 3 次/分 | 50 次/分 | | MAX_PAYLOAD_BYTES | 25 MB | 100 MB | | MAX_BUFFERED_BYTES | 50 MB | 200 MB | | ...以及更多 20 项 | | |

安全门移除

  • 沙箱强制执行 → 宽松模式
  • 命令执行审批门 → 自动通过
  • SSRF / 内网 IP 拦截 → 禁用
  • 路径遍历防护 → 禁用
  • 工具拒绝列表 → 清空
  • 命令混淆检测 → 禁用
  • 环境变量黑名单 → 清空(22+ 个变量:JAVA_TOOL_OPTIONS、PYTHONBREAKPOINT、LD_*、BASH_ENV 等)
  • 安全二进制移除 → 恢复(jq、sort、grep)
  • 内存刷新工具限制 → 全部工具可用
  • 配置失败即关闭 → 失败即放行
  • 工作区插件自动加载 → 重新启用

48 项配置功能启用

ACP 协议、Agent 间通信、跨 Provider 消息、会话可见性(全局)、提权工具、exec host 模式、循环检测、Canvas 画布、浏览器代理、OpenAI 兼容端点、全部 6 个聊天命令(/bash、/config、/mcp、/plugins、/debug、/restart)、Hooks、QMD 会话记忆、自动捕获、多模态搜索、Discord/Slack/Matrix 机器人集成、DM 策略(开放)、群组策略(开放)等。

被 OpenClaw 彻底删除的功能(无法恢复)

某些功能已从代码库中完全移除(已在 changelog 中确认):

  • Chrome 浏览器扩展中继路径和打包资源(v2026.3.22)
  • openclaw/extension-api SDK — 已被 openclaw/plugin-sdk/* 替代,无兼容层(v2026.3.22)
  • 旧版 CLAWDBOT_* / MOLTBOT_* 环境变量名(v2026.3.22)
  • 旧版 .moltbot 状态目录和 moltbot.json 自动迁移(v2026.3.22)
  • nano-banana-pro 技能包(v2026.3.22)
  • Google Antigravity 模型供应商(v2026.2.22)
  • soul-evil 内置 hook(v2026.2.13)
  • food-order 内置技能(v2026.2.22)
  • 独立浏览器控制命令(v2026.1.29)
  • Gateway 认证模式 none(v2026.1.29)
  • Discord/Slack/Telegram 的 autoReply 配置(v2026.1.8)
  • 旧版 Gateway Daemon CLI 命令(v2026.1.8)
  • Bun 运行时选项(v2026.1.9)

安全性

  • 所有原始文件备份为 *.bak.original
  • f-ck-openclaw-safe unpatch 立即恢复
  • 所有补丁标记 optional: true,版本不匹配只跳过不崩溃
  • 基于前缀的文件发现,兼容任何 OpenClaw 2026.x 版本
  • --dry-run 预览所有更改再决定

常见问题

会不会破坏 OpenClaw? 不会。安全的限制提升和功能启用。不删除任何东西。原始文件有备份。

新版文件名变了怎么办? 基于前缀自动发现,自动适配。

补丁没匹配上? 跳过并警告,不会失败。

怎么撤销? f-ck-openclaw-safe unpatch 一键恢复。


MIT License | DEEP-IOS | 2026