Last login: Sun Apr 19 22:29:10 on ttys000
/Users/qiguaidemaomao/.openclaw/completions/openclaw.zsh:3829: command not found: compdef
qiguaidemaomao@localhost ~ % openclaw help
^[[B^[[A^[^[^[[openclaw] Failed to start CLI: Error: The openclaw help command is unavailable because plugins.allow excludes "help". Add "help" to plugins.allow if you want that bundled plugin CLI surface.
at runCli (file:///Users/qiguaidemaomao/.npm-global/global/5/.pnpm/openclaw@2026.4.15_@napi-rs+canvas@0.1.96_@types+express@5.0.6_apache-arrow@18.1.0_hono_ffce9b7889330c815d8d2b31f4fec5ef/node_modules/openclaw/dist/run-main-BBeVm29G.js:458:45)
(node:2561) [OPENCLAW_PLUGIN_SDK_COMPAT_DEPRECATED] Warning: openclaw/plugin-sdk/compat is deprecated for new plugins. Migrate to focused openclaw/plugin-sdk/<subpath> imports. See https://docs.openclaw.ai/plugins/sdk-migration
Bundled plugins must use scoped plugin-sdk subpaths. External plugins may keep compat temporarily while migrating. Migration guide: https://docs.openclaw.ai/plugins/sdk-migration
(Use node --trace-warnings ... to show where the warning was created)
#未知提示
1 messages · Page 1 of 1 (latest)
Looks like two separate problems:
-
openclaw helpis blocked by your config
You have a restrictiveplugins.allow, and it currently excludeshelp.Quick workaround:
openclaw --helpPermanent fix:
add"help"toplugins.allowin your config. -
compdef/ `^[[A ^
所以是新版本不允许 openclaw help这样的写法了吗?
不是“新版本全面不允许”了。
更准确地说,是你的当前配置里 plugins.allow 把 help 排除了,所以:
openclaw help被拦住了openclaw --help一般还是能用
也就是说,openclaw help 现在更像是在走一个 plugin CLI surface,而你这里正好开了 restrictive allowlist。
所以结论是:
- 不是语法废弃
- 是你的
plugins.allow配置不允许它执行
如果你想继续用 openclaw help,有两个办法:
- 在
plugins.allow里加上"help"
- 或者直接改用
openclaw --help
另外,你前面那个 compdef 报错是 另一个独立问题,是 zsh completion 挂了,和 openclaw help 不是同一件事。
如果你愿意,我可以下一条直接告诉你怎么检查/修改 plugins.allow。
需要,谢谢
可以,最稳的是这样看和改:
1) 先看配置文件在哪
openclaw config file
2) 看当前 plugins.allow
openclaw config get plugins.allow --json
如果它输出类似这样:
["telegram", "browser"]
那你要把 help 也加进去,比如:
openclaw config set plugins.allow '["telegram", "browser", "help"]' --strict-json
注意,不要直接照抄我的数组,要把你原来已有的项保留,只是在里面补一个 "help"。
3) 再试
openclaw help
如果你其实不需要 restrictive allowlist
也可以直接删掉这项:
openclaw config unset plugins.allow
这样 bundled plugin CLI surface 就不会被这条 allowlist 卡住了。
临时绕过
就算你还没改配置,也可以先用:
openclaw --help
顺手一提,你上面那个 compdef 是另一个问题。