Skip to content

Commit a56c52e

Browse files
committed
docs: add nodes command config example
1 parent 4c23d1d commit a56c52e

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

docs/nodes/index.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,30 @@ Dangerous or privacy-heavy commands such as `camera.snap`, `camera.clip`, and
205205
`gateway.nodes.allowCommands`. `gateway.nodes.denyCommands` always wins over
206206
defaults and extra allowlist entries.
207207

208+
Example Gateway config (`~/.openclaw/openclaw.json`) for enabling selected
209+
high-risk node commands:
210+
211+
```json5
212+
{
213+
gateway: {
214+
nodes: {
215+
// Add only the high-risk commands this Gateway should expose.
216+
allowCommands: ["camera.snap", "screen.record"],
217+
// Keep exact denials for commands that must stay unavailable.
218+
denyCommands: ["camera.clip"],
219+
},
220+
},
221+
}
222+
```
223+
224+
Use exact node command names. `denyCommands` is also exact-match and removes a
225+
command even when a platform default or `allowCommands` entry would otherwise
226+
allow it. If your config was generated with high-risk commands in
227+
`denyCommands`, remove the same command there before adding it to
228+
`allowCommands`.
229+
See [Gateway configuration reference](/gateway/configuration-reference#gateway-field-details)
230+
for the complete `gateway.nodes` field list.
231+
208232
Plugin-owned node commands can add a Gateway node-invoke policy. That policy
209233
runs after the allowlist check and before forwarding to the node, so raw
210234
`node.invoke`, CLI helpers, and dedicated agent tools share the same plugin

0 commit comments

Comments
 (0)