clawbench-dev/clawbench
About
AI Workbench, United Across Devices — mobile-first interaction, desktop-compatible. Runs on PC, Android, and fully inside Termux on your phone. Single binary, zero dependencies.
Developer ToolsMeasured star growth
- in 24h
- +1
- in 7 days
- +2
- in 15 days
- +6
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
OriginalClawBench — AI Workbench, United Across Devices
From Palm to Desktop — An AI workbench for every screen.
🏠 Homepage: https://clawbench.pages.dev/
Brings the full power of AI coding agents to every screen — phone, tablet, and desktop. File browsing, code editing, AI conversation, Git operations, tasks, one app does it all, whether you're on the go or at your desk.
Core Advantage: Native passthrough of AI capabilities (tool calls, extended thinking, Skills, MCP) with zero adaptation cost, fully preserving the power of coding agents. ClawBench is a complete workbench on every platform — files, code, Git, AI, tasks, TTS — with mobile interactions carefully crafted for one-handed use and full desktop support for serious work.
- Supported Platforms: Browser (PC / Tablet / Phone), Android App, PWA, HarmonyOS (experimental)
- AI Backends: ClawBench Agent (built in, no external CLI required), CodeBuddy, Claude Code, OpenCode, Codex, Qoder CLI (international / China editions), CodeWhale, DeepSeek Harness, MiMo-Code, Pi, Kimi, Antigravity, Grok Build, ZCode, Cursor, Hermes Agent, Command Code, OpenClaw
📖 User Guide (Chinese): ClawBench User Guide · online edition with sidebar
Quick Start
An experimental native HarmonyOS client is available for development. See the HarmonyOS client notes for build instructions, verified capabilities and remaining work. It is not yet a supported release platform.
Prerequisites
- A PC (Linux / macOS / Windows) or an Android phone with Termux: To run the ClawBench server, with at least one AI coding agent CLI installed (CodeBuddy, Claude Code, OpenCode, Codex, Qoder CLI, CodeWhale, MiMo-Code, Pi, or Kimi)
- Any device: Install the ClawBench Android App, or open the server address in any browser — desktop, tablet, or phone
One-line Installer (Node.js included)
Don't want to set up Node.js yourself? One command:
# Linux / macOS
curl -fsSL https://clawbench.pages.dev/install.sh | bash
# Windows (PowerShell)
irm https://clawbench.pages.dev/install.ps1 | iex
The script does two things: makes sure Node.js is available (reuses an existing 20+ install, otherwise downloads one), then installs ClawBench with npm.
- No admin rights, nothing written outside your home: Linux / macOS install to
~/.local/share/clawbench, Windows to%LOCALAPPDATA%\clawbench - Inside mainland China it uses the npmmirror CDN for both Node.js and npm, and falls back to the official sources when the mirror is unreachable
- Run
clawbenchafterwards and openhttp://localhost:20000; the random password is printed on first start - AI agents are not installed here. Open the web UI — the welcome screen is a wide grid (filter by all / installed / installable, plus search) where every agent has an "Install" button that installs it on this machine, also through the China mirror; Settings › Agents has an "Installable" group as well
Versions and verification. The script installs the latest version, so two runs may install different builds — it is not a reproducible install. Pin it explicitly when you need that; the version actually installed is printed at the end:
# Linux / macOS: pin the version
curl -fsSL https://clawbench.pages.dev/install.sh | CLAWBENCH_VERSION=0.130.0 bash
# Windows: pin the version (no way to pass arguments through `irm | iex`)
$env:CLAWBENCH_VERSION = '0.130.0'; irm https://clawbench.pages.dev/install.ps1 | iex
To pin the script itself, save it first and verify it (the sha256 is published in the release notes for the matching tag):
curl -fsSL https://clawbench.pages.dev/install.sh -o install.sh
echo "<sha256> install.sh" | sha256sum -c - && bash install.sh
The npm package itself is covered by npm's dist.integrity check; the script does not re-implement that.
Uninstall:
# Linux / macOS
curl -fsSL https://clawbench.pages.dev/install.sh | bash -s -- --uninstall
# Windows: save it first, then run
irm https://clawbench.pages.dev/install.ps1 -OutFile install.ps1
.\install.ps1 -Uninstall
Uninstalling only removes the three things the script wrote (the install directory, the PATH marker in your rc file / user PATH). Your data is left alone — sessions, config and the .clawbench data directory stay where they are.
npm Install
If Node.js is already set up, you can do it yourself:
npm install -g @xulongzhe/clawbench
# Start
clawbench
Supports Linux (x64/arm64), macOS (Intel/Apple Silicon), and Windows (x64). npm automatically selects the correct platform-specific binary package.
Download & Start
Download the latest ZIP package from GitHub Releases, extract and you're ready:
# Asset names carry the version, so resolve the latest tag before building the URL
TAG=$(curl -sI https://github.com/xulongzhe/clawbench/releases/latest \
| grep -i '^location:' | sed 's|.*/tag/||' | tr -d '\r\n')
wget "https://github.com/xulongzhe/clawbench/releases/download/${TAG}/clawbench-linux-amd64-${TAG}.zip"
unzip "clawbench-linux-amd64-${TAG}.zip"
cd clawbench
./clawbench
Docker Deployment
docker pull ghcr.io/clawbench-dev/clawbench:latest
docker run -d --restart unless-stopped -p 20000:20000 -v clawbench-data:/data ghcr.io/clawbench-dev/clawbench:latest
Customize the host port with -p (e.g., -p 20300:20000). The clawbench-data volume persists all data.
--restart unless-stopped(oralways) is required for in-app upgrades: the container replaces its own binary and exits with code 0, and Docker's restart policy brings the new version back up. Do not use--restart on-failure— a graceful shutdown exits 0, so it never triggers and the container stays stopped. The recommended upgrade path is stilldocker pull+ recreate the container, since rebuilding from an unchanged image reverts the in-place replacement.
To view the auto-generated password:
docker exec $(docker ps -qf ancestor=ghcr.io/clawbench-dev/clawbench) cat /data/.clawbench/auto-password
A random 32-character hex password (128-bit entropy) is auto-generated on first startup and printed to the console in a bordered box. Save it securely.
Once deployed, access http://server-ip:20000 from your phone app or any browser:
- Android App: Native integration, auto-connect, full feature support
- Mobile / Desktop Browser: Chrome recommended on mobile — supports installing as a PWA app (Add to Home Screen) for a near-native experience
📱 Run Completely on an Android Phone (Termux)
See the full guide in Termux (Android).
ClawBench runs completely on your Android phone inside Termux. The pure-Go linux-arm64 backend, the built-in web frontend, and your AI coding agents all run locally on the phone — no separate PC or server required:
pkg install -y nodejs-lts git
npm install -g @xulongzhe/clawbench
clawbench
📡 Public Access: To access ClawBench from the public internet (commuting, traveling, etc.), see the Public Access Guide — supports IPv6 direct connection and EasyTier decentralized networking (no VPS required).
Core Features
The table below is a feature overview. Per-feature instructions, screenshots, and edge cases live in the ClawBench User Guide (Chinese).
| Module | Highlights |
|---|---|
| 📁 File Management | Recursive browsing (120+ extensions), search & sort, list/grid views, multi-select batch ops, upload & directory-tree download, name-clash choice (overwrite / keep both), automatic retry on flaky networks (backoff for uploads, Range-resumed downloads), drag-and-drop move, paste upload, untitled-buffer new file (named on first save), .gitignore-aware dimming, file share links (revocable capability tokens; in-page relative-link navigation in the share page), interactive OpenAPI/Swagger preview |
| 🎨 Code Preview & Editing | CodeMirror browse/edit dual mode, syntax highlighting for 170+ languages (across the editor and the preview renderer; long-tail grammars lazy-load, so the first screen does not pay for them), autocompletion (11 languages), Sticky Scroll, VS Code-style search bar, diff flash highlighting, Excalidraw canvas (.xdraw / .excalidraw), draw.io diagrams (.drawio, embedded editor with save, export to PNG / SVG / XML into the project or the device), HTML render preview (sandboxed iframe, shared by the quick-preview pane and the viewer; find-in-page and quote-on-selection work inside it; the source behind HTML/OpenAPI previews is editable in place), path jumps with line ranges |
| 📝 Markdown | Render/source toggle, TOC drawer, LaTeX, Mermaid, inline zoom (click a diagram on desktop to zoom in place — cursor-anchored wheel zoom and drag-to-pan, no fullscreen detour), image lightbox, code-link preview overlay, self-contained HTML export (KaTeX fonts inlined) |
| 📄 Documents & Media | Native Word / Excel / PowerPoint rendering, paged PDF with zoom, one table control everywhere — every table switches between simple and data view; data view adds global search, header sorting, per-column filters, column statistics, hide/freeze columns, data bars and totals (any all-numeric column past the first makes it the default). CSV / TSV open as a table with the source file still editable, and chat / Markdown-preview tables use the same control, inline image/audio/video players, lightbox |
| 🤖 AI Agents | 25 backends (ClawBench Agent (built in), CodeBuddy, Claude Code, OpenCode, Codex, Qoder / Qoder CN, CodeWhale, DeepSeek Harness, MiMo, Pi, Kimi, Antigravity, Grok Build, ZCode, Cursor, Hermes Agent, Command Code, OpenClaw, Qwen Code, Cline, GitHub Copilot, MiniMax Code, Kiro, TRAE), built-in agent with zero dependencies (in-process tool loop; three permission modes, thinking depth, adjustable round and tool budgets, a toggle for reaching files outside the project, and the same context usage / output-rate reporting as ACP backends; sub-agents — hand a self-contained survey to a fresh-context sub-agent and get back just its report, with a per-agent count cap), one-click install (welcome grid and Settings page, China mirror by default), custom ACP agents (any tool that speaks ACP over stdio — give it a spawn command, no backend adapter needed), streaming responses, visible reasoning, sub-agent content grouping, multi-agent team panel (CodeBuddy Agent Teams: member roster with status icons, tool counts and token usage; member output auto-grouped and grouped by member name when the parent card is missing; member badge on permission cards), custom avatars (40 DiceBear styles grouped by people / robots / shapes / patterns; changing the seed re-renders every tile; or upload your own image — cropped to a square in the browser, validated on the server; generated avatars share a soft tinted background), drag-to-reorder (order applies globally), thinking-depth levels (remembered per agent + model, so switching models does not carry the previous level over), persisted model choice, tap-to-switch model (Hermes goes through session/set_model), model rate / pricing (credit-billed agents show their own relative rate first and fall back to the per-million-token USD price; approximations carry ~), persisted ACP context state, session/task counts + disable toggle + delete guard (a disabled agent is hidden from every creation entry; existing sessions are unaffected), "current project only" scope (an agent visible in just one project), cross-agent skill discovery (a Skill installed by any agent is visible to all agents, including project-local .agents/skills, with git-source sync and deduplication; auto-injection is opt-in, off by default), MCP servers (configure once globally and every ACP agent can use them; per agent you choose all / none / a subset, each entry has a Test button that performs a real handshake, /cb-mcp lets the AI do the setup in conversation, and you can import by pasting JSON — the mcpServers block from Claude Desktop / Code / Cursor is recognised, including a bare service table or a single service object) |
| 💬 AI Conversation | Tool-call visualization, interactive question cards, suggested replies, slash commands (ACP + built-in merged, including /btw side questions — answered by the summary model from a session snapshot without occupying the current agent), unified quote cards (selection / file / issue / pipeline / message share one form; notes editable, jump back to source; commenting on what you are reading delivers straight to the active session, cross-session quoting moved to a long-press on the quote bar, and the expanded bar shows a persistent "send to " row to retarget), external links rendered as selectable text (long-press to copy; a tap shows the full URL and asks before leaving the app), message queue, mid-turn interjection (fold a message into the reply being generated; merge-only backends like Claude/Codex mark it "merged into previous reply"), disconnect protection, auto-continue on abnormal termination, reports back when a background task finishes (CodeBuddy opens its own turn when a background command ends; the reply is persisted and pushed like any other), auto-cruise (a per-session orthogonal switch: the AI keeps pushing the task forward until it confirms completion, instead of handing the floor back after one reply), context panel (token breakdown plus the last turn's output rate, measured over the time the model was actually emitting text; the message details dialog shows that turn's rate too), rewind & fork, auto-summary, RAG result cards, draft restore, completion popup |
| 👥 AI Group Chat | Multi-agent collaboration/debate: bring several agents (across backends) into one group. Host mode — a host decides who speaks next and gives the instruction; members speak in turn sharing context and a summary is produced at the end; Free mode — no host, members relay via @-mentions, and can @ you to hand the floor back. Auto-cruise (an orthogonal switch) — when on, the loop no longer hands the floor back; members keep working until they confirm the task is done (host decides alone / free mode confirms by majority), with an "Auto-cruise" chip in the session info bar. The same agent can be added multiple times (instances) — each instance gets its own name (from the name pool) and avatar, and discloses the real agent name; members have independent persistent connections (reusing resume/idle reclamation), incremental injection (only what's new since a member last spoke), @-mention cards (the card itself is the public call-out, its note is the BCC), user name (how members address you; kept distinct from agent names both ways), BCC (visible to one member only), parallel speaking (simultaneously, without seeing each other), member panel (collapsible above the composer: avatars of whoever is speaking now plus round progress; expanded, each member gets a status pill, real agent name and model, context usage, tap to jump to their latest reply, and ordinary members can be stopped individually), per-member context usage & single-member compaction (usage lives in the member panel only — tap it to open that member's context page; compact one member without disturbing the group timeline), member add/remove system events, in-group attachments & quotes, tap a speaker's avatar to open that agent's config, human interruption anytime (queued as "interject"), /cb-* commands run by the host |
| 📂 Session Management | Create / switch / archive / remove sessions, sorted by creation time by default (the list no longer reshuffles while you read it; switch to "recent activity first" in Settings → Chat, manual drag order always wins), move to another workspace (the session takes its messages, usage and tags along; a group chat moves as a whole, and is refused outright when one of its members' agents is unavailable in the target workspace), other projects' sessions (grouped cards under this project's list, or as tabs at the bottom of the list; click a card to expand all of that project's sessions in place, click a session to switch projects), session tags (project-scoped, hash-colored), AI auto-naming (title generated by the summary model after the first message; shares one implementation with manual "generate title"), unread counted per item, per-project session restore, swipe-to-switch toggle, session sharing (a public read-only link to the selected messages; the body is assembled live, so the link never grows with the conversation while summaries, renames and avatars stay current; in-page TOC, gap markers, machine-readable discovery metadata, managed per project), Share Center (a left-dock tab listing every public file / folder / session / meeting link of this project, with copy, open, share to another app, send by mail and revoke) |
| 🗂️ Project Management | Project registry (Settings → Project lists every project: session count, last-active, directory status, repo kind), one-tap switch, change path (point a project at its directory's new location after a move/rename — all history follows, nothing on disk is touched), delete project data (clears all of that project's sessions / messages / tasks / tags / shares / RAG index without touching the directory on disk; a project whose directory is gone only needs a second confirmation), project identity as an integer id (renaming/moving a directory is a single UPDATE) |
| ⏰ Task Scheduling | Cron schedules (presets + custom), event triggers (issue.opened / pr.merged / pipeline_done) and mail triggers (a mailbox plus gates on sender / subject / body / has-attachment), optional pre-AI script (cron only; a silent exit 0 skips the AI run and sends no notification), in-chat /cb-task creation entry, 3-level breadcrumb navigation, "Stop" button while running (halts every running execution of the task in one tap), continue-chat from run details, completion push |
| 🔗 Git & Software Forge | Commit history, branch graph, diff view, working-tree changes, three-tab management (worktree/branches/tags), swipe-to-delete; fetch from remote (updates remote refs only — never the branch or working tree) with ahead/behind, unpushed-commit and new-remote-commit markers; Software Forge (GitHub, GitLab and Gitea / Forgejo, self-hosted included — Activity/Issues/Merges/Pipelines tabs, "mine" filters, event-driven tasks, quote to chat, per-host credential isolation) |
| 💻 Web Terminal | PTY + xterm.js, multi-session multi-tab, three-mode gesture system, virtual key toolbar, key/symbol config, quick commands, open current directory (tracks live cd), drag-and-drop upload into the shell's cwd, 16 terminal themes (curated, with live palette preview; terminal tabs are restored after switching projects or reloading), mobile input drawer |
| 📊 Statistics | Usage overview (donut with cache-hit drilldown, including AI working time — total wall-clock time across model calls and tool execution, auto-scaled from milliseconds to days), dimension filters and chart switching, code inventory (gocloc per-language snapshot), code churn (per-author time trend); the header also carries a usage capsule (cycle budget vs a linear baseline, on a fixed-day or calendar-month cycle; you can narrow it to a chosen set of agents sharing one quota; one alert when you run ahead and one when it is exhausted — advisory only, never blocking) |
| 🔊 Speech | TTS: 6 server engines (Edge / OpenAI-compatible / Alibaba Bailian / Tencent Cloud / Volcano Engine / MiniMax) plus the phone's own speech engine (per-device, never silently falls back to the server), summary backend simple / api / auto (content-based routing), long replies are synthesised segment by segment and start playing early, and a failed summary falls back to the full text instead of the last thousand characters, group chat read aloud per speaker in turn; STT: streaming and non-streaming modes, an OpenAI-compatible endpoint (e.g. vLLM Whisper), Doubao Seed-ASR, Alibaba Bailian and Tencent Cloud ASR; voice input works in any text field (writes at the caret; with no caret it opens a bottom capsule); continuous conversation (mic stays open, sends on a trigger word or a pause, reopens after the answer is read aloud, and you can interrupt by speaking); one-shot voice WebSockets for embedded devices (recognise → generate → read aloud, or generate → read aloud, streaming PCM over a single connection that stays open for many turns) |
| 📹 Meetings | A left-dock tab where every meeting leaves a permanent record: desktop app, Android app and desktop browsers can host, and a token link lets anonymous viewers watch in a browser without signing in; P2P WebRTC by default (the server only relays SDP/ICE — no new port, 8-viewer cap, no TURN), or switch on the relay service (a separately deployed LiveKit: the host uploads once, no viewer cap, works across networks); there is no meeting type — screen (full display / window), camera and microphone are device cards you can swap mid-call without renegotiation; two-layer speaking permission, member screen sharing (HTTPS required), Windows hosts can be remote-controlled by viewers (pointer + keyboard); AI notes record each channel separately (speaker labels are just each person's display name) → a project-doc-assisted revised transcript → minutes, and all three artifacts can be regenerated individually (transcript regeneration re-runs speech recognition); keyframe snapshots are captured automatically and slotted into the transcript timeline, and a record button turns the shared picture (with annotations burned in) plus the meeting mix into video segments listed under the record's resources; artifacts kept forever under .clawbench/notes/ (the whole recording merged into one file, transcript as WebVTT, plus timelines for files opened during the meeting, who was sharing, and what was on screen); records can be renamed, and meeting events land in the notification center |
| A built-in mail client (left dock tab): multiple IMAP + SMTP accounts, message list and reader (sandboxed HTML, remote images loaded by default with a per-device switch to block them, attachment download), compose / reply / forward, local drafts, unread badges, mark all as read; width-adaptive — drill-down on narrow panels, list and reader side by side on wide ones; incremental fetch every 3 minutes, new-mail alerts (new unread inbox mail is merged into one entry for the notification center, system notifications and IM push; historical mail is not replayed when an account is first connected), and mail can trigger tasks (sender / subject / body / has attachment); a server-side master switch turns the whole feature off, and alerts have their own mute-only switch | |
| 🔌 Model Providers | Register a self-hosted or third-party endpoint once as a reusable "endpoint + credential" and reference it from agents and the summary model; authoritative model catalog (models.dev) plus provider-declared model lists and brand icons, with a real connectivity test per model; keys are write-only and never echoed back, but can be revealed on demand; own-service accounts for CodeBuddy / Cursor / Command Code / Antigravity, each with its own panel: no endpoint, no auth mode, no model list — just that backend's own account token, shareable across agents; a credential remembers which backend it belongs to and binding it to the wrong one is rejected on save; CodeBuddy additionally offers a service edition (dedicated / private deployments take an enterprise domain) |
| 🔀 SSH Tunnel | Transparent for all protocols (HTTP/HTTPS/WS/SSE/gRPC), bidirectional port mapping (forward ssh -L + reverse ssh -R), transport chosen server-side (SSH on its own port / HTTP/2 on the main port, h2 by default, every client follows), arbitrary target hosts, automatic port allocation, health check & reconnect, one-tap localhost URL |
| 🎨 Themes | 36 named themes, live system-follow, circular-reveal theme-switch animation (expands from the top-right button to fill the screen), custom wallpaper (local gallery / Bing daily / animated styles; opacity/blur, per-device selection), custom fonts, stepless UI scaling (50%–200% in 1% steps; the whole UI — icons and terminal font included — scales off the root font size), quick theme picker |
| 📱 Multi-Device | Android App (native bridge, floating status window, Live Updates / Dynamic Island, self-update, protocol-number compatibility gate, full i18n), installable PWA, full local run on a phone via Termux |
| 🖥️ Desktop Client | Electron shell hosting the same Web UI; frameless window on Windows / Linux (minimize/maximize/close drawn in the header; macOS keeps its native traffic lights); native system notifications (click to open session/task/repo, still delivered while minimized), native context menu, external links to default browser, self-signed certificates remembered per host + fingerprint (clearable in settings), SSH port mapping (keepalive + auto-reconnect), multi-server management (safeStorage-encrypted credentials, per-server passwords), resolution-based auto UI scaling (Ctrl+wheel / Ctrl+=/-/0 native zoom), self-update (side-by-side install + pointer switch, rollback-capable; full package with SHA256 verification; GitHub mirrors in CN), Ctrl+Shift+R hard refresh / F12 DevTools |
| 🔔 Notifications | Notification center (a left-dock tab that gathers session / task / repo / usage / meeting / new-mail events into a traceable log, filtered by project/type/time through one shared capsule control; deliberately separate from the badges), sound + haptics, desktop system notifications, task-completion push, DingTalk / Feishu / WeChat bot push (browse sessions and send messages from IM) |
| 🔒 Security | Salted SHA-256 password, path-traversal protection, Git argument-injection guards, XSS sanitization (DOMPurify), short-lived HMAC tokens (local requests no longer trusted by address alone), TLS auto-discovery, self-signed certificates remembered by fingerprint (re-asked when the fingerprint changes), per-instance cookie isolation |
FAQ
See FAQ (Chinese).
License
Copyright (c) 2026 xulongzhe
Licensed under the MIT License
Explore related projects
Loading…