
Build a local self-hosted AI agent on your personal computer with Docker and Gemini 2.5 Flash to explore your workspace using OpenCLAW and generate a short .txt summary.
Meet OpenClaw, the agent runtime that links Gemini 2.5 Flash as the brain, the docker sandbox, and local tools to work with your files, with mounting controls.
Install docker across Windows and macOS, using WSL2 Ubuntu on Windows and Docker Desktop on macOS, then verify with docker run hello-world and restart WSL to complete setup.
Learn to run the OpenCloud gateway with docker compose, mounting config and workspace folders via volume mounts. Set up .env, docker-compose.yml, and opencloud.json, then start and verify the mounted workspace.
Create a Gemini 2.5 Flash API key in Google AI Studio, copy it, and store it securely for OpenClue’s Gemini connection. Keep the credential private for the next onboarding step.
Boot OpenCloud gateway in Docker, complete onboarding to Gemini, and send a hello to verify a running local AI agent via the dashboard and health check.
Understand Gemini's token-based billing, input and output tokens, and how short prompts in OpenClaw Part 1 keep costs low; set a spend cap in Google AI Studio to avoid bills.
OpenClock inspects a real project folder, interprets the Meeting Notes Organizer structure, identifies key files in Inbox, Reference, Output, and Archive, and plans a future summary report.
OpenClaw secures a local setup by using docker to isolate the agent, moving secrets to local environment variables, and tightening workspace permissions, then verifying startup via logs.
You’ve tried chatbots. Now it’s time to build a real local AI agent that can explore your folders, understand your files, and write reports for you — all inside a secure Docker sandbox on your own PC.
1. Problem & promise
Most AI tools live in the cloud and only answer questions one message at a time. They can’t safely reach into your own files, remember your folders, or run repeatable workflows on your machine. In this course, you’ll build a self-hosted AI agent with OpenClaw that actually does things for you: scanning folders, summarizing documents, and generating clear reports locally.
2. What you’ll build
Step by step, we’ll set up OpenClaw on your computer using Docker, connect Google Gemini 2.5 Flash as the “brain”, and create a dedicated `workspace` where your agent can safely read and write files. By the end of Part 1, your agent will be able to explore a folder on your PC and automatically generate a human-readable `.txt` summary report of what it finds. You’ll see the entire workflow end to end, from first install to your first real automation.
3. How we’ll get there
We start with the basics: what agentic AI is, how OpenClaw is different from a simple chatbot, and which machine (PC, old laptop, or VPS) is best for you. Then we install Docker, create the `config` and `workspace` folders, and wire everything together with `docker-compose.yml` and a simple `.env` file. Next, we create a Gemini 2.5 Flash API key, connect it to OpenClaw, boot the agent for the first time, and run a complete “folder exploration + summary report” demo that you can customize.
4. Who this is for
This course is designed for beginner–junior developers, tech-curious professionals, and indie makers who want to go beyond copy‑pasting prompts into a web UI. If you’re comfortable installing apps and typing simple commands into a terminal or command prompt, you’ll be able to follow along. You do not need to be a DevOps expert or an AI researcher — we focus on practical steps and explain each decision along the way.
5. Security-first angle
OpenClaw is powerful because it can touch real files, but that also means security matters. Throughout the course, we use Docker as a sandbox so your agent runs in an isolated environment on your machine, not directly on your host system. In a dedicated security lesson, we review what your current setup does well, where it can still break, and simple habits you can use to keep your self-hosted AI agent as safe as possible. This way, you don’t just build “another cool demo” — you build a local AI agent with security in mind from day one.