Workspace Files#
OpenClaw stores agent identity, behavior, and memory in a set of Markdown files inside the sandbox.
These files live at /sandbox/.openclaw/workspace/ and are read by the agent at the start of every session.
File Reference#
Each file controls a distinct aspect of the agent’s behavior and memory.
File |
Purpose |
Upstream Docs |
|---|---|---|
|
Core personality, tone, and behavioral rules. |
|
|
Preferences, context, and facts the agent learns about you. |
|
|
Agent name, creature type, emoji, and self-presentation. |
|
|
Multi-agent coordination, memory conventions, and safety guidelines. |
|
|
Curated long-term memory distilled from daily notes. |
— |
|
Directory of daily note files ( |
— |
Where They Live#
All workspace files reside inside the sandbox filesystem:
/sandbox/.openclaw/workspace/
├── AGENTS.md
├── IDENTITY.md
├── MEMORY.md
├── SOUL.md
├── USER.md
└── memory/
├── 2026-03-18.md
└── 2026-03-19.md
Note
The workspace directory is hidden (.openclaw).
The files are not at /sandbox/SOUL.md — use the full path when downloading or uploading.
Persistence Behavior#
Understanding when these files persist and when they are lost is critical.
Event |
Workspace files |
|---|---|
Sandbox restart |
Preserved — the sandbox PVC retains its data. |
|
Lost — the sandbox and its PVC are deleted. |
Warning
Always back up your workspace files before running nemoclaw <name> destroy.
See Back Up and Restore for instructions.
Editing Workspace Files#
The agent reads these files at the start of every session. You can edit them in two ways:
Let the agent do it — Ask your agent to update its persona, memory, or user context during a session.
Edit manually — Use
openshell sandbox connectto open a terminal inside the sandbox and edit files directly, or useopenshell sandbox uploadto push edited files from your host.