
Skills, memory, channels, models. Declare what your agent does. ClawJS handles the rest across 9+ runtime adapters.
Open Source ยท MIT License
Capabilities
Skills, memory, channels, plugins. Every building block of your AI agent is declarative and portable. Define it once, run it on any adapter. No rewrites, no surprises.
Quick Start
The API is built around runtime adapters, workspace contracts, provider catalogs, and normalized conversation transports.
Capabilities such as scheduler, memory, skills, channels, sandbox, and plugins are declared explicitly per adapter.
import { Claw } from "@clawjs/claw";
const claw = await Claw({
runtime: { adapter: "openclaw" },
});
for await (const ev of claw.conversations.stream({
sessionId: "demo",
})) {
console.log(ev.text);
}
Supported Adapters
Not a leaky abstraction. A typed contract. Each adapter declares what it can do, what it can't, and how it degrades. Switch runtimes, keep your code.
Full-featured open-source runtime. Complete capability coverage for production stacks with no proprietary dependencies.
Zero-config setup. Sensible defaults for every setting so you can go from install to streaming in under a minute.
Hardened for enterprise. Stricter sandboxing, audit logging, and compliance-ready defaults for regulated environments.
Bridge to external APIs. Routes requests through third-party providers while keeping the same SDK interface.
Lightweight embedded agents. Minimal memory footprint for edge devices, IoT, and resource-constrained environments.
Minimal runtime footprint. Only the essentials for quick prototypes, CLIs, and single-purpose agent scripts.
Settings Preview
Select, install, and manage runtime adapters directly from your app. Everything is wired through the SDK.
import { Claw } from "@clawjs/claw";
const claw = await Claw({
runtime: { adapter: "openclaw" }
});
const status = await claw.runtime.status();
console.log(status.ready, status.capabilityMap);
await claw.runtime.switchAdapter("zeroclaw");
for await (const ev of claw.runtime.install("picoclaw")) {
console.log(ev.percent, ev.message);
}
Settings Preview
Connect to any AI provider via OAuth or API keys. Switch default models with one click.
// Connect via OAuth
await claw.auth.connectOAuth(
"openai-codex"
);
// Or set an API key
await claw.auth.setApiKey(
"anthropic", apiKey
);
// Browse the model catalog
const models =
await claw.models.catalog();
// Pick your default model
await claw.models.setDefault(
"anthropic/claude-sonnet-4-6"
);
// Check connection state
const auth =
await claw.auth.state("anthropic");
console.log(auth.connected);
Settings Preview
Connect messaging platforms, calendars, and contacts to your agent in seconds.
await claw.channels.enable("whatsapp");
const s = await claw.channels.status("whatsapp");
// { state: "connected" }
await claw.channels.configure("whatsapp", {
excludeGroups: true,
autoTranscribe: true,
});
const all = await claw.channels.list();
await claw.channels.disable("telegram");
Command Line
Scaffold projects, connect channels, run diagnostics, stream conversations. The claw CLI handles everything from your terminal.
claw doctor
Productivity
Specialized agents pick up tasks, execute them, and report back. Like handing your company's ops to a team of AI workers.
Team Builder
Design your org structure, assign specialized agents to every role, and watch them collaborate in real time. From CEO to individual contributors, every seat runs autonomously.
Relationships
AI agents enrich profiles, schedule follow-ups, track deals, and keep every relationship warm. Personal and professional, all in one place.
Chat Preview
A full streaming chat interface out of the box. Markdown, voice notes, context chips, and multi-session support.
A complete AI assistant built with ClawJS: real-time chat, workspace setup, provider onboarding, channel integrations and full settings management.
Explore the Demo