diff --git a/.github/assets/chat-agent.webp b/.github/assets/chat-agent.webp new file mode 100644 index 000000000..61f0437d0 Binary files /dev/null and b/.github/assets/chat-agent.webp differ diff --git a/.github/assets/clawbox-device.webp b/.github/assets/clawbox-device.webp new file mode 100644 index 000000000..385758442 Binary files /dev/null and b/.github/assets/clawbox-device.webp differ diff --git a/.github/assets/desktop.webp b/.github/assets/desktop.webp new file mode 100644 index 000000000..14b0f78ce Binary files /dev/null and b/.github/assets/desktop.webp differ diff --git a/.github/assets/wordmark-dark.png b/.github/assets/wordmark-dark.png new file mode 100644 index 000000000..d88247750 Binary files /dev/null and b/.github/assets/wordmark-dark.png differ diff --git a/.github/assets/wordmark-light.png b/.github/assets/wordmark-light.png new file mode 100644 index 000000000..2f2949409 Binary files /dev/null and b/.github/assets/wordmark-light.png differ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1a4b20bb3..4bd8c9d7f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -65,7 +65,7 @@ Found a vulnerability? **Do not open a public issue.** Email **yanko@idrobots.co ## Community -- [Discord](https://discord.gg/FbKmnxYnpq) โ€” get help, share your setup +- [Discord](https://discord.gg/vsTsaY4Tuk) โ€” get help, share your setup - [Discussions](https://github.com/ID-Robots/clawbox/discussions) โ€” ideas and Q&A ## Code of Conduct diff --git a/README.md b/README.md index 0a0170838..9b7df2c12 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@

- ClawBox + + + ClawBox +

OpenClaw OS

@@ -11,50 +14,81 @@

Website - Discord + Docs + Discord + Latest release License - Platform

+ Platform Next.js TypeScript Bun

+

+ The ClawBox desktop โ€” a Chrome OS-style environment served straight from the device +

+ --- ## What is ClawBox? -ClawBox is **OpenClaw OS** โ€” the operating system for [OpenClaw Hardware](https://clawbox.tech/), a private AI assistant running on NVIDIA Jetson (Tegra/ARM). Unlike cloud AI, your data never leaves your device. It manages the full device lifecycle: broadcasts a WiFi access point for first-boot setup from any phone/laptop, transitions to the home network, then serves a Chrome OS-style desktop environment with built-in apps. +ClawBox is **OpenClaw OS** โ€” the operating system for [ClawBox hardware](https://clawbox.tech/), a private AI assistant on NVIDIA Jetson. Local-first: your files, chats, and settings live on the box, and with local models nothing leaves it โ€” cloud AI (Claude, GPT, Gemini) is strictly opt-in. On first boot it broadcasts a WiFi access point so you can set it up from any phone; then it joins your network and serves a Chrome OS-style desktop with built-in apps. -The OpenClaw AI agent controls the entire device through MCP (Model Context Protocol) tools โ€” making ClawBox an OS the AI can operate, not just a UI the user clicks through. +The OpenClaw AI agent controls the entire device through MCP (Model Context Protocol) tools โ€” making ClawBox **an OS the AI can operate**, not just a UI the user clicks through: + +

+ The on-device agent answering in chat while running real commands on the box (live tool calls visible) +

+ +

A real session: the agent introduces itself while executing live tool calls (exec, glob).

### Key Features | Feature | Description | |---------|-------------| -| ๐Ÿง™ **5-minute setup** | Guided wizard: WiFi โ†’ updates โ†’ AI provider โ†’ messaging โ†’ done | +| ๐Ÿง™ **5-minute setup** | Guided wizard: WiFi โ†’ updates โ†’ password โ†’ AI provider โ†’ messaging โ†’ done | | ๐Ÿ–ฅ๏ธ **Desktop environment** | Chrome OS-style desktop with windowed apps, taskbar, and system tray | -| ๐Ÿค– **AI-controlled OS** | 40+ MCP tools let the AI agent operate the entire device | -| ๐Ÿ”’ **Privacy-first** | Everything runs locally. No telemetry. No data collection. | -| ๐Ÿง  **Hybrid AI** | Local models (Llama, Gemma, Mistral) + cloud (Claude, GPT, Gemini) | +| ๐Ÿค– **AI-controlled OS** | ~50 MCP tools let the AI agent operate the entire device | +| ๐Ÿ”’ **Local-first** | Your data stays on the box; no telemetry, no data collection. Cloud AI only if you opt in | +| ๐Ÿง  **Flexible AI** | ClawBox AI out of the box โ€” or Claude, GPT (API or ChatGPT plan), Gemini, OpenRouter, local Ollama / llama.cpp | | ๐ŸŒ **Browser automation** | AI controls a real browser โ€” fills forms, scrapes data, posts content | -| ๐Ÿ’ฌ **Multi-platform** | Telegram, web panel, desktop chat | -| ๐Ÿ’ป **Built-in apps** | Terminal, file manager, VS Code, VNC, app store, AI chat | +| ๐Ÿ’ฌ **Multi-platform** | Telegram (pairing-protected), web panel, desktop chat | +| ๐Ÿ’ป **Built-in apps** | Terminal, file manager, VS Code, remote desktop, app store, AI chat, ClawKeep backups | | ๐Ÿ› ๏ธ **Code assistant** | AI builds and deploys desktop webapps through iterative coding | -| โšก **Always-on** | 7-15W power. Runs 24/7 for ~โ‚ฌ39/year in electricity | +| โšก **Always-on** | 7โ€“15 W power. Runs 24/7 for ~โ‚ฌ39/year in electricity | ### ๐Ÿ–ฅ๏ธ Hardware +The ClawBox device + | Component | Spec | |-----------|------| | **Processor** | NVIDIA Jetson Orin Nano 8GB (Super) | | **AI Performance** | 67 TOPS | | **Storage** | 512GB NVMe SSD | -| **Power** | 7-15W typical, USB-C | -| **Size** | 100 ร— 79 ร— 31mm | -| **Case** | Carbon fiber | +| **Power** | 7โ€“15 W typical, USB-C | +| **Size** | 100 ร— 79 ร— 31 mm | + +Also available: **ClawBox Workstation** โ€” NVIDIA DGX Spark, ~1 PFLOP, runs frontier-scale local models. Details on [clawbox.tech](https://clawbox.tech). + +
+ +--- + +## ๐Ÿ“– Documentation + +Full documentation lives at **[docs.clawbox.tech](https://docs.clawbox.tech)**: + +| | | +|---|---| +| [Quickstart](https://docs.clawbox.tech/quickstart) ยท [First Boot](https://docs.clawbox.tech/setup/first-boot) | Unbox โ†’ power โ†’ talk, and the setup wizard | +| [Technical Reference](https://docs.clawbox.tech/technical/quick-reference) | Quick Reference (one page), then architecture, networking, filesystem, auth, AI providers, updates | +| [Troubleshooting](https://docs.clawbox.tech/support/troubleshooting) ยท [Recovery](https://docs.clawbox.tech/support/recovery) | Symptom-first diagnostic ladders and ordered recovery options | +| [Agent Interface (MCP)](https://docs.clawbox.tech/technical/agent-interface) | The full device-tool catalog and the `clawbox` CLI | +| [llms.txt](https://docs.clawbox.tech/llms.txt) | Machine-readable docs index โ€” point your AI agent here | --- @@ -91,132 +125,42 @@ password) and navigate to: - `http://clawbox.local/` - `http://10.42.0.1/` -## How It Works - -### Layer 1 โ€” System Bootstrap - -The installer (`install.sh`) provisions the Jetson from scratch: -- Installs system packages, Node.js 22, Bun runtime -- Sets hostname to `clawbox`, enables mDNS discovery -- Builds the web OS, installs the OpenClaw gateway -- Configures systemd services and captive-portal DNS -- Creates the WiFi access point for first-boot setup - -Two systemd services run the OS: - -| Service | Role | -|---|---| -| `clawbox-ap` | WiFi access point (SSID: ClawBox-Setup, IP: 10.42.0.1) | -| `clawbox-setup` | Web server on port 80 (Next.js + WebSocket proxy) | - -### Layer 2 โ€” Setup Wizard - -On first boot (or after factory reset), the OS presents a 7-step wizard: +### Update -1. ๐ŸŒ **Welcome** โ€” Language selection (10 languages supported) -2. ๐Ÿ”’ **Security** โ€” Device password + WiFi hotspot credentials -3. ๐Ÿ“ถ **WiFi** โ€” Connect to your home/office network (or use Ethernet) -4. โฌ†๏ธ **Update** โ€” Pull latest system updates -5. ๐Ÿง  **AI Models** โ€” API key or OAuth login for Claude, GPT, Gemini, OpenRouter, ClawBox AI, or local Ollama -6. ๐Ÿ’ฌ **Telegram** โ€” Optional bot token for remote messaging -7. โœ… **Done** โ€” System status dashboard and factory reset option +From the UI: open the **System Update** app. Over SSH: `sudo clawbox update`. +Updates are release-tag based and never touch your data โ€” details in +[Updating ClawBox](https://docs.clawbox.tech/support/updating). -### Layer 3 โ€” Desktop Environment - -After setup, ClawBox serves a Chrome OS-style desktop accessible from any browser: - -- ๐Ÿค– **AI Chat** โ€” Full-window and floating popup chat via the OpenClaw gateway -- ๐Ÿ’ป **Terminal** โ€” xterm.js shell with WebSocket PTY -- ๐Ÿ“ **File Manager** โ€” Browse, upload, rename, delete files on the device -- ๐ŸŒ **Browser Automation** โ€” Visual Chromium control via DevTools Protocol -- ๐Ÿ–ฅ๏ธ **Remote Desktop** โ€” NoVNC viewer for VNC sessions -- ๐Ÿ“ **VS Code** โ€” Integrated code-server IDE -- ๐Ÿช **App Store** โ€” Discover and install skills from openclawhardware.dev -- โš™๏ธ **Settings** โ€” WiFi, AI provider, appearance, Telegram, system management -- ๐Ÿฆ™ **Ollama Models** โ€” Pull, search, and manage local AI models -- ๐Ÿฆ€ **Mascot** โ€” Animated crab companion with personality states - -The desktop features draggable/resizable windows, a taskbar with system tray, and a responsive mobile layout for phone access. - -### Layer 4 โ€” AI Agent Integration (MCP) - -The OpenClaw AI agent controls the device through an MCP (Model Context Protocol) server. This is what makes ClawBox an *OS* rather than just a dashboard โ€” the AI can operate the device autonomously. - -**Device control tools:** - -```text -system_stats / system_info / system_power โ€” monitor and manage the device -bash โ€” execute shell commands -read_file / write_file / edit_file โ€” file operations -list_directory / glob / grep โ€” search files and content -wifi_scan / wifi_status โ€” network management -ui_open_app / ui_notify โ€” control the desktop UI -``` - -**Browser automation tools:** - -```text -browser_launch / browser_navigate / browser_click / browser_type -browser_scroll / browser_screenshot / browser_keypress / browser_close -``` - -**App management tools:** +--- -```text -app_search / app_install / app_uninstall โ€” app store operations -webapp_create / webapp_update โ€” create desktop apps from HTML -preferences_get / preferences_set โ€” user preferences -``` +## How It Works -**Code assistant tools** (for building new desktop webapps): +**Layer 1 โ€” System bootstrap.** `install.sh` provisions the Jetson from scratch: system packages, Node.js 22 + Bun, the web OS build, the OpenClaw gateway (version-pinned), systemd services, mDNS, and the captive-portal WiFi access point for first-boot setup. -```text -code_project_init โ€” scaffold a new multi-file webapp project -code_project_list โ€” list all projects -code_project_build โ€” bundle CSS/JS into HTML, deploy to desktop, open the app -code_project_delete โ€” remove a project -code_file_write โ€” create or overwrite a project file -code_file_read โ€” read a project file -code_file_edit โ€” surgical string-replacement edits -code_file_delete โ€” remove a file -code_file_list โ€” recursive project tree -code_search โ€” grep across project files -``` +**Layer 2 โ€” Setup wizard.** On first boot (or after factory reset) a guided ~5-minute wizard covers WiFi (with language picker), updates, device password, AI provider (API key or OAuth sign-in), and Telegram โ€” see [First Boot](https://docs.clawbox.tech/setup/first-boot). -The code assistant enables the AI to iteratively build, test, and deploy new desktop apps โ€” write code across multiple files, make precise edits, search the codebase, then build a self-contained webapp that appears on the user's desktop. +**Layer 3 โ€” Desktop environment.** A Chrome OS-style desktop served from the device โ€” the built-in apps above in draggable windows, with taskbar, system tray, and a responsive mobile layout. The terminal is xterm.js over a WebSocket PTY; remote desktop is noVNC. -**CLI wrapper** (`clawbox` command): - -```bash -clawbox webapp create [color] < file.html -clawbox app open -clawbox app list -clawbox notify -clawbox system stats -clawbox code init [template] [color] -clawbox code build -clawbox code files -clawbox code search -``` +**Layer 4 โ€” AI agent integration.** The OpenClaw agent operates the device through MCP tools โ€” shell, files, real-browser control, app installs, system power, preferences, and a code assistant that builds and deploys desktop webapps. The `clawbox` CLI exposes the same surface to shell users. **Full catalog: [Agent Interface](https://docs.clawbox.tech/technical/agent-interface).** --- ## ๐Ÿ—๏ธ Architecture ```text -Browser (http://clawbox.local) +Browser (http://) โ”‚ โ”œโ”€โ”€ Port 80: Next.js (production-server.js) โ”‚ โ”œโ”€โ”€ /setup โ†’ Setup wizard (React SPA) โ”‚ โ”œโ”€โ”€ /login โ†’ Authentication โ”‚ โ”œโ”€โ”€ / โ†’ Desktop environment (post-setup) - โ”‚ โ”œโ”€โ”€ /setup-api/* โ†’ 50+ API routes (system, files, code, browser, etc.) + โ”‚ โ”œโ”€โ”€ /setup-api/* โ†’ 90+ API routes (system, files, code, browser, โ€ฆ) โ”‚ โ”œโ”€โ”€ /api/* โ†’ Proxy to OpenClaw gateway โ”‚ โ””โ”€โ”€ WebSocket โ†’ Proxy to gateway + terminal PTY โ”‚ โ”œโ”€โ”€ Port 3006: Terminal WebSocket PTY server โ”‚ - โ”œโ”€โ”€ Port 18789: OpenClaw Gateway (localhost only) + โ”œโ”€โ”€ Port 18789: OpenClaw Gateway (token-gated; all user traffic goes through port 80) โ”‚ โ”œโ”€โ”€ AI Agent (MCP tools โ†’ controls the entire OS) โ”‚ โ”œโ”€โ”€ Control UI โ”‚ โ”œโ”€โ”€ WebSocket (real-time chat) @@ -225,7 +169,7 @@ Browser (http://clawbox.local) โ””โ”€โ”€ Port 18800: Chromium CDP (browser automation) ``` -Node.js is used for the production server because Bun doesn't support `http.Server` upgrade events needed for WebSocket proxying. +Node.js runs the production server because Bun doesn't support `http.Server` upgrade events needed for WebSocket proxying. The deep dive lives in the [Architecture reference](https://docs.clawbox.tech/technical/architecture). ## ๐Ÿ› ๏ธ Tech Stack @@ -233,21 +177,23 @@ Node.js is used for the production server because Bun doesn't support `http.Serv |-------|-----------| | **Frontend** | Next.js 16, React 19, Tailwind CSS 4 | | **Language** | TypeScript 5 | -| **Package Manager** | Bun | -| **Runtime** | Node.js 22 (production), Bun (dev/build) | +| **Runtime & tooling** | Node.js 22 (production), Bun (dev/build/packages) | | **AI Engine** | [OpenClaw](https://github.com/openclaw/openclaw) via MCP | -| **Local Models** | Ollama (Llama, Gemma, Mistral) | +| **Local Models** | Ollama + llama.cpp (Llama, Gemma, Mistral, โ€ฆ) | | **Networking** | NetworkManager (WiFi AP), Avahi (mDNS) | | **Testing** | Vitest + Playwright | +Full runtime topology in the [Architecture reference](https://docs.clawbox.tech/technical/architecture). + ## ๐Ÿ“ Project Structure ```text โ”œโ”€โ”€ config/ Systemd services, captive-portal DNS +โ”œโ”€โ”€ docs-site/ docs.clawbox.tech source (Mintlify) โ”œโ”€โ”€ mcp/ MCP server + CLI (AI agent interface to the OS) โ”œโ”€โ”€ scripts/ WiFi AP, terminal server, voice/TTS, Jetson tuning โ”œโ”€โ”€ src/ -โ”‚ โ”œโ”€โ”€ app/ Next.js App Router (pages + 50+ API routes) +โ”‚ โ”œโ”€โ”€ app/ Next.js App Router (pages + 90+ API routes) โ”‚ โ”‚ โ””โ”€โ”€ setup-api/ WiFi, AI models, Ollama, apps, files, browser, code, system โ”‚ โ”œโ”€โ”€ components/ Setup wizard, desktop environment, built-in apps โ”‚ โ”œโ”€โ”€ hooks/ Window manager, Ollama model management @@ -279,24 +225,21 @@ bun run test # Unit tests (Vitest) | `GATEWAY_PORT` | `18789` | OpenClaw gateway port | | `NETWORK_INTERFACE` | `wlP1p1s0` | WiFi interface for AP | | `CANONICAL_ORIGIN` | `http://clawbox.local` | Default redirect origin | -| `ALLOWED_HOSTS` | `clawbox.local,10.42.0.1,localhost` | Trusted hostnames | +| `ALLOWED_HOSTS` | `clawbox.local,10.42.0.1,10.43.0.1,localhost` | Trusted hostnames | | `SESSION_SECRET` | Auto-generated | Session cookie signing key | | `OLLAMA_HOST` | `http://127.0.0.1:11434` | Ollama server URL | | `CLAWBOX_ROOT` | `/home/clawbox/clawbox` | Project root directory | -## ๐ŸŒ Internationalization - -10 languages: English, German, Spanish, French, Italian, Japanese, Dutch, Swedish, Chinese, Bulgarian. Auto-detected from browser, changeable in settings. +Additional options (OAuth client IDs, ClawBox AI, llama.cpp tuning) live in `.env.example`. ---- +## ๐Ÿค Contributing -## ๐ŸŒ Community & Links +Pull requests are welcome: -- **๐ŸŒ Website:** [clawbox.tech](https://clawbox.tech) -- **๐Ÿ’ฌ Discord:** [discord.gg/FbKmnxYnpq](https://discord.gg/FbKmnxYnpq) -- **๐Ÿ“– Docs:** [docs.clawbox.tech](https://docs.clawbox.tech) -- **๐Ÿ›’ Buy ClawBox:** [clawbox.tech](https://clawbox.tech) -- **๐Ÿค– Powered by:** [OpenClaw](https://github.com/openclaw/openclaw) +- **Target the `beta` branch** โ€” it's the integration branch; `main` carries tagged releases. +- Every PR runs CI (unit tests + e2e + a full-install e2e) and an automated CodeRabbit review. +- Keep PRs focused โ€” one issue or feature per PR. +- ๐ŸŒ The UI ships in 10 languages โ€” string changes go in `src/lib/translations.ts` for all locales. --- @@ -307,6 +250,6 @@ ClawBox is released under the [ClawBox Source Available License v1.0](LICENSE). ---

- clawbox.tech
- Built with โค๏ธ by ID Robots in the EU ๐Ÿ‡ช๐Ÿ‡บ โ€” source available + clawbox.tech ยท docs ยท Discord
+ Built with โค๏ธ by ID Robots in the EU ๐Ÿ‡ช๐Ÿ‡บ โ€” powered by OpenClaw