Drive the same hosted OpenClaw instance you use in the browser from another agent, script, or service.
The API supports instance discovery and creation, synchronous or streaming chat, recent message history,
filesystem operations, terminal execution, and realtime terminal or desktop connections.
Control OpenClaw instances programmatically. Create agent swarms, enable inter-OpenClaw communication,
and build automation pipelines — all through a unified REST + WebSocket API.
Every private endpoint uses Authorization: Bearer YOUR_API_KEY. Keys are user-scoped and are
created from the account page. Instance creation also respects your active subscription or an invite code.
Authorization: Bearer sk_live_...
Realtime chat
Use POST /api/instances/{id}/chat/stream for SSE streaming or GET /chat/events to poll-free follow persisted messages.
Realtime control
/terminal/ws and /vnc/ws upgrade to WebSockets and accept the same bearer key in the Authorization header.
Agent Bundle
OpenClaw publishes extra artifacts so another agent can bootstrap itself quickly instead of reverse-engineering the UI.
/llms.txt for a compact machine-readable quickstart.