Skip to content
AgentOpen-source agent

XAgent

Experimental open-source autonomous agent that plans and runs tasks in Docker

XAgent is an open-source agent for multi-agent frameworks. It is available on Self-hosted, CLI, Web and API.

Pricing
Open source
Platforms
Self-hosted, CLI, Web
GitHub stars
8.5K
Last commit
Language
Python
License
Apache-2.0

Similar agents

About XAgent

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.

What it does

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

Pricing

Open source

Free and open source under Apache-2.0; uses your own OpenAI API key.

Prices change. Check blog.x-agent.net before you buy.

XAgent 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.