by wexare-ai
Browser-native personal AI assistant. Zero infrastructure, the browser is the server.
# Add to your Claude Code skills
git clone https://github.com/wexare-ai/openbrowserclawDisclaimer: OpenBrowserClaw is a personal, open-source project. It is not affiliated with any cryptocurrency, meme coin, token, or social media account. If you see coins, tokens, or social media profiles claiming association with this project, they are not legitimate and are not endorsed by the author(s). Stay safe and do your own research.
Browser-native personal AI assistant. Zero infrastructure — the browser is the server.
Built as a browser-only reimagination of NanoClaw. Same philosophy, small enough to understand, built for one user, but running entirely in a browser tab.
cd openbrowserclaw
npm install
npm run dev
Open http://localhost:5173, paste your Anthropic API key, and start chatting.
┌──────────────────────────────────────────────────────────┐
│ Browser Tab (PWA) │
│ │
│ ┌──────────┐ ┌──────────┐ ┌────────────────────────┐ │
│ │ Chat UI │ │ Settings │ │ Task Manager │ │
│ └────┬─────┘ └─────┬────┘ └───────┬────────────────┘ │
│ └──────────────┼───────────────┘ │
│ ▼ │
│ Orchestrator (main thread) │
│ ├── Message queue & routing │
│ ├── State machine (idle/thinking/responding)│
│ └── Task scheduler (cron) │
│ │ │
│ ┌───────────┼───────────┐ │
│ ▼ ▼ ▼ │
│ IndexedDB OPFS Agent Worker │
│ (messages, (group (Claude API │
│ tasks, files, tool-use loop, │
│ config) memory) WebVM sandbox) │
│ │
│ Channels: │
│ ├── Browser Chat (built-in) │
│ └── Telegram Bot API (optional, pure HTTPS) │
└──────────────────────────────────────────────────────────┘
| File | Purpose |
|------|---------|
| src/index.ts | Entry point, bootstraps UI |
| src/orchestrator.ts | State machine, message routing, agent invocation |
| src/agent-worker.ts | Web Worker: Claude API tool-use loop |
| src/tools.ts | Tool definitions (bash, read/write files, fetch, etc.) |
| src/vm.ts | WebVM wrapper (v86 Alpine Linux in WASM) |
| src/db.ts | IndexedDB: messages, sessions, tasks, config |
| src/storage.ts | OPFS: per-group file storage |
| src/router.ts | Routes messages to correct channel |
| src/channels/browser-chat.ts | In-browser chat channel |
| src/channels/telegram.ts | Telegram Bot API channel |
| src/task-scheduler.ts | Cron expression evaluation |
| src/crypto.ts | AES-256-GCM encryption for stored credentials |
| src/ui/ | Chat, settings, and task manager components |
| Tool | What it does |
|------|-------------|
| bash | Execute shell commands in a sandboxed Linux VM (Alpine in WASM) |
| javascript | Execute JS code in an isolated scope (lighter than bash) |
| read_file / write_file / list_files | Manage files in OPFS per-group workspace |
| fetch_url | HTTP requests via browser fetch() (subject to CORS) |
| update_memory | Persist context to CLAUDE.md (loaded on every conversation) |
| create_task | Schedule recurring tasks with cron expressions |
Optional. Works entirely via HTTPS — no WebSockets or special protocols.
@BotFather on Telegram/chatid to your bot to get the chat IDCaveat: The browser tab must be open for the bot to respond. Messages queue on Telegram's side and are processed when you reopen the tab.
The bash tool runs commands in a v86-emulated Alpine Linux. To enable:
public/assets/:
public/assets/v86.wasmpublic/assets/v86/libv86.jspublic/assets/alpine-rootfs.ext2Without these assets, the bash tool returns a helpful error. All other tools work without the VM.
| | NanoClaw | OpenBrowserClaw | |---|---|---| | Runtime | Node.js process | Browser tab | | Agent sandbox | Docker/Apple Container | Web Worker + WebVM | | Database | SQLite (better-sqlite3) | IndexedDB | | Files | Filesystem | OPFS | | Primary channel | WhatsApp | In-browser chat | | Other channels | Telegram, Discord | Telegram | | Agent SDK | Claude Agent SDK | Raw Anthropic API | | Background tasks | launchd service | setInterval (tab must be open) | | Deployment | Self-hosted server | Static files (any CDN) | | Dependencies | ~50 npm packages | 0 runtime deps |
npm run dev # Vite dev server with HMR
npm run build # Production build → dist/
npm run preview # Preview production build
npm run typecheck # TypeScript type checking
npm run build
# Upload dist/ to any static host:
# GitHub Pages, Cloudflare Pages, Netlify, Vercel, S3, etc.
No server needed. It's just HTML, CSS, and JS.
OpenBrowserClaw is a proof of concept. All data stays in your browser, nothing is sent to any server except the Anthropic API. Here's an honest look at the current security posture:
What it does:
CryptoKey stored in IndexedDB. JavaScript cannot export the raw key material.What it doesn't do (yet):
javascript tool runs eval() in the Worker, which has access to fetch(). This means Claude can make arbitrary HTTP requests through the JS tool regardless of any fetch_url restrictions.fetch_url or the JS tool) have no user confirmation step.This is a single-user local tool, not a multi-tenant platform. Contributions to improve the security model are welcome.
No comments yet. Be the first to share your thoughts!