zeroclaw
4
总安装量
4
周安装量
#52671
全站排名
安装命令
npx skills add https://github.com/perseusmx/zeroclaw-skill --skill zeroclaw
Agent 安装分布
opencode
4
gemini-cli
4
claude-code
4
github-copilot
4
amp
4
cline
4
Skill 文档
ZeroClaw Quick Reference
ZeroClaw is a fast, small (<5MB RAM), fully autonomous AI assistant infrastructure built in Rust.
Core Characteristics:
- Single binary (~8.8MB release), no runtime dependencies
- <10ms cold start, 16+ communication channels
- Runs on $10 hardware (ARM, x86, RISC-V)
- Config:
~/.zeroclaw/config.toml - Workspace:
~/.zeroclaw/workspace/ - Auth profiles:
~/.zeroclaw/auth-profiles.json(encrypted)
Installation
Install
# Homebrew (macOS/Linux)
brew install zeroclaw
# Linux pre-built binary
curl -fsSL https://raw.githubusercontent.com/zeroclaw-labs/zeroclaw/main/scripts/install-release.sh | bash
# Clone + bootstrap
git clone https://github.com/zeroclaw-labs/zeroclaw.git
cd zeroclaw && ./bootstrap.sh
# Bootstrap options: --prefer-prebuilt, --prebuilt-only, --docker, --onboard
Update
git clone https://github.com/zeroclaw-labs/zeroclaw.git /tmp/zeroclaw-update
cd /tmp/zeroclaw-update && bash scripts/bootstrap.sh --prefer-prebuilt
rm -rf /tmp/zeroclaw-update
zeroclaw --version
Onboarding
zeroclaw onboard --api-key "your-api-key" --provider openrouter
zeroclaw onboard --interactive # Full wizard
zeroclaw onboard --channels-only # Reconfigure channels only
Essential Commands
Daily Use
zeroclaw agent– Interactive AI chatzeroclaw agent -m "message"– Single messagezeroclaw daemon– Full autonomous runtime
Diagnostics
zeroclaw status– Check system statuszeroclaw doctor– Run full diagnosticszeroclaw channel doctor– Check channel health
Providers & Models
zeroclaw providers– List all providerszeroclaw models refresh– Refresh model catalogszeroclaw models refresh --provider <ID>– Refresh specific provider
Channels
zeroclaw channel list– List all channelszeroclaw channel start– Start channelszeroclaw channel start <channel>– Start specific channel
Service
zeroclaw service install– Install as system servicezeroclaw service start/stop/restart– Control service
Other
zeroclaw completions bash|zsh– Generate shell completionszeroclaw migrate openclaw [--dry-run]– Import from OpenClawzeroclaw gateway [--port 0]– Start webhook gateway (port 0 = random)
Providers Overview
ZeroClaw supports 10+ built-in providers plus custom endpoints.
Built-in providers:
openrouter– OpenRouter (default, multi-provider aggregation)anthropic– Anthropic Claude modelsopenai/openai-codex– OpenAI (API key / OAuth)groq,xai,together,deepseek– Cloud providersollama,lmstudio,llamacpp,vllm,osaurus– Local serverscustom:<URL>/anthropic-custom:<URL>– Any compatible endpoint
See complete catalog: PROVIDERS.md
Quick custom provider setup:
# ~/.zeroclaw/config.toml
default_provider = "custom:https://your-api.example.com"
api_key = "your-api-key"
default_model = "your-model"
Channels Overview
ZeroClaw supports 16+ communication channels.
| Channel | Access Control | Quick Setup |
|---|---|---|
| CLI | n/a | Built-in |
| Telegram | allowed_users |
zeroclaw onboard |
| Discord | allowed_users |
zeroclaw onboard |
| Slack | allowed_users |
zeroclaw onboard |
| Mattermost | allowed_users |
Manual config |
allowed_numbers |
zeroclaw onboard (Web + Cloud API) |
|
| Signal | allowed_from |
Manual config |
| iMessage | allowed_contacts |
macOS only |
| Matrix | allowed_users |
Manual config |
allowed_senders |
Manual config | |
| IRC | allowed_users |
zeroclaw onboard |
| Lark | allowed_users |
Manual config |
| DingTalk | allowed_users |
zeroclaw onboard |
allowed_users |
Manual config | |
| Linq | allowed_senders |
Manual config |
| Nostr | allowed_pubkeys |
Manual config |
| Webhook | secret |
Manual/onboard |
See detailed channel-by-channel setup: CHANNELS.md
Configuration Overview
ZeroClaw uses ~/.zeroclaw/config.toml for all settings.
Basic provider setup:
default_provider = "openrouter"
api_key = "your-key-here"
default_model = "anthropic/claude-sonnet-4.5"
default_temperature = 0.7
Autonomy levels:
| Level | Description |
|---|---|
readonly |
Can read files only, no modifications |
supervised |
Requires approval for file writes, shell commands, network requests |
full |
No approval required (use only on trusted machines) |
[autonomy]
level = "supervised"
workspace_only = true
allowed_commands = ["git", "npm", "cargo", "ls", "cat"]
max_actions_per_hour = 20
max_cost_per_day_cents = 500
Common security settings:
# Restrict to workspace only (recommended)
[autonomy]
workspace_only = true
allowed_paths = ["/path/to/project"]
# Set cost limits
[autonomy]
max_cost_per_day_cents = 500
max_actions_per_hour = 20
# Block dangerous commands
[autonomy]
blocked_commands = ["rm -rf", "dd", "mkfs"]
See complete config reference: CONFIG.md See security best practices: SECURITY.md
Troubleshooting
Quick Diagnostics
zeroclaw --version
zeroclaw status
zeroclaw doctor
zeroclaw channel doctor
Common Issues
| Problem | Solution |
|---|---|
cargo not found |
Run ./bootstrap.sh --install-rust |
zeroclaw command not found |
Add to PATH: export PATH="$HOME/.cargo/bin:$PATH" |
| Gateway unreachable | Check gateway.host/port in config.toml |
| Telegram “terminated by other getUpdates” | Stop extra daemons (only one per bot token) |
| Channel unhealthy | Run zeroclaw channel doctor, verify credentials and permissions |
| Config world-readable warning | Run chmod 600 ~/.zeroclaw/config.toml |
| API authentication failed | Verify API key in config or environment variables |
| Model not found | Run zeroclaw models refresh to update catalog |
| High memory usage | Check autonomy settings, limit concurrent actions |
Logs
- macOS/Windows:
~/.zeroclaw/logs/daemon.stdout.log - Linux systemd:
journalctl --user -u zeroclaw.service -f
Getting Help
- Run
zeroclaw doctorfor automated diagnostics - Check logs for error messages
- Review config:
cat ~/.zeroclaw/config.toml - Full documentation: https://github.com/zeroclaw-labs/zeroclaw