Clawbot Developer Guide | OpenClaw on GitHub, Architecture, Gateway API, and Plugin Development

This guide follows the official docs and GitHub README as of September 2026. The plugin APIs are marked experimental, so recheck the docs when you upgrade.
Where Is the Official Project?
| Item | Location |
|---|---|
| Source code | https://github.com/openclaw/openclaw |
| Official docs | https://docs.openclaw.ai |
| npm package | openclaw (latest version 2026.9.7 when checked on 2026-10-01) |
| Skills / plugin registry | https://clawhub.ai |
| Windows companion app | https://github.com/openclaw/openclaw-windows-node |
The project finished its rename on January 30, 2026, moving GitHub, npm, and the docs site to OpenClaw. Repos like clawbot/... or URLs like api.clawbot.io are not the official project.
License and governance
- License: MIT, © OpenClaw Foundation (the License section of the README). Commercial use is allowed as long as you keep the license notice
- Governance: developed in the open by the OpenClaw Foundation, an independent 501(c)(3) non-profit that employs the core team and signs releases
- Sponsors: donors and infrastructure sponsors do not own or direct the project
Building from Source
The development flow from the official README:
git clone https://github.com/openclaw/openclaw.git
cd openclaw
pnpm install
pnpm build
pnpm ui:build
Notes:
- The repository is a pnpm workspace; plain
npm installat the root is not supported - You need Node 24.16+ or 26.1+
- To use your local build as the global command, the official install docs use
pnpm add --global "openclaw@link:$PWD", thenopenclaw onboard --install-daemon - For the full development loop, see the official Setup docs and
CONTRIBUTING.mdin the repo
Architecture: The Gateway Is the Core
From the official architecture docs:
- One Gateway per host: a long-lived service that owns every messaging connection (for example WhatsApp via Baileys and Telegram via grammY), plus Slack, Discord, Signal, iMessage, and WebChat
- Control-plane clients (the macOS app, CLI, web Control UI, and automations) connect to the Gateway over WebSocket, by default at
127.0.0.1:18789 - Nodes (macOS, iOS, Android, or headless devices) connect to the same WebSocket server but declare
role: node, exposing device commands such as camera, screen recording, and location, with device-based pairing - The Gateway exposes a typed WebSocket API (requests, responses, server-push events) and validates inbound frames against JSON Schema

How Do External Programs Integrate with OpenClaw?
OpenClaw has no hosted REST API. The integration paths listed in the official docs (the first four come from the "External apps" page; inbound webhooks come from the "Inbound webhooks" page):
| Path | Best for | What it does |
|---|---|---|
| Gateway protocol (WebSocket + RPC) | Dashboards, IDE extensions, long-running processes | Connect to the Gateway and call RPC methods to start agent runs, stream events, wait for results, and cancel work |
| Gateway client packages | Clients written in Node | Official npm packages handle pairing, reconnects, history, and event subscriptions |
openclaw agent command | Simple scripts | One-shot agent calls when shelling out to the CLI is enough |
openclaw message command | Scripts that send messages | Send messages or run channel actions from scripts |
| Inbound webhooks | External services | External systems wake an agent or submit a turn over HTTP (disabled by default) |
The recommended path: connect to the Gateway → call the documented RPC methods → pin the OpenClaw version you tested against → recheck the RPC reference when upgrading. For agent runs, start with the agent RPC paired with agent.wait; for durable conversation state, use the sessions.* methods.
For webhook setup, see the OpenClaw AI agent automation guide.
Code that runs inside the OpenClaw process (plugins) should use the official
openclaw/plugin-sdk/*subpaths rather than these external interfaces.
Extending OpenClaw: Skills
Skills are markdown instruction files that teach an agent how and when to use tools. Each skill is a directory containing a SKILL.md with YAML frontmatter. OpenClaw loads bundled skills plus local overrides and filters them by environment, config, and whether the required binaries are present.
Search and install skills from ClawHub:
openclaw skills search "calendar"
openclaw skills install @openclaw/demo
openclaw skills update --all
Extending OpenClaw: Plugins
Plugins extend OpenClaw without changing core. A plugin can add a messaging channel, model provider, local CLI backend, agent tool, hook, media provider, and more.
Requirements (from the official "Building plugins" docs):
- All plugin APIs are experimental: pin your OpenClaw host version and test each version you declare compatible
- Node 24.16+ or 26.1+, with npm or pnpm
- TypeScript ESM modules
External plugins don't need to be merged into the OpenClaw repository. Publish to ClawHub, and users install with:
openclaw plugins install clawhub:<package-name>
Bare package names install from npm. Registry operations such as publishing and auth use the separate clawhub CLI.
How to Contribute
- Contribution workflow: see
CONTRIBUTING.mdin the repo; the README says AI-assisted PRs are welcome - Bugs and feature requests: use the GitHub issue chooser
- Setup questions: ask in the official Discord
- Security vulnerabilities: report privately following
SECURITY.md - New capabilities: the project suggests these usually belong in plugins shared through ClawHub rather than in core
Security Reminders for Developers
- Treat all inbound messages and web content as untrusted input
- Unless you configure sandboxing, tools in the main session run directly on the host
- One Gateway is one trust domain; mutually untrusting users need separate deployments
- Before publishing skills or plugins, follow ClawHub's security and moderation guidelines
FAQ
Does OpenClaw have an official REST API?
There is no hosted REST API. External programs integrate through the local Gateway's WebSocket protocol and RPC methods, or by calling the CLI or using webhooks.
What is OpenClaw's license? Can I use it commercially?
MIT, copyright the OpenClaw Foundation. MIT allows commercial use and modification, provided you keep the original license and copyright notice. See also THIRD_PARTY_NOTICES.md in the repo.
What about the old Clawdbot and Moltbot repos?
The project moved to github.com/openclaw/openclaw on January 30, 2026, and the npm package is published as openclaw. Use the new locations.
What language are plugins written in?
TypeScript ESM modules with Node 24.16+ or 26.1+. Plugin APIs are experimental, so pin the versions you tested.
What's the difference between skills and plugins?
Skills are markdown instructions for the agent, teaching it how to use existing tools; plugins are code that adds new capabilities such as channels, model providers, and tools.
Free Consultation: Find the Right AI Automation Solution for You
Want to integrate an AI assistant into your existing systems? CloudInsight offers free consultations for:
- Evaluating AI automation tools
- Designing automation workflows
- API integration and architecture advice
Book a free consultation -- we'll get back to you within 24 hours. All consultations are fully confidential, with absolutely no sales pressure.
References
- OpenClaw GitHub README (openclaw/openclaw) - https://github.com/openclaw/openclaw
- OpenClaw docs, "Architecture" - https://docs.openclaw.ai/concepts/architecture
- OpenClaw docs, "Gateway integrations for external apps" - https://docs.openclaw.ai/gateway/external-apps
- OpenClaw docs, "Skills" - https://docs.openclaw.ai/tools/skills
- OpenClaw docs, "Building plugins" - https://docs.openclaw.ai/plugins/building-plugins
- OpenClaw docs, "ClawHub" - https://docs.openclaw.ai/clawhub
- npm package openclaw - https://www.npmjs.com/package/openclaw
Need Professional Cloud Advice?
Whether you're evaluating cloud platforms, optimizing existing architecture, or looking for cost-saving solutions, we can help
Book Free ConsultationRelated Articles
How to Use the Clawbot AI Agent: OpenClaw Automation with Scheduling, Browser Control, and Webhooks
Clawbot is now OpenClaw. Based on the official docs, this guide shows how to automate with OpenClaw's AI agent: schedule daily reports with Automations, let an agent drive a browser, trigger agents from external services such as n8n via webhooks, and when to use hooks and standing orders, plus the security precautions.
AI AutomationClawbot Installation Guide | Installing and Setting Up OpenClaw on Mac, Windows, and Linux [2026]
Clawbot is now OpenClaw. Following the official docs, this guide walks you through installing OpenClaw on macOS, Linux, and Windows (Windows Hub, PowerShell, WSL2), completing onboarding, running the Gateway in the background, opening the dashboard, connecting Telegram, and installing the Chrome extension.
AI AutomationWhat Is Clawbot? It's Now OpenClaw: Features, Name History, and Who It's For [2026]
Clawbot has been renamed OpenClaw: an open-source AI assistant you run on your own computer and talk to through WhatsApp, Telegram, Slack, and other chat apps. This guide covers the name history (Clawdbot → Moltbot → OpenClaw), core features, cost, who it suits, and the security basics to know before you start.