No server required. Runs locally in your browser.
import { AgentContainerManager } from 'vibeclaw';
// Load the OpenClaw runtime
const snapshot = await fetch(OPENCLAW_VFS_URL).then(r => r.json());
const manager = new AgentContainerManager({
maxContainers: 10,
defaultExecutionTimeoutMs: 30_000,
});
// Spawn gateway — your key goes direct to Anthropic
const gw = await manager.spawn({
id: 'openclaw-gateway',
vfsSnapshot: snapshot,
cwd: '/openclaw',
env: {
OPENROUTER_API_KEY: OPENROUTER_API_KEY,
NODE_ENV: 'production',
OPENCLAW_PORT: '18789',
},
});
await manager.execute(gw.id, `
const loader = require('/openclaw/loader.cjs');
loader.registerStubs();
loader.setupEnv();
`);
console.log('🦀 OpenClaw Sandbox Gateway online!');// Configure the sandbox agent
await manager.execute(gw.id, `
const config = require('/openclaw/config.cjs');
config.set({
agent: {
name: 'Sandbox Agent',
emoji: '🦀',
model: 'claude-sonnet-4-20250514',
maxTokens: 16384,
},
gateway: { port: 18789, bind: 'loopback' },
skills: { enableAll: true },
cron: { jobs: [{
name: 'health-check',
schedule: '*/5 * * * *',
task: 'Run a quick health check',
}] },
});
`);
await manager.writeFile(gw.id, '/openclaw/SOUL.md', `
# 🦀 Sandbox Agent
You are a helpful coding assistant running
entirely in a browser sandbox.
`);// Chat with your sandbox agent — 100% in-browser
// Your key goes direct to Anthropic, never our servers
await client.chat('Hello! What can you do?', {
sessionKey: 'agent:sandbox:main',
});
// ✅ Read/write files in virtual workspace
// ✅ Execute JavaScript and TypeScript
// ✅ Install npm packages
// ✅ Use tools (search, edit, create files)
// ✅ Run cron jobs on a schedule
// ✅ Maintain conversation history
// Future: WebGPU local inference — no API key at all
// import { CreateMLCEngine } from '@mlc-ai/web-llm';
// const engine = await CreateMLCEngine('Qwen2.5-Coder-1.5B-Instruct-q4f16_1-MLC');Boot a full OpenClaw agent in your browser in seconds. Paste your Anthropic key and start chatting — no install, no Docker, no CLI.
API calls go direct from your browser to Anthropic. Your key never touches our servers. Close the tab and it's gone.
Not a mockup — a real Node.js container with a virtual filesystem, 40+ shimmed modules, and npm package support. Powered by almostnode.
Already running OpenClaw? Connect to your live gateway via WebSocket. See all sessions, agents, files, skills, cron jobs, metrics — everything.
3-column gateway dashboard with streaming chat, session management, workspace file browser, skill status, cron jobs, cost tracking, and live logs.
Run Qwen2.5-Coder 1.5B locally via WebGPU — no API key, no network. A fully self-contained coding agent in ~900MB.
Full 3-column dashboard — connect to your live OpenClaw gateway and see everything: sessions, chat, files, skills, cron, metrics, logs.
openclaw · gateway · liveSpin up a multi-agent squad — 4 AI agents with workspaces, kanban task board, and coordinated task execution.
clawe · multi-agent · kanbanRun a Node.js HTTP server entirely in the browser. The foundation that makes everything else possible.
almostnode · http · require()Minimal example — connect to an OpenClaw gateway, authenticate, and make your first API call.
websocket · gateway · json-rpclocalhost:18789 via the Vite proxy).