Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
OpenClaw runs a single embedded agent runtime — one agent process per Gateway, with its own workspace, bootstrap files, and session store. This page covers that runtime contract: what the workspace must contain, which files get injected, and how sessions bootstrap against it.
OpenClaw uses a single agent workspace directory (
agents.defaults.workspacecwdRecommended: use
openclaw setup~/.openclaw/openclaw.jsonFull workspace layout + backup guide: Agent workspace
If
agents.defaults.sandboxagents.defaults.sandbox.workspaceRootInside
agents.defaults.workspaceAGENTS.mdSOUL.mdTOOLS.mdimsgsagBOOTSTRAP.mdIDENTITY.mdUSER.mdOn the first turn of a new session, OpenClaw injects the contents of these files directly into the agent context.
Blank files are skipped. Large files are trimmed and truncated with a marker so prompts stay lean (read the file for full content).
If a file is missing, OpenClaw injects a single “missing file” marker line (and
openclaw setupBOOTSTRAP.mdTo disable bootstrap file creation entirely (for pre-seeded workspaces), set:
json5{ agents: { defaults: { skipBootstrap: true } } }
Core tools (read/exec/edit/write and related system tools) are always available, subject to tool policy.
apply_patchtools.exec.applyPatchTOOLS.mdOpenClaw loads skills from these locations (highest precedence first):
<workspace>/skills<workspace>/.agents/skills~/.agents/skills~/.openclaw/skillsskills.load.extraDirsSkills can be gated by config/env (see
skillsThe embedded agent runtime is built on the Pi agent core (models, tools, and prompt pipeline). Session management, discovery, tool wiring, and channel delivery are OpenClaw-owned layers on top of that core.
Session transcripts are stored as JSONL at:
~/.openclaw/agents/<agentId>/sessions/<SessionId>.jsonlThe session ID is stable and chosen by OpenClaw. Legacy session folders from other tools are not read.
When queue mode is
steersteerqueueWhen queue mode is
followupcollectBlock streaming sends completed assistant blocks as soon as they finish; it is off by default (
agents.defaults.blockStreamingDefault: "off"agents.defaults.blockStreamingBreaktext_endmessage_endagents.defaults.blockStreamingChunkagents.defaults.blockStreamingCoalesce*.blockStreaming: trueModel refs in config (for example
agents.defaults.modelagents.defaults.models/provider/model/openrouter/moonshotai/kimi-k2At minimum, set:
agents.defaults.workspacechannels.whatsapp.allowFromNext: Group Chats 🦞
© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine