# XAgent

> XAgent is an open-source agent for multi-agent frameworks. Experimental open-source autonomous agent that plans and runs tasks in Docker. It is available on Self-hosted, CLI, Web and API.

- **Kind:** Agent
- **Pricing:** Open source
- **Platforms:** Self-hosted, CLI, Web, API
- **Website:** https://blog.x-agent.net/blog/xagent/
- **Repository:** https://github.com/openbmb/xagent
- **GitHub stars:** 8,543
- **License:** Apache-2.0
- **Categories:** [multi-agent frameworks](https://ai-powered.com/categories/multi-agent-frameworks)
- **Listing updated:** 2026-12-01

## About

XAgent is an research-stage autonomous agent built on large language models. Its design splits work across a Dispatcher that assigns agents, a Planner that breaks goals into subtasks and milestones, and an Actor that carries out each step with tools. Rather than running commands directly on a host machine, its actions happen inside a Docker container managed through a separate ToolServer.

The ToolServer bundles a file editor, a Python notebook, a web browser, a shell and access to RapidAPI collections, and new tools can be added to it. Users can start a run from the command line with a task and optional input files, or use a web interface served from a container. Each run is written to a record folder that holds intermediate steps, model inputs and outputs, and tool usage, so a run can be replayed.

XAgent suits developers and researchers who want to study or extend an agent architecture with multi-step planning, sandboxed execution and human handoff. It requires Docker and an OpenAI API key, and the project describes itself as still in early stages.

## Features

- **Role-based agent architecture:** Separates dispatching, planning and acting into distinct components that can be extended independently.
- **Docker-sandboxed actions:** Runs agent actions inside a container so shell and file operations stay isolated from the host.
- **Built-in tool server:** Provides a file editor, Python notebook, web browser, shell and RapidAPI access out of the box.
- **Human assistance requests:** Lets the agent pause and ask the user for missing details such as preferences or constraints.
- **Replayable run records:** Saves intermediate steps, model inputs and outputs and tool usage for each run.
- **Web and command line interfaces:** Offers a browser UI served from a container as well as a command line entry point.

## Good for

- Analysing a dataset from an uploaded file and producing a written report
- Researching a topic on the web and compiling findings
- Writing and executing Python code to process data or draw figures
- Training a small machine learning model from a public dataset
- Studying agent planning and tool-use designs for research

## FAQ

### What do I need to run XAgent?

Docker and docker-compose, Python 3.10 or newer, and at least one OpenAI API key set in the configuration file.

### Where do the agent's actions run?

Actions run inside a Docker container provided by the ToolServer, which the project describes as a safe environment.

### Which models does XAgent recommend?

The project recommends gpt-4-32k, says gpt-4 is fine for simpler tasks, and advises against gpt-3.5-turbo because of its short context length.

### Can I add my own tools?

Yes, new tools can be added to the ToolServer to extend the agent's abilities.

### Is XAgent free?

Yes. XAgent is open source, so you can use and self-host it for free.

### What are the best alternatives to XAgent?

The closest alternatives to XAgent are AgentK, Agentlas-OS, AgentVerse, smolagents and ix.

## Where this comes from

- Description: written from the project's README and the project's website.

## Alternatives

- [AgentK](https://ai-powered.com/agents/agentk): AgentK is an open-source agent for multi-agent frameworks.
- [Agentlas-OS](https://ai-powered.com/agents/agentlas-os): Agentlas-OS is an open-source agent for ai models and llm tooling.
- [AgentVerse](https://ai-powered.com/agents/agentverse-2): AgentVerse is an open-source agent for multi-agent frameworks.
- [smolagents](https://ai-powered.com/agents/smolagents): smolagents is an open-source agent framework for multi-agent frameworks.
- [ix](https://ai-powered.com/agents/ix): ix is an open-source agent for multi-agent frameworks.
- [EvoAgentX](https://ai-powered.com/agents/evoagentx): EvoAgentX is an open-source agent framework for knowledge and memory.
- [microagents](https://ai-powered.com/agents/microagents): microagents is an open-source agent for ai models and llm tooling.
- [agency-swarm](https://ai-powered.com/agents/agency-swarm): agency-swarm is an open-source agent framework for multi-agent frameworks.

---
Source: https://ai-powered.com/agents/xagent
