#未知提示

1 messages · Page 1 of 1 (latest)

main oasis
#

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)

little mauveBOT
next turretBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

little mauveBOT
south cobaltBOT
#

Looks like two separate problems:

  1. openclaw help is blocked by your config
    You have a restrictive plugins.allow, and it currently excludes help.

    Quick workaround:

    openclaw --help
    

    Permanent fix:
    add "help" to plugins.allow in your config.

  2. compdef / `^[[A ^

main oasis
#

所以是新版本不允许 openclaw help这样的写法了吗?

south cobaltBOT
#

不是“新版本全面不允许”了。

更准确地说,是你的当前配置里 plugins.allowhelp 排除了,所以:

  • openclaw help 被拦住了
  • openclaw --help 一般还是能用

也就是说,openclaw help 现在更像是在走一个 plugin CLI surface,而你这里正好开了 restrictive allowlist。

所以结论是:

  • 不是语法废弃
  • 是你的 plugins.allow 配置不允许它执行

如果你想继续用 openclaw help,有两个办法:

  1. plugins.allow 里加上 "help"
#
  1. 或者直接改用
    openclaw --help
    

另外,你前面那个 compdef 报错是 另一个独立问题,是 zsh completion 挂了,和 openclaw help 不是同一件事。

如果你愿意,我可以下一条直接告诉你怎么检查/修改 plugins.allow

main oasis
#

需要,谢谢

south cobaltBOT
#

可以,最稳的是这样看和改:

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 是另一个问题。