在 OpenClaw 配置文件(openclaw.json 或 config.yaml)中,将 exec 加入 deny 列表:
{"tools": {"allow": ["read", "write", "edit", "web_search", "browser"],"deny": ["exec", "process"]}}

注意:deny 的优先级高于 allow,即使 exec 同时出现在 allow 列表中,deny 也会优先生效。

往期推荐
在 OpenClaw 配置文件(openclaw.json 或 config.yaml)中,将 exec 加入 deny 列表:
{"tools": {"allow": ["read", "write", "edit", "web_search", "browser"],"deny": ["exec", "process"]}}

注意:deny 的优先级高于 allow,即使 exec 同时出现在 allow 列表中,deny 也会优先生效。

往期推荐