Skip to main content

Xagent. Enterprise agent platform. Build and deploy AI teammates.

Xagent

The enterprise platform for building and deploying AI teammates.

Open Xagent, describe a task in the workspace, and run it right away. For repeatable work, add a preconfigured teammate or build your own. Publish the teammate when you want other people to use it.

Try TobyBot Cloud · Self-host Xagent · Run a task · Build a teammate · Documentation

Why choose Xagent?

Once an agent starts serving other people, your organization needs to decide what it can access, where users can reach it, and how to investigate a bad result. Xagent gives you a workspace for getting work done and a way to publish and operate the teammates that take on recurring responsibilities.

  • Start with a real request. Run a task directly from the workspace. In Auto mode, Xagent can answer directly, call tools, or plan and execute multiple steps based on the request.
  • Reuse the same specialist. Use a published teammate directly from the workspace, or add it to a Workforce where a manager can delegate work to it. Configure the specialist's model, skills, tools, and knowledge in one place.
  • Follow the request after launch. Let users reach a teammate through a link, a widget, or your own app. Find conversations by teammate and source, then inspect the transcript and any recorded tool calls for a particular request.

What is Xagent?

Xagent is a self-hostable platform for AI teammates. A teammate is a reusable agent configured for a specific job, with its own instructions, model, skills, tools, and knowledge.

Use a teammate directly in Xagent, or publish it for end users through a shareable link, an embedded widget, or an application connected via API.

What is TobyBot?

TobyBot is the commercial agent platform built on Xagent. Business teams use it to run tasks, build AI teammates for recurring work, and publish them for colleagues or customers. TobyBot Cloud is the hosted version of TobyBot.

How does Xagent work?

  1. Configure and test. Select the models and resources a teammate needs, connect your tools and knowledge, and test a sample request in the Builder.
  2. Publish and deliver. Choose where people will use the teammate. Enable a share link, embed it on an allowed domain, or call it from your application with an agent API key.
  3. Run and inspect. Use conversation logs and monitoring to see how teammates handle requests after you publish them.

Run a task

Enter a request in the workspace and send it. In this example, Xagent turns a few release notes into a customer update in the same conversation.

The Xagent workspace task composer next to the resulting customer update.

Build a teammate

Open Add a teammate to choose a preconfigured teammate or build your own. In the Builder, describe the job, choose a model, and attach the skills, tools, and knowledge the job calls for.

For a Product Support teammate, connect the product documentation and set instructions for answering setup, account, and billing questions. Try a question in Preview before publishing.

The Xagent Builder showing the selected model and Product Documentation knowledge base.

Skills package reusable instructions and resources. Knowledge bases supply reference material. MCP connectors bring external tools and systems into the teammate's workflow.

Deploy for end users

Publish the teammate, then choose an entry point that fits where your users already work.

Entry point How people use it
Shareable link Visitors open a hosted chat page for the published teammate. Enable, reset, or disable the link from its deployment settings.
Embedded widget Add chat to a site such as a help center and configure the allowed domains.
REST API Call the teammate from your application or backend using an agent API key.

The Product Support teammate's share link next to the chat page a visitor sees.

Teammates can also run on a schedule or respond to webhook events. For jobs that require several specialists, create a Workforce with a manager agent and published teammates.

Scope guest widget history

On a secure host page (typically HTTPS), add the optional data-guest-scope attribute to your data-widget-key embed snippet. Pass a stable, non-empty opaque reference for the active account. Keep names, email addresses, and other personal data out of the attribute.

<script
  src="https://chat.example.com/widget.js"
  data-widget-key="YOUR_WIDGET_KEY"
  data-guest-scope="OPAQUE_ACCOUNT_REFERENCE"
></script>

The widget stores a separate guest ID for the SHA-256 digest of each scope in the host page's local storage. Remount the widget with the new scope when the active account changes. Omitting the attribute uses the original guest ID storage key. An invalid scope or an unavailable digest or storage prevents the scoped widget from opening a conversation.

The scope is unsigned and only separates guest histories in the same browser profile. Use signed widget sessions when the host needs to authenticate an identity. Signed widget sessions ignore data-guest-scope.

Operate Xagent

Use Conversation Logs to find a conversation by teammate or entry point. Open a run to review its transcript and execution steps, including tool calls when trace data is available. In the Product Support example, you can see the visitor's question, the reply, and the knowledge search behind it.

A Product Support conversation from a share link with the knowledge search shown in its execution trace.

  • Infrastructure. Self-host Xagent with Docker Compose and manage user accounts on your deployment.
  • Models. Connect supported API providers or serve your own models through Xinference.
  • Execution. Enable sandboxing for eligible tool calls and use monitoring to track model and tool usage.

See the deployment guide, release-specific deployment notes, and sandbox guide.

Run Xagent with TobyBot Cloud

Give TobyBot a goal. It plans the work, uses the tools you connect, and delivers the result. For work that repeats, build a teammate and run it on a schedule.

  • Team workspaces. Invite colleagues, manage member roles, and share teammates, knowledge bases, and supported apps.
  • Model choice. Use models hosted by Xinference or bring your own key for a supported provider or OpenAI-compatible endpoint.
  • Guardrails and security auditing. Set team and teammate rules for reply review and use tool allowlists for client applications. Inspect run logs and traces. TobyBot records administrative access to task traces.
  • Usage and retention. Track actions and AI credits against your plan limits. Set retention periods for conversations and execution records.

Quick start

Evaluate locally

The Python package includes the web UI. Use Python 3.11 or later.

uv tool install xagent-ai
xagent
  1. Open localhost:8000 and create the first administrator account at /setup.
  2. Connect a model provider on the Models page. To try Xagent right away, open New task and describe the work you want to run.
  3. Choose Add a teammate, then create or select a teammate and test it in the Builder.
  4. Publish the teammate, enable its share link, and open the link in a private browser window to try the visitor experience.

Moving from OpenClaw or Hermes? Use xagent migrate to import agent configuration, skills, and supported schedules. Run xagent migrate --dry-run to preview the import.

Run with Docker Compose

git clone https://github.com/xorbitsai/xagent.git
cd xagent
cp example.env .env
docker compose up -d

Open localhost and complete setup. Review the deployment settings in .env before running on a shared host. For production, serve Xagent over HTTPS and follow the deployment guide.

Forgot the administrator password? See how to reset it from the Docker host.

Try TobyBot Cloud

Sign in to TobyBot Cloud and give it your first task or add a teammate for a recurring job.

Documentation and community

Documentation · Releases · GitHub Issues · Discord · Telegram

License

Xagent is source-available under the Xagent Source License. See the license for terms covering deployment and hosted use.

Metadata

Release files for xagent-ai 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for xagent-ai 0.9.0
File Interpreter ABI Platform Actions
xagent_ai-0.9.0-py3-none-any.whl Python 3 none any Details for xagent_ai-0.9.0-py3-none-any.whl

Release files / xagent_ai-0.9.0-py3-none-any.whl

Download URL xagent_ai-0.9.0-py3-none-any.whl
Size 40.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
abb00d99ff053e55f14c994f0f870c3f8c107b37bca47d10cbf3c71a2be4a67f
BLAKE2b-256 checksum
How to use checksums
2083a4b6975797be20d108c8087b6a3b0148a0e09dc8d6edebc2e5c119dd3043
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for xagent-ai 0.9.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

1 file in this release has been uploaded with provenance metadata.

Attestation for xagent_ai-0.9.0-py3-none-any.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page