Let OpenClaw Tidy Your Downloads Folder
Intermediate · 30 minutes · 4 tasks, checked automatically · 100 points
In this lab you will wire up OpenClaw as a local automation agent that inspects your real ~/Downloads folder, classifies every file by type and age, proposes a tidy-up plan, and only executes the moves after you explicitly approve them. You will install OpenClaw, start its gateway, register a custom file-classification tool, write a skill that builds the plan, and run the full human-in-the-loop workflow — all on your own machine where the files actually live.
What you’ll learn
- Install OpenClaw into the LearnXops managed environment and start the local gateway
- Register a custom classify_downloads tool that scans ~/Downloads and groups files by MIME type and last-modified age bucket
- Write a tidy_plan skill that calls the tool, formats a human-readable move plan, and stores it as a JSON artefact in the lab directory
- Run the full human-in-the-loop flow: review the plan file, approve it, and trigger OpenClaw to execute only the approved moves into dated sub-folders inside ~/Downloads
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 4 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: claude-sonnet-4-6
- Open source: github.com/openclaw/openclaw
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Node.js 18+ installed on your machine
- ANTHROPIC_API_KEY set in your environment
- A ~/Downloads folder that exists (even if empty)
Topics: openclaw, automation, file-organisation, human-in-the-loop, tools, skills, gateway, claude, downloads
Create a free account to start this lab.
Keep going
- Build and Invoke a Custom OpenClaw Shell-Out Skill
- OpenClaw Filesystem Access: Read, Summarise and Rewrite a Project File
- 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