项目介绍
Agent 智能体 · 2026-11-09 更新 · 本站尚未实测
XAgent 是 OpenBMB 开源的实验性 LLM 驱动自主智能体,README 自述为“a general-purpose agent that can be applied to a wide range of tasks”,目标是自动分解并解决各类复杂任务。仓库仍处于早期阶段(原文:XAgent is still in its early stages),作者也在说明中承认需持续改进,应把它视为研究型项目而非成熟产品。
架构上 XAgent 由三部分组成:Dispatcher(调度器,动态实例化并分发任务)、Planner(规划器,生成与修正计划、拆分里程碑)、Actor(执行器,调用工具完成子任务)。工具能力由独立的 ToolServer 承载,它是一个 Docker 容器,把操作约束在容器内。
需说明的是,GitHub 元数据显示仓库未被归档(archived=false),但 README 中的模型推荐与配置方式较为早期,实际维护活跃度与最新版本状态待核查。
核心能力
点击能力名称查看输入、输出和原文依据。
- 自主执行:不依赖人工逐步参与,可自动完成任务拆解与推进。
- 双层结构:规划器与执行器配合,形成规划—执行—修正的循环。
- 工具集:ToolServer 目前提供文件编辑器、Python Notebook、网页浏览器、Shell 与 Rapid API 五类工具。
- 人机协作:支持 AskForHumanHelp 工具,在信息不足时向用户追问(README 案例二)。
- 图形界面:容器 XAgent-Server 通过 nginx 与 Web 服务监听 5173 端口,默认账号 guest、密码 xagent(原文)。
- 运行记录:
running_records保存任务状态、LLM 输入输出、所用工具等中间信息,可按记录复现运行。
实际应用场景
适用场景
README 给出的示例包括:数据分析(icrm 之类文件分析并出报告)、推荐类人机交互、训练 BERT 模型分析影评情感。任务类别涵盖搜索报告、编码开发、数据分析、数学与生活助手。
适合希望研究自主智能体架构、需要可复现运行记录的团队做技术验证;不建议在缺少容器隔离与人工监督的生产环境中直接使用,具体风险待核验。
安装与接入
前置:需先安装 docker 与 docker-compose;Python >= 3.10(原文要求)。
构建 ToolServer 可按 README 拉取镜像或本地构建,原文命令为 docker compose up,或 docker compose build 后再 docker compose up。随后安装依赖 pip install -r requirements.txt。
运行前需在 assets/config.yml 中至少配置一个 OpenAI Key;README 强烈推荐 gpt-4-32k,gpt-4 可用于简单任务,并要求准备 gpt-3.5-turbo-16k 作为备用模型,明确不推荐 gpt-3.5-turbo。启动命令为 python run.py --task "put your task here" --config-file "assets/config.yml"。
本项目不是 MCP 服务,采集资料未提供 MCP 配置或 HTTPS 服务端点,相关兼容性待核验。
使用条件与限制
- 是否需要部署
- 需自行准备运行环境,具体要求见正文
- 是否需要注册
- 账号和认证要求见正文;未明确说明的项目仍待核验
- 是否需要 API Key
- 待核验
- 费用与额度
- 费用边界见正文,项目许可不代表模型或托管服务免费
- 所需权限
- 待核验
- 许可证与服务条款
- 待核验
权限费用与限制
工具执行涉及 Shell、文件写入与网页访问,README 称所有动作被限制在 Docker 容器内,但容器隔离强度、网络边界与数据外泄风险需自行评估,本文未做安全实测。
模型调用依赖 OpenAI API,会产生费用;README 未给出价格,费用须向官方核验。开源许可不等于 API 或云服务免费。Rapid API 工具需另配对应服务密钥,具体获取方式待核验。GUI 默认口令仅为文档示例,部署时应修改,未提供加固说明。
国内使用情况
网友核验 用户经验分享
与站长实测独立,不代表官方认证或本站已实测。
最近核验:暂无有效核验。参与人数按当前项目有效身份去重;不同核验项分别统计,不合并成用户总结果。仅统计审核通过且未过期的记录。
分项统计、有效期与样本量
| 核验项目 | 有效人数 | 成功 / 部分 / 失败 / 无法判断 | 成功率 | 最近核验 / 有效期 |
|---|---|---|---|---|
| 官方网站访问 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 7 天 |
| GitHub 仓库访问 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 7 天 |
| 安装与运行 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 官方服务国内连接 / MCP 连接 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 国内网络情况 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 7 天 |
| 国内模型兼容性 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 自定义 API | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 海外服务依赖 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 海外账号要求 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 中文界面 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 客户端兼容性 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 账号及费用信息 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
成功率 = 成功 ÷(成功 + 部分成功 + 失败);无法判断不计入分母。至少 5 份可判断结果才显示成功率。账号、费用、海外依赖与语言等事实项,成功表示核查结论与资料吻合,具体观察另行统计;不表示免费或没有海外依赖。不同网络、客户端和版本的结果不能直接等同。
最近有效核验
暂无审核通过且未过期的网友核验。欢迎提交真实使用记录。
查看全部有效核验 →国内实测状态:国内可用性待核验。协议兼容和官方资料说明不等于国内网络可用。
- 官方网站访问
- 尚未实测 待核验
- GitHub 仓库访问
- 尚未实测 待核验
- 官方服务国内连接
- 尚未实测 待核验
- 国内网络情况
- 尚未实测 待核验
- 国内模型兼容性
- 尚未实测 待核验
- 自定义 API
- 尚未实测 待核验
- 海外服务依赖
- 尚未实测 待核验
- 海外账号要求
- 尚未实测 待核验
- 中文界面
- 尚未实测 待核验
- 国内最后核验时间
- 尚未实测
许可与国内使用
仓库 LICENSE 为 Apache License 2.0(Copyright 2023 OpenBMB),可据此遵循该许可条款使用与再分发。模型来自境外 API,国内网络可达性、账号与合规要求均待核验。仓库未声明对国内模型或国内平台的官方适配,不得假定兼容。
项目资料与来源
字段依据与待核验事项
access:来源确认 · We highly recommend using `gpt-4-32k` to run XAgent; `gpt-4` is also OK for most simple tasks.
project_type:来源确认 · XAgent is an open-source experimental Large Language Model (LLM) driven autonomous agent that can automatically solve various tasks.
原始 README(折叠技术参考)
<div align= "center">
<h1> <img src="assets/readme/xagent_logo.png" height=40 align="texttop">XAgent</h1>
</div>
<div align="center">
[](https://twitter.com/XAgentTeam) [](https://discord.gg/zncs5aQkWZ) [](https://opensource.org/license/apache-2-0/) 
</div>
<p align="center">
<a>English</a> •
<a href="README_ZH.md">中文</a> •
<a href="README_JA.md">日本語</a>
</p>
<p align="center">
<a href="#quickstart">Tutorial</a> •
<a href="https://www.youtube.com/watch?v=QGkpd-tsFPA">Demo</a> •
<a href="https://blog.x-agent.net/blog/xagent/">Blog</a> •
<a href="https://xagent-doc.readthedocs.io/en/latest/">Documentation</a> •
<a href="#Citation">Citation</a>
</p>
## 📖 Introduction
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.
🏆 Our goal is to create a super-intelligent agent that can solve any given task!
We welcome diverse forms of collaborations, including full-time and part-time roles and more. If you are interested in the frontiers of agents and want to join us in realizing true autonomous agents, please contact us at xagentteam@gmail.com.
<div align="center">
<img src="assets/readme/overview.png" alt="Overview of Xagent" width="700"/>
<br/>
<figcaption>Overview of XAgent.</figcaption>
</div>
### <img src="assets/readme/xagent_logo.png" height=30 align="texttop"> XAgent
XAgent is designed with the following features:
- **Autonomy**: XAgent can automatically solve various tasks without human participation.
- **Safety**: XAgent is designed to run safely. All actions are constrained inside a docker container. Run it anyway!
- **Extensibility**: XAgent is designed to be extensible. You can easily add new tools to enhance agent's abilities and even new agents!
- **GUI**: XAgent provides a friendly GUI for users to interact with the agent. You can also use the command line interface to interact with the agent.
- **Cooperation with Human**: XAgent can collaborate with you to tackle tasks. It not only has the capability to follow your guidance in solving complex tasks on the go but it can also seek your assistance when it encounters challenges.
XAgent is composed of three parts:
- **🤖 Dispatcher** is responsible for dynamically instantiating and dispatching tasks to different agents. It allows us to add new agents and improve the agents' abilities.
- **🧐 Planner** is responsible for generating and rectifying plans for tasks. It divides tasks into subtasks and generates milestones for them, allowing agents to solve tasks step by step.
- **🦾 Actor** is responsible for conducting actions to achieve goals and finish subtasks. The actor utilizes various tools to solve subtasks, and it can also collaborate with humans to solve tasks.
<div align="center">
<img src="assets/readme/workflow.png" alt="Workflow of Xagent" width="700"/>
<br/>
<figcaption>Workflow of XAgent.</figcaption>
</div>
### 🧰 ToolServer
ToolServer is the server that provides XAgent with powerful and safe tools to solve tasks. It is a docker container that provides a safe environment for XAgent to run.
Currently, ToolServer provides the following tools:
- **📝 File Editor** provides a text editing tool to write, read, and modify files.
- **📘 Python Notebook** provides an interactive Python notebook that can run Python code to validate ideas, draw figures, etc.
- **🌏 Web Browser** provides a web browser to search and visit webpages.
- **🖥️ Shell** provides a bash shell tool that can execute any shell commands, even install programs and host services.
- **🧩 Rapid API** provides a tool to retrieve APIs from Rapid API and call them, which offers a wide range of APIs for XAgent to use. See [ToolBench](https://github.com/OpenBMB/ToolBench) to get more information about the Rapid API collections.
You can also easily add new tools to ToolServer to enhance XAgent's abilities.
<div><a id="Quickstart"></a></div>
## ✨ Quickstart
### 🛠️ Build and Setup ToolServer
ToolServer is where XAgent's action takes place. It is a docker container that provides a safe environment for XAgent to run.
So you should install `docker` and `docker-compose` first.
Then, you need to build the ToolServer image. Construct referring to any one of the following methods:
#### Pull the image from docker hub by running the following command:
```bash
docker compose up
```
#### Build an image from local sources by running the following command:
```bash
docker compose build
docker compose up
```
This will build the image for the ToolServer and start the ToolServer's container.
If you want to run the container in the background, please use `docker compose up -d`.
Refer [here](ToolServer/README.md) for detailed information about our ToolServer.
If the ToolServer is updated, you have to repull/rebuild the images:
```bash
docker compose pull
```
Or
```bash
docker compose build
```
### 🎮 Setup and Run XAgent
After setting up ToolServer, you can start to run XAgent.
- Install requirements (Require Python >= 3.10)
```bash
pip install -r requirements.txt
```
- Configure XAgent
1. You should configure XAgent in `assets/config.yml` before running it.
2. At least one OpenAI key is provided in `assets/config.yml`, which is used to access OpenAI API.
We highly recommend using `gpt-4-32k` to run XAgent; `gpt-4` is also OK for most simple tasks.
In any case, at least one `gpt-3.5-turbo-16k` API key should be provided as a backup model.
We do not test or recommend using `gpt-3.5-turbo` to run XAgent due to minimal context length; you should not try to run XAgent on that.
3. If you want to change the config_file path for `XAgentServer`, you should modify the `CONFIG_FILE` value in `.env` file and restart the docker container.
- Run XAgent
```bash
python run.py --task "put your task here" --config-file "assets/config.yml"
```
1. You can use the argument `--upload-files` to select the initial files you want to submit to XAgent.
2. The local workspace for your XAgent is in `local_workspace`, where you can find all the files generated by XAgent throughout the running process.
3. After execution, the entire `workspace` in `ToolServerNode` will be copied to `running_records` for your convenience.
4. Besides, in `running_records`, you can find all the intermediate steps information, e.g., task statuses, LLM's input-output pairs, used tools, etc.
5. You can load from a record to reproduce a former run, just by setting `record_dir` in config(default to `Null`). The record is a system-level recording tied to the code version of XAgent. All running-config、query、code execution statuses (including errors)、server behavior will be documented.
6. We have removed all sensitive information (including API keys) from the record so you can safely share it with others. In the near future, we will introduce more granular sharing options highlighting the contributions of humans during execution.
- Run XAgent with GUI
The container `XAgent-Server` is started with nginx and a web server listening on port `5173`.
You could visit `http://localhost:5173` to interact with XAgent by using web UI.
The default username and password are `guest` and `xagent`, respectively.
Refer [here](XAgentServer/README.md) for the detailed information about our GUI Demo.
<div><a id="Demo"></a></div>
## 🎬 Demo
Here, we also show some cases of solving tasks by XAgent:
You can check our live demo on [XAgent Official Website](https://www.x-agent.net/). We also provide a video demo and showcases of using XAgent here:

### Case 1. Data Analysis: Demonstrating the Effectiveness of Dual-Loop Mechanism
We start with a case of aiding users in intricate data analysis. Here, our user submitted an `iris.zip` file to XAgent, seeking assistance in data analysis. XAgent swiftly broke down the task into four sub-tasks: (1) data inspection and comprehension, (2) verification of the system's Python environment for relevant data analysis libraries, (3) crafting data analysis code for data processing and analysis, and (4) compiling an analytical report based on the Python code's execution results.
Here is a figure drawn by XAgent.

### Case 2. Recommendation: A New Paradigm of Human-Agent Interaction
Empowered with the unique capability to actively seek human assistance and collaborate in problem-solving, XAgent continues to redefine the boundaries of human-agent cooperation. As depicted in the screenshot below, a user sought XAgent's aid in recommending some great restaurants for a friendly gathering yet failed to provide specific details. Recognizing the insufficiency of the provided information, XAgent employed the AskForHumanHelp tool, prompting human intervention to elicit the user's preferred location, budget constraints, culinary preferences, and dietary restrictions. Armed with this valuable feedback, XAgent seamlessly generated tailored restaurant recommendations, ensuring a personalized and satisfying experience for the user and their friends.

### Case 3. Training Model: A Sophisticated Tool User
XAgent not only tackles mundane tasks but also serves as an invaluable aid in complex tasks such as model training. Here, we show a scenario where a user desires to analyze movie reviews and evaluate the public sentiment surrounding particular films. In response, XAgent promptly initiates the process by downloading the IMDB dataset to train a cutting-edge BERT model (see screenshot below), harnessing the power of deep learning. Armed with this trained BERT model, XAgent seamlessly navigates the intricate nuances of movie reviews, offering insightful predictions regarding the public's perception of various films.



### 📊 Evaluation
We conduct human preference evaluation to evaluate XAgent's performance. We prepare [over 50 real-world complex tasks](assets/tasks.yml) for assessment, which can be categorized into 5 classes: Search and Report, Coding and Developing, Data Analysis, Math, and Life Assistant.
We compare the results of XAgent with [AutoGPT](https://github.com/Significant-Gravitas/AutoGPT), which shows a total win of XAgent over AutoGPT.
All running records can refer to [here](https://drive.google.com/drive/folders/1I-j6FZDyMRrLTpZ64jeN89emA77AbNfc?usp=drive_link).

We report a significant improvement of XAgent over AutoGPT in terms of human preference.
We also evaluate XAgent on the following benchmarks:

<div><a id="Blog"></a></div>
## 🖌️ Blog
Our blog is available at [here](https://blog.x-agent.net/)!
<div><a id="Citation"></a></div>
## 🌟 Our Contributors
A heartfelt thank you to all our contributors. Your efforts make this project grow and thrive. Every contribution, big or small, is invaluable.

## 🌟 Star History
[](https://star-history.com/##openbmb/xagent&Date)
## Citation
If you find our repo useful, please kindly consider citing:
```angular2
@misc{xagent2023,
title={XAgent: An Autonomous Agent for Complex Task Solving},
author={XAgent Team},
year={2023},
}
```
历史前置条件说明(补充参考)
Docker 与 docker-compose;Python >= 3.10;OpenAI API Key(README 推荐 gpt-4-32k,gpt-4 可用,gpt-3.5-turbo-16k 作备用);模型调用费用待向官方核验;Rapid API 工具所需密钥获取方式待核验;境外 API 依赖与国内网络可达性待核验。
项目来源与清单版权许可
https://github.com/OpenBMB/XAgent
https://www.youtube.com/watch?v=QGkpd-tsFPA
https://xagent-doc.readthedocs.io/en/latest/
https://blog.x-agent.net/blog/xagent/
整理来源:https://github.com/slavakurilyak/awesome-ai-agents
清单版权与许可:
MIT License
Copyright (c) 2024 Slava Kurilyak
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.