|
No server required to run Claw Agents, use ClawLess to run on browser! A serverless browser-based runtime for Claw AI Agents powered by WebContainers
|
Quick Start · Documentation · SDK Usage · Contributing · Discussions
Run, observe, and control AI agents entirely in the browser — no backend required. ClawLess provides a full sandboxed Node.js environment via WebContainers (WASM) with built-in editor, terminal, policy engine, and audit logging.
An AI agent using learned skills to build a 9-slide Lobster presentation with pptxgenjs — installed and executed entirely in the browser.
ClawLess runs a full Node.js runtime in the browser via WebContainers — that means access to 3.4 million+ npm packages. In this example, the agent installs pptxgenjs, generates a polished PowerPoint file with charts, images, and styled layouts, and saves it to the virtual filesystem — all without a server. The agent even learns and crystallizes reusable skills for future tasks.
An AI agent building and previewing a calculator app — code, execution, and live preview, all inside the browser.
The agent runs inside a WebContainer with full virtual filesystem access — reading, writing, and executing files in an isolated WASM runtime. No server, no backend, no access to the host system. Everything from code generation to live preview happens within the sandboxed browser environment, completely isolated from your machine.
Full audit trail — every process spawn, file write, network request, and agent action is logged and filterable.
Every action inside the container is tracked end-to-end: process lifecycle, file I/O, network requests/responses, environment configuration, and policy enforcement. Sensitive headers like API keys are automatically masked. Filter by source, level, or event type — and download the full audit log for compliance and debugging.
Declarative YAML policy engine — define exactly what agents can and cannot do.
Control agent behavior with a built-in policy system. Define file access rules, allowed processes, port bindings, and runtime limits like max file size, max processes, max turns, and timeout — all in a simple YAML format. Policies are enforced at the container level, so agents cannot bypass them. Apply or reset policies on the fly without restarting the container.
fetch and Node.js http calls# Run locally
git clone https://github.com/open-gitagent/clawless.git
cd clawless
npm install
npm run dev
# Install as a dependency
npm install clawcontainer
import { ClawContainer } from 'clawcontainer';
const cc = new ClawContainer('#app', {
template: 'gitclaw',
env: { ANTHROPIC_API_KEY: 'sk-...' }
});
await cc.start();
cc.on('ready', () => console.log('Container ready!'));
| Component | Role |
|---|---|
| ClawContainer | SDK facade — the single entry point for consumers |
| ContainerManager | WebContainer orchestration and lifecycle |
| PolicyEngine | YAML-based guardrails enforcing file, process, and network rules |
| AuditLog | Complete event trail for every action inside the container |
| GitService | GitHub API integration (clone, commit, push) |
| PluginManager | Lifecycle hooks for extending container behavior |
| UIManager | Monaco Editor, xterm.js terminal, and tab management |
ClawLess is configured through environment variables passed to the ClawContainer constructor:
| Variable | Purpose |
|---|---|
ANTHROPIC_API_KEY | Anthropic API key |
OPENAI_API_KEY | OpenAI API key |
GOOGLE_AI_API_KEY | Google AI API key |
CLAWLESS_MODEL | Model selection (e.g. claude-sonnet-4-20250514, gpt-4o) |
All runtime state is persisted to localStorage under the clawchef_ prefix, so sessions survive page reloads.
| Provider | Models |
|---|---|
| Anthropic | Claude Sonnet, Claude Opus, Claude Haiku |
| OpenAI | GPT-4o, GPT-4, GPT-3.5 |
| Gemini Pro, Gemini Flash |
Documentation | Contributing | License | GitAgent Standard
Built with care by Shreyas Kapale / Lyzr
If ClawLess helps you, consider giving it a star on GitHub!