OpenClaw Filesystem Access: Read, Summarise and Rewrite a Project File
Intermediate · 30 minutes · 5 tasks, checked automatically · 100 points
In this lab you will install OpenClaw, start its gateway, register a scoped filesystem tool that constrains all file access to a single working directory, and then drive the agent to read a project README, produce a summary, and write a rewritten version back to disk. Every capability check is deterministic — you are verifying configuration, tool registration, and file presence rather than the quality of the model's prose.
What you’ll learn
- Install OpenClaw globally and verify the gateway can reach the local qwen2.5:3b model
- Configure a scoped filesystem tool whose root is locked to /root/lab/workspace so the agent cannot read or write outside that directory
- Use OpenClaw to read a project README, emit a summary file, and produce a rewritten README — all within the scoped workspace
How this lab works
- Start the lab: One click starts a sandbox with a local model and the agent’s toolbox: no API key and no token bill.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work inspects the agent, its config and its output, and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: Locally, against a model on your computer: no API key, no tokens
- Model: qwen2.5:3b
- Open source: github.com/openclaw/openclaw
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop (or Podman / Rancher Desktop) installed and running
- A model sandbox started in the Agent Playground (ollama/ollama:latest on port 11434 serving qwen2.5:3b)
Topics: openclaw, filesystem, tools, skills, automation, local-model, qwen2.5, scoped-access, file-rewrite
Create a free account to start this lab.
Keep going
- Build and Invoke a Custom OpenClaw Shell-Out Skill
- Teach Hermes to Remember: Generate, Review, and Re-Run a Custom Skill
- Build a Custom CrewAI Tool with @tool and Let an Agent Decide When to Use It
- Force Structured Output from a CrewAI Task with a Pydantic Model
- Build a Tool Node by Hand in LangGraph
- Hermes Agent on a Real Codebase: Search, Multi-File Edit, and Test