3.0 KiB
3.0 KiB
OpenClaw Advanced Tools — Operational Notes
For full command syntax, see references/cli-full.md.
This file adds operational context not found in CLI reference.
Gateway RPC Methods
Use openclaw gateway call <method> [--params <json>] for direct RPC:
config.apply: validate → write → restart → wakeconfig.patch: merge partial update → restart → wakeconfig.get: read current configupdate.run: run update → restartlogs.tail: tail logs (param:{"sinceMs": 60000})status: get runtime statussecrets.reload: re-resolve secret refs
Browser Operational Notes
- Profile
openclaw= isolated managed Chrome. Profilechrome= existing Chrome via extension relay. - Extension:
openclaw browser extension install→ load unpacked inchrome://extensions. - Remote browser: set
gateway.nodes.browser.mode+gateway.nodes.browser.nodein config. - All interaction commands accept
--target-id <id>for multi-tab control. - Memory files:
MEMORY.mdandmemory/*.mdin workspace root.
Nodes Exec Behavior
nodes runreadstools.exec.*config + agent-level overrides.- Uses
exec.approval.requestbefore invokingsystem.run. --rawruns via/bin/sh -lc(Unix) orcmd.exe /c(Windows).- Windows node hosts:
cmd.exe /cwrapper always requires approval event with allowlist. --nodeomittable whentools.exec.nodeis set in config.- Node hosts ignore
PATHoverrides;tools.exec.pathPrependnot applied.
Cron Delivery
--announce: announce to channel.--deliver/--no-delivercontrol message delivery.--at+--keep-after-run: one-time job that persists after execution.cron.sessionRetention(default 24h) prunes completed run sessions.- Run logs:
~/.openclaw/cron/runs/<jobId>.jsonl.
Secrets Workflow
Recommended: audit --check → configure → audit --check (verify clean).
- Finding codes:
PLAINTEXT_FOUND,REF_UNRESOLVED,REF_SHADOWED,LEGACY_RESIDUE. secrets applyis one-way (no rollback). Use--dry-runfirst.- Scrub options auto-enabled:
scrubEnv,scrubAuthProfilesForProviderTargets,scrubLegacyAuthJson.
Security Audit Fix Scope
security audit --fix will:
- Flip
groupPolicy="open"→"allowlist" - Set
logging.redactSensitive→"tools" - Tighten file permissions on state/config
--fix will NOT: rotate tokens, disable tools, change bind/auth/network.
Bundled Hooks
Enable: openclaw hooks enable <name>. Require gateway restart.
session-memory: saves context on/new→memory/YYYY-MM-DD-slug.mdbootstrap-extra-files: injectsAGENTS.md/TOOLS.mdon agent bootstrapcommand-logger: logs to~/.openclaw/logs/commands.log(JSONL)boot-md: runsBOOT.mdon gateway startup
Config Hot Reload
gateway.reload.mode: hybrid (default) | hot | restart | off
- Hot-apply: channels, agents, models, routing, hooks, cron, tools, browser, skills, etc.
- Restart required: gateway.*, discovery, plugins, gateway.remote