ClawJS

Ship AI Agents Fast.
Declarative. Portable.

Skills, memory, channels, models. Declare what your agent does. ClawJS handles the rest across 9+ runtime adapters.

Open Source ยท MIT License

$ npm install -g @clawjs/cli

Everything You Need, Declared in One Place

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.

Skills
Give your agent abilities. Define reusable skills as simple declarations, from web search to document parsing, and compose them like building blocks.
Memory
Your agent remembers. Short-term context, long-term knowledge, user preferences. All managed through a single declarative layer that persists across conversations.
Channels
Telegram, Slack, Discord, WhatsApp, or your own API. Declare which channels your agent speaks on and ClawJS handles the transport and message formatting.
Plugins
Extend your agent with community or custom plugins. Database connectors, payment gateways, CRMs. Plug them in declaratively without touching your core logic.
Providers & Models
OpenAI, Anthropic, Gemini, Ollama. Pick any LLM provider. ClawJS handles auth, token rotation, and fallbacks. Switch models without changing a single line of code.
Conversations
Multi-turn, multi-user, multi-channel. Your agent holds natural conversations with context, streaming, and history. Across every channel you've declared.
Scheduler
Automate recurring tasks with simple cron-like declarations. Your agent can send reminders, sync data, or run health checks. On autopilot, on schedule.
One-Command Setup
Install, configure, and launch any runtime in a single command. ClawJS scaffolds your workspace, validates your config, and gets your agent running in seconds.
No Silent Failures
Every capability is declared, not assumed. If something isn't available in your runtime, ClawJS tells you at build time, not at 3 AM in production.

Swap runtimes without rewriting your app

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.

Runtime adapters with typed capability contracts
Streaming conversations across any transport
Hot-swap adapters without restarting
app.ts
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);
}

A Real Runtime-Adapter Layer

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.

OpenClaw

Full

Full-featured open-source runtime. Complete capability coverage for production stacks with no proprietary dependencies.

ZeroClaw

Zero-config

Zero-config setup. Sensible defaults for every setting so you can go from install to streaming in under a minute.

IronClaw

Enterprise

Hardened for enterprise. Stricter sandboxing, audit logging, and compliance-ready defaults for regulated environments.

Hermes

Bridge

Bridge to external APIs. Routes requests through third-party providers while keeping the same SDK interface.

NanoClaw

Edge

Lightweight embedded agents. Minimal memory footprint for edge devices, IoT, and resource-constrained environments.

PicoClaw

Minimal

Minimal runtime footprint. Only the essentials for quick prototypes, CLIs, and single-purpose agent scripts.

Built-in Runtime Management

Select, install, and manage runtime adapters directly from your app. Everything is wired through the SDK.

runtime.ts
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);
}

Multi-Provider AI Models

Connect to any AI provider via OAuth or API keys. Switch default models with one click.

providers.ts
// 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);

Channel Integrations

Connect messaging platforms, calendars, and contacts to your agent in seconds.

channels.ts
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");

Your agent, one command away

Scaffold projects, connect channels, run diagnostics, stream conversations. The claw CLI handles everything from your terminal.

Create, build and deploy from the CLI
Built-in diagnostics with claw doctor
Stream agent conversations in your terminal
Terminal

AI Agents Running Your Operations

Specialized agents pick up tasks, execute them, and report back. Like handing your company's ops to a team of AI workers.

Build Your Startup with AI Agents

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.

Your Entire Network, Agent-Managed

AI agents enrich profiles, schedule follow-ups, track deals, and keep every relationship warm. Personal and professional, all in one place.

Built-in Conversational UI

A full streaming chat interface out of the box. Markdown, voice notes, context chips, and multi-session support.

Live Demo

See It in Action

A complete AI assistant built with ClawJS: real-time chat, workspace setup, provider onboarding, channel integrations and full settings management.

Explore the Demo
Streaming Chat WhatsApp & Email Multi-Provider AI Calendar Sync
4 Channels
3+ AI Providers
Real-time Streaming