← Blog

🦞 How Does OpenClaw Work? Inside the Agent Loop That Powers 200,000+ GitHub Stars

🦞 How Does OpenClaw Work? Inside the Agent Loop That Powers 200,000+ GitHub Stars
Photo by panumas nikhomkhai from Pexels

This loop runs in src/agents/pi-embedded-runner/run.ts. Today I'll show you exactly how it works.

Full library access

Unlock every article β€” and keep reading each month

Create a free account, pick a plan that fits how you read, and use monthly credits for deep dives on engineering, products, and founder reality. Cancel or switch anytime from your profile.

Get the newsletter

Posts and notes straight to your inbox

Get new posts and short notes by email β€” no spam, unsubscribe anytime. We also email when new free articles go live.