Installation
System requirements
- Rust 1.70+ (2021 edition)
- macOS, Linux, or Windows
- Internet access for chat + your selected LLM provider API
One-line installer (recommended)
curl -fsSL https://microclaw.ai/install.sh | bash
The installer only installs prebuilt GitHub release binaries. It does not fall back to Homebrew or Cargo automatically.
Windows (PowerShell)
Install using PowerShell:
iwr https://microclaw.ai/install.ps1 -UseBasicParsing | iex
What this script does:
- Downloads the latest matching Windows release (
microclaw.exe) - Installs into
%USERPROFILE%\.local\binby default - Adds install dir to your user PATH if missing
Optional browser automation dependency (for browser tool):
npm install -g agent-browser
agent-browser install
On Windows, MicroClaw will invoke agent-browser.cmd when available.
Preflight diagnostics (all platforms)
Run diagnostics before first start, and include output in support tickets:
microclaw doctor
JSON output (for issue templates / copy-paste):
microclaw doctor --json
Unified check output format across macOS/Linux/Windows:
[✅ PASS] <title> (<check_id>) <detail>
[⚠️ WARN] <title> (<check_id>) <detail>
[❌ FAIL] <title> (<check_id>) <detail>
Summary: pass=<n> warn=<n> fail=<n>
doctor checks:
- PATH/install dir visibility
- Shell runtime (
bash/shorpwsh/powershell) - Node.js + npm +
agent-browser - PowerShell execution policy (Windows)
- MCP dependency commands from
~/.microclaw/mcp.jsonand~/.microclaw/mcp.d/*.json(or your configureddata_dir)
PowerShell execution policy notes
If your environment blocks script execution, run PowerShell as your user and temporarily allow signed/local scripts:
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
If your organization enforces policy via Group Policy, use local source build instead of remote script execution.
Common Windows issues (native non-WSL flow)
Use this triage path when running in native Windows terminals (PowerShell / CMD, not WSL):
- Confirm environment and run diagnostics:
microclaw doctor- If this fails, run with full path:
%USERPROFILE%\.local\bin\microclaw.exe doctor
- If
path.install_dirisWARN:- add
%USERPROFILE%\.local\binto user PATH - restart terminal
- add
- If
powershell.policyisFAIL(Restricted):Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
- If
deps.node/deps.npm/deps.agent_browserisWARN:- install Node.js LTS
- run
npm install -g agent-browserandagent-browser install
- If any
mcp.<name>.commandisFAIL:- install that command (or use absolute path in
~/.microclaw/mcp.jsonor a file under~/.microclaw/mcp.d/*.json)
- install that command (or use absolute path in
- Re-run
microclaw doctoruntilfail=0, then start:microclaw start
Quick symptom map:
microclawcommand not found: PATH problem (path.install_dir)browserspawn failure: missingagent-browser.cmd- script blocked by policy:
powershell.policyfailure - MCP tool unavailable:
mcp.*dependency failure
Homebrew (macOS)
brew tap microclaw/tap
brew install microclaw
Build from source
git clone https://github.com/microclaw/microclaw.git
cd microclaw
cargo build --release
Copy the binary somewhere on your PATH:
cp target/release/microclaw /usr/local/bin/
Run from source (dev)
Runtime boot behavior:
- starts scheduler
- starts configured adapters (Telegram/Discord/Slack/Feishu/IRC/Web)
- can run without Telegram when other channels are enabled
cargo run -- start
Setup configuration
Recommended:
microclaw setup
Or manually create microclaw.config.yaml:
llm_provider: "anthropic"
api_key: "..."
model: "claude-sonnet-4-5-20250929"
data_dir: "~/.microclaw"
working_dir: "~/.microclaw/working_dir"
max_document_size_mb: 100
# Enable at least one channel:
telegram_bot_token: "..."
bot_username: "..."
# Optional channel overrides:
# channels:
# telegram:
# bot_username: "..."
# discord_bot_token: "..."
# channels:
# slack:
# bot_token: "..."
# app_token: "..."
# feishu:
# app_id: "..."
# app_secret: "..."
# irc:
# server: "irc.example.com"
# nick: "microclaw"
# channels: "#general"
web_enabled: true
Use microclaw help (or cargo run -- help) for CLI usage.
For full Telegram / Discord / Slack / Feishu / IRC onboarding (token provisioning, connection setup, verification), see Channel Setup.
The interactive setup wizard supports provider/model selection (including ollama) and uses sensible defaults with Enter-to-confirm prompts.
Gateway persistent service
MicroClaw supports a persistent gateway service manager:
microclaw gateway install
microclaw gateway install --force
microclaw gateway status
microclaw gateway status --json --deep
microclaw gateway start
microclaw gateway stop
microclaw gateway restart
microclaw gateway logs 200
microclaw gateway uninstall
Platform behavior:
- macOS:
launchduser agent - Linux:
systemd --userunit - Logs: gateway service stdout/stderr in
~/.microclaw/runtime/logs/asmicroclaw-gateway.logandmicroclaw-gateway.error.log - Retention: files older than 30 days are auto-deleted
Optional: browser automation
To enable the browser tool (headless browser automation), install agent-browser:
npm install -g agent-browser
agent-browser install
This lets MicroClaw interact with JavaScript-rendered pages, fill forms, click buttons, and navigate multi-step web flows. If agent-browser is not installed, the browser tool will return an error when called — all other tools work normally.
Uninstall
Installer-script uninstall (recommended):
macOS/Linux:
curl -fsSL https://microclaw.ai/uninstall.sh | bash
Windows PowerShell:
iwr https://microclaw.ai/uninstall.ps1 -UseBasicParsing | iex
Windows PATH cleanup (optional):
iwr https://microclaw.ai/uninstall.ps1 -UseBasicParsing | iex -CleanPath
If installed via Homebrew:
brew uninstall microclaw
brew untap microclaw/tap
Optional cleanup (remove local runtime data):
rm -rf ~/.microclaw/runtime
rm -rf ~/.microclaw