You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f66f274
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/gateway/cli-backends.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,11 +136,16 @@ claude update
136
136
The bundled `claude-cli` backend prefers Claude Code's native skill resolver. When the current skills snapshot has at least one selected skill with a materialized path, OpenClaw passes a temporary Claude Code plugin via `--plugin-dir` and omits the duplicate OpenClaw skills catalog from the appended system prompt. Without a materialized plugin skill, OpenClaw keeps the prompt catalog as a fallback. Skill env/API key overrides still apply to the child process environment for the run.
137
137
138
138
The Agent SDK always runs with Claude Code's default permission mode.
139
-
OpenClaw's existing effective exec policy remains authoritative through SDK
140
-
permission callbacks and a `PreToolUse` hook, including when user settings
141
-
would otherwise preapprove a tool. Per-agent and session restrictions still
142
-
override broader global policy. OpenClaw-owned MCP tools remain authorized by
143
-
the Gateway rather than receiving a second Claude-native approval.
139
+
OpenClaw supplies a managed ask rule so every schema-valid executable call
140
+
reaches the SDK permission callback, even when user settings would otherwise
141
+
preapprove it. The callback runs OpenClaw's canonical `before_tool_call`
142
+
policy before native exec policy and approval. Per-agent and session
143
+
restrictions still override broader global policy. OpenClaw-owned MCP tools
144
+
already execute canonical policy inside the Gateway, so the adapter allows
145
+
those exact `mcp__openclaw__*` calls without a duplicate approval; other MCP
146
+
tools remain host-permission controlled. Claude Code rejects schema-invalid
147
+
tool input before any permission callback, so policy parity applies to
148
+
schema-valid executable calls.
144
149
145
150
When the effective exec ask setting is `on-miss` or `always`, OpenClaw relays
146
151
native or extension tool requests as interactive approvals to the session's
0 commit comments