Installation¶
One-Line Install¶
The installer walks you through: working directory → Claude auth → IM credentials → auto-start with PM2.
Update¶
Already installed? One command to pull, rebuild, and restart:
Manual Install¶
git clone https://github.com/xvirobotics/metabot.git
cd metabot && npm install
cp bots.example.json bots.json # edit with your bot configs
cp .env.example .env # edit global settings
npm run dev
Prerequisites¶
- Node.js 20+ is installed.
-
Claude Code CLI is installed and authenticated — The Agent SDK spawns
claudeas a subprocess; it must be able to run independently.- Install:
npm install -g @anthropic-ai/claude-code - Authenticate (one of):
- OAuth login (recommended): Run
claude loginin a standalone terminal and complete the browser flow. - API Key: Set
ANTHROPIC_API_KEY=sk-ant-...in.envor your shell environment.
- OAuth login (recommended): Run
- Verify: Run
claude --versionandclaude "hello"in a standalone terminal to confirm it works.
Warning
You cannot run
claude loginorclaude auth statusfrom inside a Claude Code session (nested sessions are blocked). Always use a separate terminal. - Install:
-
IM platform configured — See Quick Setup or Feishu App Setup.
Windows Notes¶
The PowerShell installer auto-detects winget/choco/scoop for Node.js installation. CLI tools (mm, mb, metabot, fd) are installed with .cmd wrappers and require Git for Windows (provides Git Bash).