Install xbot and get your first agent running in minutes.
| Requirement | Details |
|---|---|
| OS | Linux (x64/ARM64), macOS (Intel/Apple Silicon), Windows (x64/ARM64) |
| LLM API Key | OpenAI, Anthropic, DeepSeek, Groq, Gemini, or local Ollama/vLLM |
| Network | LLM API access (remote) or local GPU server (local mode) |
| Disk | ~30MB (single static binary) |
Auto-detects your OS and architecture, downloads the appropriate binary, and installs it.
# Auto-detects OS and architecture
curl -sSL https://guoqingbao.github.io/xbot/install.sh | bash
On Linux, the script offers deb package or binary install options. On macOS, it installs directly to /usr/local/bin.
npm install -g @trusted-ai/xbot
cargo install xbot
wget https://github.com/guoqingbao/xbot/releases/latest/download/xbot-linux-x64.deb
sudo dpkg -i xbot-linux-x64.deb
git clone https://github.com/guoqingbao/xbot.git
cd xbot
cargo install --path .
xbot --help
xbot onboard
This creates:
Global config ~/.xbot/config.json — stores provider keys, model settings, channel config
Global workspace ~/.xbot/workspace — default persistent workspace directory
Interactive wizard guides you through configuring the default LLM provider and model
Use the interactive wizard or manually edit config.json:
xbot config --provider
{
"agents": {
"defaults": {
"model": "openai/gpt-4.1-mini",
"provider": "openai"
}
},
"providers": {
"openai": { "apiKey": "sk-..." }
}
}
ollama serve
ollama pull qwen2.5-coder:7b
{
"agents": {
"defaults": {
"model": "ollama/qwen2.5-coder:7b",
"provider": "ollama"
}
},
"providers": {
"ollama": {
"apiBase": "http://localhost:11434/v1"
}
}
}
{
"agents": {
"defaults": {
"model": "deepseek/deepseek-chat",
"provider": "deepseek"
}
},
"providers": {
"deepseek": { "apiKey": "sk-..." }
}
}
Main task on remote frontier model, subagents on local model for parallel work:
{
"agents": {
"defaults": {
"model": "openai/gpt-4.1",
"provider": "openai"
},
"subagents": {
"model": "qwen2.5-coder:7b",
"provider": "local-vllm",
"apiBase": "http://127.0.0.1:8001/v1"
}
}
}
xbot config --channel # Interactive channel setup
xbot channels list # List all available channels
xbot channels status # Show enabled/disabled status
xbot channels setup slack # Credential instructions for Slack
Configure shell execution, web search proxy, and MCP tool servers:
{
"tools": {
"exec": {
"enable": true,
"timeout": 120
},
"web": {
"search": {
"provider": "duckduckgo",
"maxResults": 10
}
},
"restrictToWorkspace": false
}
}
CLI mode is ideal for one-shot tasks and script integration.
# Initialize project context (creates .xbot/ and XBOT.md)
xbot chat /init
# One-shot task
xbot chat "find bugs in this project"
# Use a specific model
xbot chat --model anthropic/claude-sonnet-4-20250514 "review my code"
# Use global workspace for general tasks
xbot chat --global "research quantum computing trends"
Interactive TUI with streamed responses, persistent history, and model switching.
xbot repl
xbot repl --workspace /path/to/project
xbot repl --global
| Command | Description |
|---|---|
/help | Show available commands |
/new / /clear | Start new session |
/memorize <text> | Store permanent memory |
/status | View runtime status |
/stop | Stop current task |
/model <name> | Switch model |
/init | Initialize project context |
Starts the always-on AI assistant backend with configured channels. Includes Gateway HTTP server, heartbeat service, and cron scheduler.
xbot run
xbot run --workspace /path/to/project
Gateway listens on 0.0.0.0:18790 by default. Health at /healthz, metrics at /metrics, admin UI at /admin.