OpenClaw Node.js Client

JSON →
library 0.12.1 ·javascript
verified Jun 7, 2026

A Node.js client for the OpenClaw Gateway WebSocket protocol, enabling communication with AI agents. Version 0.12.1 is the latest stable release, with frequent updates as the project is actively developed. Differentiators include streaming and sync chat APIs, built-in auto-reconnect, and first-class TypeScript support. Requires Node.js 20+ (22+ for built-in WebSocket) and a running OpenClaw Gateway server. The library handles WebSocket handshake, authentication, and keepalive automatically. Compared to alternatives like LangChain or Vercel AI SDK, OpenClaw focuses on persistent agents with tools and memory, running locally via a gateway.