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 d93bb63
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/gateway/configuration-reference.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -275,7 +275,9 @@ See [MCP](/cli/mcp#openclaw-as-an-mcp-client-registry) and
275
275
-`plugins.entries.<id>.subagent.allowModelOverride`: explicitly trust this plugin to request per-run `provider` and `model` overrides for background subagent runs.
276
276
-`plugins.entries.<id>.subagent.allowedModels`: optional allowlist of canonical `provider/model` targets for trusted subagent overrides. Use `"*"` only when you intentionally want to allow any model.
277
277
-`plugins.entries.<id>.llm.allowModelOverride`: explicitly trust this plugin to request model overrides for `api.runtime.llm.complete`.
278
-
-`plugins.entries.<id>.llm.allowedModels`: optional allowlist of canonical `provider/model` targets for trusted plugin LLM completion overrides. Use `"*"` only when you intentionally want to allow any model.
278
+
-`plugins.entries.<id>.llm.allowedModels`: optional allowlist of canonical `provider/model` targets for trusted model overrides. Use `"*"` only when you intentionally want to allow any model override.
279
+
-`plugins.entries.<id>.llm.allowedCompletionModels`: optional allowlist applied to every plugin LLM completion, including host-resolved defaults and overrides. Use `"*"` only when you intentionally want to allow any model.
280
+
-`plugins.entries.<id>.llm.allowAuthProfileOverride`: explicitly trust this plugin to select a non-default auth profile for isolated `api.runtime.llm.complete` execution. Direct `model@profile` calls remain governed by model-override policy.
279
281
-`plugins.entries.<id>.llm.allowAgentIdOverride`: explicitly trust this plugin to run `api.runtime.llm.complete` against a non-default agent id.
280
282
-`plugins.entries.<id>.config`: plugin-defined config object (validated by native OpenClaw plugin schema when available).
281
283
- Channel plugin account/runtime settings live under `channels.<id>` and should be described by the owning plugin's manifest `channelConfigs` metadata, not by a central OpenClaw option registry.
Copy file name to clipboardExpand all lines: docs/plugins/sdk-runtime.md
+33-1Lines changed: 33 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -251,6 +251,38 @@ two-party event loops that do not go through the shared inbound reply runner.
251
251
});
252
252
```
253
253
254
+
`maxTokens` and `temperature` are advisory sampling hints. The selected
255
+
provider, CLI, or harness applies them when its transport exposes an
256
+
equivalent control and otherwise may ignore them. They do not weaken the
257
+
execution mode's isolation guarantees.
258
+
259
+
To require the configured agent runtime and a literal zero-tool model
260
+
surface, select isolated execution explicitly:
261
+
262
+
```typescript
263
+
const result = await api.runtime.llm.complete({
264
+
messages: [{ role: "user", content: "Return one JSON value." }],
265
+
systemPrompt: "You are a JSON-only function.",
266
+
model: "openai/gpt-5.6-sol",
267
+
execution: {
268
+
mode: "isolated-agent-runtime",
269
+
authProfileId: "openai:work",
270
+
timeoutMs: 30_000,
271
+
},
272
+
});
273
+
```
274
+
275
+
This mode accepts exactly one user message. Core derives the configured CLI
276
+
or harness owner, starts a fresh context, exposes no model-callable tools,
277
+
and never falls back to direct provider transport. Unsupported runtimes fail
278
+
before inference. `result.execution.owner` reports the selected owner;
279
+
token usage remains absent when a CLI cannot report it.
280
+
281
+
Completion failures expose a stable `code` on the thrown error. Isolated
282
+
callers can distinguish authorization, invalid isolated input, unsupported
283
+
or unavailable runtimes, aborts, timeouts, rejected output, and other
284
+
completion failures without matching message text.
285
+
254
286
Provider orchestration can also acquire the configured local-service
255
287
lifecycle before issuing an HTTP request:
256
288
@@ -297,7 +329,7 @@ two-party event loops that do not go through the shared inbound reply runner.
297
329
`medium`; `max` and `ultra` become `max` when supported, otherwise `xhigh`.
298
330
299
331
<Warning>
300
-
Model overrides require operator opt-in via `plugins.entries.<id>.llm.allowModelOverride: true` in config. Use `plugins.entries.<id>.llm.allowedModels` to restrict trusted plugins to specific canonical `provider/model` targets. Cross-agent completions require `plugins.entries.<id>.llm.allowAgentIdOverride: true`.
332
+
Model overrides require operator opt-in via `plugins.entries.<id>.llm.allowModelOverride: true` in config. `plugins.entries.<id>.llm.allowedModels` restricts those overrides; `plugins.entries.<id>.llm.allowedCompletionModels` separately restricts every completion, including host-resolved defaults. For direct completions, a `model@profile` override remains part of the authorized model override. Isolated `model@profile` overrides and `execution.authProfileId` require `plugins.entries.<id>.llm.allowAuthProfileOverride: true`. Cross-agent completions require `plugins.entries.<id>.llm.allowAgentIdOverride: true`.
0 commit comments