/term is a power-user shortcut: whatever you type after /term is forwarded as-is to OpenClaw’s exec tool.
This is intentionally “manual mode”:
OpenClaw supports command-dispatch: tool skills. When you run:
/term ls -lathe raw argument string (ls -la) is forwarded to the configured tool (exec) without extra parsing. In tool-dispatch mode, OpenClaw invokes the tool with params shaped like:
{ command: "
See the Skills docs section on command-dispatch, command-tool, and command-arg-mode. :contentReference[oaicite:10]{index=10}
Use /term when:
Prefer normal agent flow when:
/term is equivalent to letting an assistant type into your terminal.
Good defaults:
1) Prefer read-only commands unless you mean to change state.
2) Avoid secrets in command lines (tokens, API keys, cookies).
3) Avoid remote execution one-liners:
curl ... | sh4) If the command could delete or overwrite files, slow down and double-check paths.
Your actual execution environment depends on how you invoke exec in your setup (sandbox vs host).
Also note: when a session is sandboxed, environment variables are not automatically inherited by the container; you must inject them via sandbox env settings or bake them into the image. :contentReference[oaicite:11]{index=11}
/term pwd/term ls -la/term git status/term rg -n "TODO|FIXME" ./term peekaboo bridge status --verboseIf the output shows “no such file or directory” for all candidates and “Selected: local (in-process)”, you likely have no bridge host running (see troubleshooting below).
If you want JSON output for parsing:
/term python -c 'import json,platform; print(json.dumps({"py":platform.python_version()}))'The tool runs in whatever PATH your OpenClaw runtime provides. If you rely on Homebrew, ensure the runtime sees /opt/homebrew/bin.
Some tools (screen capture / UI automation) require Screen Recording / Accessibility. Those permissions are per-process context on macOS; using PeekabooBridge is often the reliable path for automation.
Install/use the companion skill terminal-helper (model-invocable) which teaches safe patterns, confirmations, and runbooks.
共 1 个版本