Onboarding completes, the Gateway is healthy, openclaw doctor is green, and openclaw agent --message "ping" returns a reply. That is enough to know the wires are connected, but it is not enough to know the agent is going to behave the way you want it to under real load. This walkthrough is a scripted first conversation that exercises every layer of the runtime — the agent loop, the editable persona files, persistent memory across a restart, a tool call against your file system, and the dashboard’s view of all of it — so you can audit each component deliberately before any real channel is wired in.
Outcome and prerequisites
By the end you will have:
- A populated
SOUL.md,IDENTITY.md, andUSER.mdreflecting how you want the agent to behave - A
MEMORY.mdentry that survives a Gateway restart - A verified tool call (file read, shell exec, or web fetch) under controlled conditions
- A clear view of the session transcript in the Control UI
- A baseline you can return to when something starts behaving oddly later
You need:
- A working OpenClaw install with onboarding complete (see The OpenClaw onboard command explained step by step)
- The Control UI reachable at
http://127.0.0.1:18789/ - 30 minutes of focused time and a willingness to read what the agent writes back
Time
30 to 45 minutes, deliberately paced. This is not a sprint — the value is in slowing down and watching what happens.
Steps
1. Open the dashboard before you say anything
In your browser, open http://127.0.0.1:18789/. The Control UI is the inspection surface for the runtime — sessions, channel state, logs, model traffic, and the workspace file tree. Leave it open in a tab. As you have the conversation, you will see each turn appear in the dashboard alongside what the agent decided.
2. Read the bootstrap files the wizard wrote
In a terminal:
cd ~/.openclaw/workspace
ls -1 *.md
You should see at least AGENTS.md, SOUL.md, TOOLS.md, IDENTITY.md, and USER.md. These are the editable persona files that the runtime injects into the system prompt at the start of every session (OpenClaw docs — agent runtime).
Read each one. None should be empty after onboarding — even a default install gives you starter content. The defaults are a starting point, not an ending point.
3. Teach the agent who you are
The most common failure mode of a first conversation is the agent talking like a generic assistant because nothing in USER.md tells it about you. Open USER.md and write five honest lines:
- Your name and how the agent should address you
- What you do for a living, in one sentence
- The two or three tools you spend most of your day in
- The communication style you prefer (concise, no preamble, examples-first, etc.)
- Any topics that are out of scope
Save. The change does not require a restart — the next session will read the updated file.
4. Set persona and identity
Open IDENTITY.md. Pick a name and an emoji for the agent. This sounds frivolous; it is not. The agent uses its own name throughout the session and the name becomes the signature on auto-generated messages to channels later. Pick something you will not be embarrassed to see on Slack.
Open SOUL.md. This is where you set tone, boundaries, and behavioral constraints. The default content is reasonable. The two edits worth making at this stage:
- A line that explicitly says the agent must not invent facts about you and must ask if it does not know.
- A line that sets the default response shape — for example, “Default to two-paragraph or shorter replies unless I explicitly ask for depth.”
Save.
5. Start the first conversation
Back in the terminal:
openclaw agent --message "Introduce yourself in two sentences using what you know from my profile."
The reply should reference your name, address you the way you asked to be addressed, and use the persona you wrote into SOUL.md and IDENTITY.md. If the reply ignores those files, the persona injection is not happening — verify that the files have content and re-run.
6. Test that memory survives a restart
Tell the agent something durable:
openclaw agent --message "Add a line to MEMORY.md noting that I prefer Markdown lists over prose paragraphs for any technical reply."
The agent should either edit MEMORY.md directly or confirm it has noted the preference. Open ~/.openclaw/workspace/MEMORY.md and verify the line is there.
Now restart the Gateway to simulate a real outage:
openclaw gateway restart
Wait for it to come back up:
openclaw status
Send a follow-up that depends on the saved preference:
openclaw agent --message "Write me a quick summary of how OpenClaw memory works."
The reply should come back as a Markdown list. If it comes back as prose, MEMORY.md is not being loaded on session start — check the file’s contents and confirm it has not been emptied or moved.
7. Exercise one tool, deliberately
Tools are the half of the agent loop that does things in the world. The first tool call should be controlled, observable, and easy to verify. A file-read against the workspace is ideal:
openclaw agent --message "Read SOUL.md and tell me which line I added today."
The agent should describe the line you wrote earlier and not invent a different one. Watch the dashboard during this turn — you should see a tool call recorded in the session transcript and the tool result feeding back into the model.
If you have a backend that supports web access tools (Anthropic, OpenAI, or a Ollama setup with a search provider), follow up with:
openclaw agent --message "Fetch the current Node.js LTS version from the official Node.js downloads page."
This exercises the web tool and gives you a deterministic answer to check against the Node.js downloads page.
8. Inspect the transcript
Open the Control UI tab. Select the current session. You should see every turn from this walkthrough — your messages, the agent’s replies, the tool calls, the tool results. This is exactly what is stored at ~/.openclaw/agents/<agentId>/sessions/<SessionId>.jsonl (OpenClaw docs — agent runtime).
Confirm that:
- Tool calls are visible with their inputs and outputs.
- The system prompt section shows the contents of
SOUL.md,IDENTITY.md,USER.md, andMEMORY.mdwere injected. - Token usage per turn is reasonable. Wildly high token counts usually mean a bootstrap file got bloated.
9. End the session deliberately
In a chat channel you would use the slash commands /status or /reset (OpenClaw docs — slash commands). From the CLI, just stop sending messages. Sessions stay open until either a reset or a timeout from the session.reset policy (OpenClaw docs — configuration reference).
If you want a clean slate for the next walkthrough:
openclaw sessions list
openclaw sessions end <sessionId>
Verification
You have a real working agent if:
- The reply to step 5 uses your name and matches the tone from
SOUL.md. - The line you wrote to
MEMORY.mdin step 6 survives the Gateway restart. - The tool call in step 7 is visible in the dashboard with input and output.
- The session transcript on disk contains the full conversation in JSONL form at
~/.openclaw/agents/<agentId>/sessions/<SessionId>.jsonl.
If any of those fail, do not move on to wiring channels. Fix the layer that is broken first.
Rollback
If you wrote something into the persona files that is making the agent behave badly, the rollback is purely textual:
cd ~/.openclaw/workspace
git diff SOUL.md MEMORY.md USER.md IDENTITY.md
If you have not yet initialized git in the workspace, do so now — it is the cheapest possible safety net for files that the agent itself can edit:
cd ~/.openclaw/workspace && git init && git add -A && git commit -m "baseline persona"
You can now revert any unintended edit with git checkout -- <file>.
Troubleshooting
The agent ignores USER.md content. Check that the file is not empty, that it is in ~/.openclaw/workspace/ (not ~/.openclaw/), and that the Gateway has actually restarted since the edit if you suspect caching. The runtime injects the file on session start; if you are on the same session, start a new one.
The agent confidently invents facts about you. Reinforce the boundary in SOUL.md explicitly: a line that says “If you do not know something about me, ask. Do not guess.” Save and start a new session.
Tool calls fail with parser errors on a local model. This is the Ollama /v1 URL issue, or a model that is simply not good at tool-calling. Switch the primary model to a hosted provider (see Choosing an LLM backend for OpenClaw) for this walkthrough and confirm.
The dashboard does not show the session. Check that you are pointed at the right Gateway port and that openclaw status reports it as running. The Control UI is a view on the same Gateway your CLI is talking to.
Production-readiness
This walkthrough is the bare minimum before wiring a real channel. Before sending real users at this agent:
- Decide which channels you will enable and the
dmPolicyfor each. - Set up backups of
~/.openclaw/— the workspace, the transcripts, and the persona files all need to survive disk loss. - Pin model strings and configure a failover model in the
modelsblock. - Run
openclaw doctoragain and read every line of the output, not just the green summary.
Related
- The OpenClaw onboard command explained step by step
- Persistent memory in OpenClaw: how it works and where it lives
- How OpenClaw is wired: the agent loop, memory, and skills
Sources
- OpenClaw docs — agent runtime
- OpenClaw docs — memory concept
- OpenClaw docs — configuration reference
- OpenClaw docs — slash commands
- OpenClaw docs — doctor
- GitHub: openclaw/openclaw
- Node.js downloads
- Anthropic API docs
- OpenAI platform docs
- Ollama API docs
Last verified on OpenClaw current. The persona file names and the session transcript path have been stable for several releases, but verify before you script automation around them.