OpenClaw SDK
TypeScript SDK for connecting to OpenClaw Gateway via WebSocket. Provides a high-level client interface with connection management, request/response handling, and event emission.
Create a new OpenClaw client instance.
Client configuration
A new OpenClaw client instance
const client = createClient({ url: "ws://localhost:8080", clientId: "my-app", auth: { token: "my-token" }});await client.connect();const result = await client.request("ping"); Copy
const client = createClient({ url: "ws://localhost:8080", clientId: "my-app", auth: { token: "my-token" }});await client.connect();const result = await client.request("ping");
OpenClaw SDK
TypeScript SDK for connecting to OpenClaw Gateway via WebSocket. Provides a high-level client interface with connection management, request/response handling, and event emission.