OpenClaw GitHub Repository: What's Inside, How to Fork, and Contribute (2026)

Hey fellow AI tinkerers — if you've ever cloned a fast-moving open-source project and thought "wait, where do I even start?", this one's for you. I'm Hanks, and I've been running real workflow tests through autonomous AI tools for years. OpenClaw landed on my radar in late January 2026, went viral almost overnight, and I haven't stopped stress-testing it since.

The repo moves fast. Like, 10,000+ commits fast. I kept asking myself: "Is there actually a coherent structure here, or is it just organised chaos?" Spoiler: it's surprisingly coherent. But you have to know where to look.

Here's everything you actually need to know about the openclaw GitHub repository — not the demo, the real thing.


What Is the OpenClaw GitHub Repo?

Repo URL and Where to Find It

The main repo lives at github.com/openclaw/openclaw. It's the core project — a local-first, self-hosted AI assistant that routes through the messaging channels you already use: WhatsApp, Telegram, Slack, Discord, Signal, iMessage, Microsoft Teams, and more.

Quick context for anyone new: OpenClaw was originally called Clawdbot, then briefly Moltbot (after trademark complaints), then renamed OpenClaw in late January 2026. As of February 22, 2026, the main repo is updated daily and the openclaw organization on GitHub hosts 19 repositories total, covering everything from the core gateway to Ansible deployment scripts.

Stars, Forks, and Activity as Trust Signals

Numbers as of February 22, 2026:

Metric
Value
⭐ Stars
218,000+
🍴 Forks
41,000+
Open Issues
~3,100
Open Pull Requests
~3,100
Total Commits
10,700+
Last Updated
Feb 22, 2026
License
MIT

That's not typical open-source traction. That's a project with genuine community gravity. For reference: the companion skills repo (which archives all ClawHub skills) has 444 stars and the clawhub repo (the skill directory itself) sits at 580 — both updated within the same 24-hour window as the main repo.


Repository Structure Explained

Core Folders and What Each Does

I went through the actual folder tree so you don't have to guess. Here's what matters:

Folder
What It Does
.agent/workflows
Agent-level workflow definitions used internally
.agents
Multi-agent routing configs
.github
CI/CD actions, issue templates, PR templates
src/
Core TypeScript source — gateway, channels, sessions
extensions/
Optional plugins (lobster, llm-task, open-prose, etc.)
skills/
Bundled skills for baseline UX (new skills go to ClawHub first)
docs/
Documentation source, including plugin API docs
docker/
Docker-based install configs

The design philosophy — documented in VISION.md — is explicit: core stays lean, optional capability ships as plugins. New skills go to clawhub.ai first, not into core. That's a meaningful architectural decision that affects how you contribute (more on that below).

Key Config Files

File
Purpose
package.json
Entry points, scripts (pnpm build, pnpm ui:build)
docker-compose.yml
Docker-based gateway setup
CONTRIBUTING.md
PR rules, code style, issue guidelines
VISION.md
Project direction and roadmap guardrails
LICENSE
MIT — fork and use freely

Skills Directory Deep Dive

The skills/ folder inside core contains bundled skills — baseline features that ship with OpenClaw out of the box. Everything else lives in the separate openclaw/skills archive repo (Python, 444 stars, 1,275+ entries as of Feb 22, 2026), which mirrors everything published to ClawHub.

If you're building a new skill, the correct path is: develop locally → test → publish to ClawHub → don't PR it into core unless there's a strong product or security reason.


How to Fork and Run OpenClaw Locally from GitHub

Prerequisites (Node, Docker, Git)

Before you clone anything, check these:

  • Node.js ≥ 22 (hard requirement, specified in the README)
  • pnpm (preferred for builds from source; npm works for global installs)
  • Git (obviously)
  • Docker (optional but recommended for isolated setups — see openclaw-ansible for a hardened Tailscale + UFW + Docker approach)
  • WSL2 if you're on Windows (strongly recommended by the project)

Quick sanity check before starting:

node --version   # must be ≥ 22
pnpm --version   # any recent version works
git --version

Step-by-Step Fork → Clone → Install → Run

Option A: Global npm install (fastest)

npm install -g openclaw@latest
# or with pnpm:
pnpm add -g openclaw@latest
openclaw onboard --install-daemon

The onboarding wizard handles gateway setup, workspace config, channel pairing, and skill installation interactively. It installs a system daemon (launchd on macOS, systemd on Linux) so the gateway stays running between reboots.

Option B: Build from source (for contributors)

git clone https://github.com/openclaw/openclaw.git
cd openclaw
pnpm install
pnpm ui:build          # auto-installs UI deps on first run
pnpm build             # compiles to dist/
pnpm openclaw onboard --install-daemon
# Dev loop with auto-reload on TypeScript changes:
pnpm gateway:watch

Note: pnpm openclaw ... runs TypeScript directly via tsx. pnpm build produces the dist/ folder for running via Node or the packaged binary.

Switching release channels:

openclaw update --channel stable   # tagged releases (vYYYY.M.D)
openclaw update --channel beta     # prerelease tags
openclaw update --channel dev      # bleeding edge

Common Git Clone Errors and Fixes

Error
Likely Cause
Fix
EACCES: permission denied on global install
npm permissions issue
Use pnpm instead, or set npm prefix to ~/.npm-global
pnpm ui:build fails immediately
Missing UI deps
Run pnpm install first, then retry
pnpm gateway:watch exits silently
Node version < 22
Run node --version, upgrade if needed
openclaw doctor reports risky DM policy
Default dmPolicy is too open
Set dmPolicy="pairing" in config — unknown senders get a pairing code before the bot processes their messages
Windows clone issues with path separators
Drive-letter handling bug (fixed in recent release)
Update to 2026.2.21-2 or later

Run openclaw doctor after setup. It surfaces misconfigured DM policies and other risk signals before they become real problems.


How to Contribute to OpenClaw

Reading the CONTRIBUTING.md

The CONTRIBUTING.md is non-negotiable reading before you open anything. Key rules that will save you from a rejected PR:

  • One PR = one issue/topic. Don't bundle unrelated fixes.
  • PRs over ~5,000 changed lines are reviewed only in exceptional circumstances. Keep scope tight.
  • Don't open large batches of tiny PRs at once. Each PR has review cost and the maintainers are explicit about this.

Opening Issues vs. Pull Requests

Issues tracker (github.com/openclaw/openclaw/issues) has ~3,100 open items as of February 22, 2026. Before opening a new one, search first — with this volume of activity, your bug is probably already filed.

Good issue = reproducible steps + Node version + channel + error output from openclaw doctor.

For PRs: fork → branch → change → test → PR. The project uses GitHub Actions for CI. Your PR needs to pass checks before review.

Code Style and Testing Expectations

The codebase is TypeScript throughout. The project chose TypeScript specifically to stay hackable — the VISION.md says it explicitly: "widely known, fast to iterate in, and easy to read, modify, and extend." Match the existing patterns in whatever module you're touching.

For plugin/extension work, read docs/tools/plugin.md before writing a line. The plugin API is extensive and the bar for getting a plugin into core is intentionally high.


Staying Up to Date: Watching Releases and Changelogs

The release page (github.com/openclaw/openclaw/releases) is where actual change documentation lives — patch notes, security fixes, and contributor credits. Releases follow a date-based versioning scheme: vYYYY.M.D for stable, vYYYY.M.D-beta.N for prerelease.

Two things worth doing right now:

  1. Watch the repo on GitHub (Releases only, if you don't want noise)
  2. Follow the Discord linked from the README — security advisories and breaking changes get announced there before the release notes go up

One recent example worth noting: a security fix (GHSA-76m6-pj3w-v7mf) capped the embedded Pi runner retry loop to prevent unbounded internal retry cycles. That kind of fix lands in a patch release with no fanfare — you only know about it if you're watching releases.


Star the Repo — Then See How Macaron Handles the Workflow Layer

OpenClaw is a powerful self-hosted AI agent — but running it means owning the setup, the daemon, the channel auth, and the ongoing maintenance. If what you actually want is the agent capability without managing infrastructure yourself, that's where Macaron fits in: it's a personal AI agent that runs across your devices without the self-hosting overhead, built for people who want the workflows to work, not for people who want to manage the stack. Star the OpenClaw repo if you're going the DIY route — and if you want to run real tasks without the setup cost, try Macaron free and judge the results yourself.


Frequently Asked Questions

Q: Is openclaw github repo MIT licensed? Can I fork and commercialize it? Yes. MIT license. You can fork, modify, and use commercially. Check the LICENSE file for exact terms.

Q: What's the difference between openclaw/openclaw and openclaw/skills?openclaw/openclaw is the core gateway and assistant runtime. openclaw/skills is an archive of all skills published to ClawHub — it's a reference/backup repo, not where you develop new skills.

Q: Do I need Docker to run OpenClaw? No. Docker is optional. The CLI wizard (openclaw onboard) works without Docker on macOS, Linux, and Windows (WSL2). Docker becomes useful for hardened production setups — see openclaw-ansible for a full Tailscale + UFW + Docker deployment.

Q: Why does the repo recommend pnpm over npm? Build performance and workspace management. The monorepo structure (core + extensions) works significantly better with pnpm's linking behavior. npm will technically work for the global install but pnpm is the preferred path for source builds.

Q: The onboarding wizard asks for API keys. Is that required? You need at least one LLM provider configured. The repo supports local models via Ollama (zero API cost) — check the Ollama integration gist for a working config example. Frontier models (Claude, GPT, etc.) work out of the box with API keys.

Q: I see openclaw doctor mentioned everywhere. What does it actually check? DM policy risks, misconfigured channel allowlists, stale auth tokens, and version mismatches. Run it after any config change. It's the fastest way to know if your setup has obvious security gaps before they become problems.

Hey, I’m Hanks — a workflow tinkerer and AI tool obsessive with over a decade of hands-on experience in automation, SaaS, and content creation. I spend my days testing tools so you don’t have to, breaking down complex processes into simple, actionable steps, and digging into the numbers behind “what actually works.”

Apply to become Macaron's first friends