A Rust-native autonomous bot runtime for persistent task automation, vibe coding, and multi-channel message delivery. ๐
English | ็ฎไฝไธญๆ |
- ๐ง Persistent Agent Runtime - Long-running agent runtime with persistent sessions, per-session serialization, and configurable concurrency control
- ๐ Permanent Memory Capture - LLM-driven memory consolidation, automatic task summaries, explicit
/memorizesupport, and topic-relevant memory lookup - ๐ ๏ธ Rich Toolset - Filesystem, shell, web fetch, web search, messaging, cron, and background-task tools
- ๐ Provider Integration - OpenAI-compatible, Anthropic, GitHub Copilot (OAuth), Cursor, and local engines
- ๐งต Hybrid Model Routing - Run the main task on a remote frontier API such as DeepSeek
deepseek-v4-pro, while background subagents use a local Qwen/vLLM/Ollama model for fast parallel work - ๐ MCP Support - MCP stdio tool integration for external tool servers
- ๐งฉ Built-in Skills - Software engineering, research/reporting, GitHub/CI, scheduled operations, memory management, cron, and clawhub marketplace
- ๐ฌ Multi-Channel - 13 channel backends:
email,slack,telegram,feishu,dingtalk,discord,matrix,whatsapp,qq,wecom,weixin,mochat, and extensible plugin channels - ๐ Gateway Process - Webhook ingress, health checks, readiness checks, Prometheus metrics, and a web admin UI
- ๐ Streaming - Stream delta support with per-channel streaming, retry logic with exponential backoff
- ๐ช Hook System - Extensible
AgentHooktrait for lifecycle callbacks without modifying the core agent loop
The screenshot highlights one of xbot's core advantages: the main agent can use a remote high-capability model, while subagents fan out onto a separate local model. This lets you reserve paid remote tokens for synthesis and hard reasoning, and spend local GPU capacity on parallel exploration, code reading, tests, and report gathering.
- ๐ Getting Started
- ๐ฆ Installation
- ๐งต Hybrid Remote Main + Local Subagents
- ๐๏ธ Architecture
- โ๏ธ Operations Guide
npm install -g @trusted-ai/xbot
# or cargo install xbot
# or install a .deb from GitHub Releases
# or install from source code
cargo install --path .The installed command is xbot. See Installation for details.
xbot onboardThis will generate:
# Global config file
Config: ~/.xbot/config.json
# Global workspace
Workspace: ~/.xbot/workspacexbot supports both remote and local OpenAI-compatible backends. ๐ฏ
You can configure them interactively:
xbot config --providerOr manually edit ~/.xbot/config.json. Refer to: Getting Started
For the recommended hybrid setup, use a remote main model such as DeepSeek deepseek-v4-pro and a local OpenAI-compatible server such as vLLM serving Qwen for subagents. See Hybrid Remote Main + Local Subagents.
Before starting the backend, you should configure your preferred communication channels (Slack, Telegram, etc.) to enable message ingress and delivery. ๐ฌ
Use the interactive configuration tool:
xbot config --channelList, configure, and log in to channels:
xbot channels list # List all available channels
xbot channels status # Show enabled/disabled state
xbot channels setup discord # Setup instructions (how to get tokens)
xbot channels login weixin # Interactive login (QR code scan)Use channels setup <name> to see step-by-step instructions for obtaining the required tokens and keys for any channel. For channels that support interactive login (Weixin QR code, WhatsApp bridge), use channels login. For manual configuration or detailed channel options, see Getting Started.
Tip
Slack Users: Set up Slack App for Agents Slack Manual. Telegram Users: Set up Telegram App for Agents Telegram Manual.
xbot working on current folder by default on CLI mode, add --workspace parameter to assign working directory for xbot.
# this will scan and init the project for following tasks (XBOT.md)
xbot chat /init
# xbot chat /init --workspace ANOTHER_PROJECT_PATH
# this will do one task a time
xbot chat "find bugs in this project"xbot repl
# xbot repl --workspace ANOTHER_PROJECT_PATHThe CLI includes:
- ๐ก Streamed responses
- ๐ Persistent history
- ๐ป Local shell commands such as
/helpand/clear - ๐ค Agent commands such as
/new,/clear,/memorize <text>,/status,/initand/stop
chat and repl use the current directory as the workspace by default and create .xbot/ there. Use xbot repl --global or xbot chat --global "..." for the configured global workspace, or --workspace <path> for an explicit workspace.
xbot skills list
xbot skills init my-custom-skillxbot runrun uses the configured global workspace by default. Use xbot run --workspace . when the backend should run against the current project workspace.
Sending task(s) to xbot using configured channels (such as Slack APP).
xbot status
xbot sessions
xbot jobs
xbot channels status
xbot skills list- ๐ง email: IMAP polling + SMTP send
- ๐ฌ slack: Socket Mode or webhook ingress + send
โ๏ธ telegram: webhook ingress + send- ๐ฆ feishu: webhook ingress + send, including inbound media/resource handling
- ๐ dingtalk: Stream gateway WebSocket + REST send
- ๐ฎ discord: Gateway v10 WebSocket + REST send
- ๐ matrix: CS API v3 long-poll sync + send
- ๐ฑ whatsapp: WebSocket bridge to Node.js Baileys
- ๐ง qq: QQ Bot API WebSocket gateway + REST send
- ๐ข wecom: Enterprise WeChat AI Bot WebSocket
- ๐ฌ weixin: Personal WeChat via HTTP long-poll
- ๐ mochat: HTTP polling with session/panel support
- ๐ mcp: stdio-based external tool servers exposed as native tools
When messaging the bot through Slack, Telegram, or other channels, you can send these signals as standalone messages:
stopor/stop- Immediately stop the current agent task and cancel running subagents.clear,new,/clear, or/new- Start a new session and restore.xbot/memory/HISTORY.mdto the default template.memorize <text>or/memorize <text>- Store durable user-directed memory in.xbot/memory/MEMORY.mdthrough thememory-entry-writersummarization skill.statusor/status- Get the current version and runtime usage stats.helpor/help- Show available commands.
The gateway exposes:
- โ
GET /healthz- Health check - ๐ข
GET /readyz- Readiness check - ๐
GET /status- Runtime status - ๐
GET /metrics- Prometheus metrics - ๐๏ธ
GET /admin- Web admin UI - ๐ง
GET /api/admin/*- Admin API
cargo fmt
cargo test- ๐ค Personal AI Assistant - Always-on AI assistant across your communication channels
- ๐ Automated Monitoring - Scheduled tasks and webhook-based monitoring
- ๐ง DevOps Automation - Tool execution, file operations, and system management
- ๐ Research & Reporting - Web search, analysis, and report generation
- ๐ CI/CD Integration - GitHub/CI automation and status updates
Built with โค๏ธ in Rust ๐ฆ
