zeroclaw README

The project's README from github.com/zeroclaw-labs/zeroclaw. As one markdown file: README.md.

ZeroClaw

🦀 ZeroClaw — Personal AI Assistant

You own the agent. You own the data. You own the machine it runs on.

Build Status Latest release License Rust Edition 2024 Contributors Discord

Website · Docs · Philosophy · Quick start · Architecture · Discord


ZeroClaw is an agent runtime — a single Rust binary you configure and run. It talks to LLM providers (Anthropic, OpenAI, Ollama, and ~20 others), reaches the world through 30+ channels (Discord, Telegram, Matrix, email, voice, webhooks, your own CLI), and acts through tools (shell, browser, HTTP, hardware, custom MCP servers). Everything runs on your machine, with your keys, in your workspace.

Read the Philosophy for the four opinions that shape it.

Install

curl -fsSL https://raw.githubusercontent.com/zeroclaw-labs/zeroclaw/master/install.sh | sh
"${CARGO_HOME:-$HOME/.cargo}/bin/zeroclaw" quickstart

Use the Rust-free prebuilt PowerShell path in the Windows setup guide. It installs the current release, updates PATH, and runs Quickstart.

For the guided Unix installer, source builds, app and feature selection, and PATH behavior, compare the installation paths.

Run ./install.sh --help for the complete Unix installer flag reference.

Working on the docs? The translated documentation catalogues live in a git submodule (docs/book/po). The Rust build does not need it, but building or syncing the docs does. Clone with it, or add it to an existing clone:

git clone --recurse-submodules https://github.com/zeroclaw-labs/zeroclaw.git
git submodule update --init docs/book/po   # existing clone

Platform-specific notes: Linux · macOS · Windows · FreeBSD · NixOS · Docker

Quick start

zeroclaw quickstart               # one-shot setup: pick a provider, write a working config
zeroclaw agent -a <alias>         # interactive chat using the [agents.<alias>] entry
zeroclaw service install          # register as systemd/launchctl/Windows Service
zeroclaw service start            # run it always-on in the background

Full walkthrough: Quick start — or skip the safety gates with YOLO mode for dev boxes.

What ZeroClaw does

Configuration

One TOML file at ~/.zeroclaw/config.toml. Pointers:

A V3 config has at minimum four section headers (<type>.<alias> shaped) — a provider entry, an agent that references it, and a risk profile the agent gates against. See Provider Configuration → Minimal working example for the canonical four-section form with inline type/alias commentary.

For standard OpenAI Codex subscription auth, Quickstart can write the provider entry for you:

zeroclaw auth login --model-provider openai-codex --import ~/.codex/auth.json  # if already signed in with Codex CLI
zeroclaw quickstart --model-provider openai-codex --model gpt-5.4

The provider entry uses the canonical OpenAI shape; the alias below is an example:

[providers.models.openai.coding]   # type = openai; alias = coding (you choose)
model = "gpt-5.4"
wire_api = "responses"
requires_openai_auth = true

…and point your agent at it with model_provider = "openai.<alias>".

Notes:

Architecture

┌──────────────────────────────────────────────────────────────┐
│            channels       gateway        ACP                 │
│          (30+ adapters)   (REST/WS)    (JSON-RPC)            │
│                        ↓                                     │
│                   ZeroClaw runtime                           │
│         ┌──────────┬──────────┬──────────┐                   │
│         │  agent   │ security │   SOP    │                   │
│         │   loop   │  policy  │  engine  │                   │
│         └──────────┴──────────┴──────────┘                   │
│              ↓          ↓           ↓                        │
│          providers    tools      memory                      │
│         (Anthropic,  (shell,    (SQLite,                     │
│          OpenAI,     browser,    embeddings)                 │
│          Ollama,     HTTP,                                   │
│          ~20 more)   hardware)                               │
└──────────────────────────────────────────────────────────────┘

Full detail with Mermaid diagrams: Architecture overview · Request lifecycle · Crates.

Contributing

Start with how to contribute. Larger changes go through the RFC process. Real-time chat lives on Discord (the best way to reach the team); durable work tracking is on GitHub issues.

Good places to start:

AI-assisted PRs are welcome; see Contribution culture (RFC #5615) for the co-authorship norms.

Security

Do not file public issues for security vulnerabilities. Email [email protected]. See SECURITY.md for the full policy.

Official repository & impersonation notice

This is the only official ZeroClaw repository:

https://github.com/zeroclaw-labs/zeroclaw

Any other repository, organization, domain, or package claiming to be "ZeroClaw" or implying affiliation with ZeroClaw Labs is unauthorized and not affiliated with this project.

License

Dual-licensed: MIT OR Apache 2.0. You may choose either. Contributors automatically grant rights under both — see CLA. The ZeroClaw name and logo are trademarks of ZeroClaw Labs.

Credits

Built and maintained by the community — original creator @theonlyhennygod; project lead @JordanTheJet. Full maintainer list in Communication.

Thanks to the communities that incubated early work: Harvard University, MIT, Sundai Club, and every contributor pushing it forward.

Star History Chart

ZeroClaw contributors

zeroclaw (zeroclaw-labs/zeroclaw)

Searching Database…

这是什么?ZeroClaw 是一个个人 AI 助手运行时:它是一个单独的 Rust 二进制程序,由你自己配置和运行,可以与大语言模型服务商通信,监听数十个渠道,并通过 shell、浏览器和 HTTP 等工具执行操作。
这是一个应用,还是需要我自己配置的运行时?它不是托管的应用,而是一个智能体运行时二进制程序,你需要自己部署,并用 TOML 文件配置,自行接入服务商、渠道和工具。
我该怎样让它运行起来?在 Unix 系统上运行 install.sh 脚本(install.sh --help 可查看所有参数);在 Windows 上,按照 Windows 安装指南中的预构建 PowerShell 方式操作,它会安装发布版本、更新 PATH,并运行 Quickstart。
我需要注册哪些大语言模型服务商的账号?它可以对接 Anthropic、OpenAI、本地 Ollama,或约 20 家其他服务商(包括任何兼容 OpenAI 的接口端点),在 config.toml 的 [providers.models.*] 配置段中进行设置。
这个配置文件有什么坑?一份可用的配置至少需要四个 TOML 节标题(一个服务商条目、一个引用该服务商的智能体,以及一个供其进行风险拦截的风险配置档案);如果某个服务商的流式输出失败,ZeroClaw 会静默地改用非流式方式重试。
它支持哪些操作系统?Linux、macOS、Windows、FreeBSD、NixOS 和 Docker 都有各自平台的安装说明。
我的数据和密钥究竟存放在哪里?一切都在你自己的机器上运行,使用你自己的 API 密钥和工作区;不会经过任何厂商托管的服务转发。
什么能阻止它在我的机器上执行危险命令?默认的自主级别是受监督模式:中风险操作需要批准,高风险操作会被阻止;同时还有工作区边界、命令策略,以及操作系统级沙箱(Landlock、Bubblewrap、Seatbelt、Docker)作为保障。另外还有一个 YOLO 模式,可在受信任的开发机上跳过这些关卡。
它能控制物理硬件,而不只是聊天吗?能。通过 Peripheral trait,它可以驱动 Raspberry Pi、STM32、Arduino 和 ESP32 等设备上的 GPIO、I2C、SPI 和 USB。
它能接入我的 IDE 吗?可以,通过 ACP(Agent Client Protocol)实现。这是一种面向编辑器和 IDE 的集成方式,基于标准输入输出(stdio)的 JSON-RPC 2.0 协议。
SOP 引擎是做什么用的?它运行由事件触发的标准操作规程(SOP),触发源包括 MQTT、webhook、cron 或硬件外设事件。它带有批准关卡和可恢复的运行,让智能体能够执行多步骤的自动化工作流。
Size
254.3 MB
Stars
33K
Age
8mo
Commits · 90 Days