Self-host XAgent
v1.0.0Open-source autonomous LLM agent that plans and uses tools
docker compose up- Stars
- 8 551
- Ports
- 5173 (Web GUI (nginx fronting the XAgent-Server frontend)), 8090 (XAgent-Server backend)
- Requires
- MongoDB, MySQL, Redis
xagentteam/xagent-serverWhat is XAgent?
XAgent is an experimental autonomous agent that drives a large language model to complete complex jobs with little human input. It plans each task by breaking it into subtasks with milestones, dispatches work between agents, and acts through a fixed set of tools - a file editor, a Python notebook, a web browser, a bash shell and Rapid API calls - all executed inside a Docker container for safety. When information is missing it can stop and ask the operator for help, and it can follow guidance while working. Running it yourself means bringing up the ToolServer stack with docker compose (MongoDB, MySQL and Redis are part of that stack), filling in OpenAI keys and other settings in assets/config.yml, and then using either the web GUI served on port 5173 or the terminal entry point run.py. Every run is recorded, and a record can be loaded again to reproduce a previous result, with sensitive data such as API keys stripped out. The maintainers describe the project as still in its early stages: it needs a long-context GPT-4-class model to behave well, and its claimed advantage over AutoGPT comes from a human-preference evaluation on around 50 hand-prepared tasks.
XAgent alternatives
AxeOpen-source, self-hosted CLI that runs focused AI agents defined in TOML files, triggered from pipes, cron, or git hooks, with local Ollama or cloud LLM providers.CompareAxe with XAgent
SuperAGIOpen-source, self-hosted framework for building, deploying and running autonomous AI agents, with a web GUI, action console, toolkits and multiple vector databases.CompareSuperAGI with XAgent
LocalAGIA self-hosted, open-source platform for building local AI agents and chat bots with a web UI, RAG knowledge base, skills, MCP, and OpenAI Responses-compatible APIs.CompareLocalAGI with XAgent
AgenvoySelf-hosted AI agent running locally, auto-generates tools, shares via MCP with Claude Code and Codex, keeps data private.CompareAgenvoy with XAgent
AizenAizen is a self-hosted AI coding agent as a single 34 MB Rust binary. Connects to any OpenAI-compatible endpoint, reads/edits code, runs tests, verifies work.CompareAizen with XAgent
AnythingLLMAnythingLLM is a self-hosted, open-source AI app for document chat, AI agents, and local/cloud LLMs — running on your hardware with no token limits.CompareAnythingLLM with XAgent
AgenticSeekSelf-hosted, open-source alternative to Manus AI: a voice-enabled agent that browses the web, writes and runs code, and plans tasks on local LLMs.CompareAgenticSeek with XAgent
AgentaOpen-source, self-hosted workspace where teams build AI agents by chatting, run them in Slack, Telegram or WhatsApp, and schedule automations on any LLM.CompareAgenta with XAgent
Should you self-host XAgent?
XAgent scores 60/100 on selfhost.directory (how scoring works) and ranks #61 of 209 in AI Agents. It has 8 551 GitHub stars.
There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.
Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Python.
Its closest alternative on selfhost.directory is Orca (91/100, 123 964 stars). It scores higher overall, so compare the two before you pick. See XAgent vs Orca side by side.
Features
- Agent dispatching
- Autonomous task solving
- Command Line Interface
- Docker sandboxed execution
- Extensible tool set
- File editing tool
- Human-in-the-loop collaborationControlled by enable_ask_human_for_help in assets/config.yml, which ships set to False.
- Initial file upload
- Model selection and fallbackgpt-4-32k recommended; gpt-3.5-turbo-16k as backup.
- Python code execution
- Run recording and replay
- Shell command execution
- Subtask planning
- Web browsing tool
- Web GUI
XAgent README
Tutorial • Demo • Blog • Documentation • Citation
XAgent is an open-source experimental Large Language Model (LLM) driven autonomous agent that can automatically solve various tasks. It is designed to be a general-purpose agent that can be applied to a wide range of tasks. XAgent is still in its early stages, and we are working hard to improve it.
FAQ
I got ConnectTimeout when calling WebEnv_search_and_browse, how to fix it?
Search defaults to DuckDuckGo; if that network path fails, put a Bing search API key into assets/config/node.yml and restart the containers with docker-compose up.
How to provide XAgent service for others to use over the network?
Expose port 5173 to the external network and reach the interface at ip:5173.
How to enlarge the size and amount of uploaded files?
Edit the backend router file XAgentServer/application/routers/workspace.py and the frontend component XAgentWeb/src/views/playground/components/FileUpload.vue; the project warns this is at your own risk.
More in AI Agents
YourMemorySelf-hosted AI memory layer with Ebbinghaus decay, consolidation, and entity graphs. Runs locally via DuckDB, MCP-native, 89.4% Recall@5 on LongMemEval.
YuxiYuxi is an open-source, self-hosted knowledge agent platform combining Agentic RAG, Neo4j knowledge graphs, LangGraph multi-agent runs, MCP/Skills and sandboxes.
ZeroClawA self-hosted, open-source AI personal assistant runtime: one Rust binary with 70+ LLM providers, 30+ channels like Telegram and Discord, and sandboxed tool use.
ZimaOS-BlueZimaOS Blue is an open-source, self-hosted AI agent runtime in Go that runs locally on any device with voice, browser automation, deep research, and 20+ IM integrations.
Zosma CoworkOpen-source AI work platform with multi-agent pipeline, local models via Ollama, full data privacy, desktop app, and Docker deployment with fleet mode.
小女仆机器人Self-hosted Rust AI agent bot for QQ, OneBot 11, WeChat with memory, RAG, todos, RSS, web search, tool calling, dice, multi-model routing — ~25 MiB, SQLite.
心潮动态心智系统心潮 is a self-hosted, open-source AI dynamic mind state engine with drives, thoughts, fatigue, sleep, and short-term context. HTTP API and remote MCP with OAuth 2.1.
5dive5dive runs persistent AI agents as systemd services on your Linux server with a shared SQLite task queue and human-in-the-loop approval via Telegram/Discord.
ActivepiecesOpen-source, self-hosted workflow automation with AI agents, MCP servers, tables and 760+ app integrations, run via Docker Compose or Helm on Kubernetes.
AgentaOpen-source, self-hosted workspace where teams build AI agents by chatting, run them in Slack, Telegram or WhatsApp, and schedule automations on any LLM.
AgentDockThis self-hosted, open-source MCP runtime lets AI clients like ChatGPT, Claude or Codex run commands, edit files, use Git, and automate browsers on your own machines.
AgenticSeekSelf-hosted, open-source alternative to Manus AI: a voice-enabled agent that browses the web, writes and runs code, and plans tasks on local LLMs.


0 comments