Skip to main content

Xaibo is a framework for building powerful, transparent, and modular AI agents.

Project description

Xaibo: The Modular AI Agent Framework

Build flexible, observable, and production-ready AI agents with clean, swappable components.

Xaibo is a modular framework designed to help you build sophisticated AI systems that are easy to test, debug, and evolve. Move beyond monolithic agent scripts and start creating with components you can trust.

Xaibo Debug UI - Sequence Diagram Overview

Sequence Diagram Overview

Xaibo Debug UI - Detail View

Detail View of Component Interactions

Visually trace every step of your agent's operation in the debug UI.

Why Use Xaibo?

Build with Confidence, Not Concrete

Xaibo's protocol-driven architecture lets you define how components interact without locking you into specific implementations. Swap LLMs, vector stores, or tools without rewriting your agent's core logic.

Understand Your Agent's Every Thought

Every component is automatically wrapped in a transparent proxy that observes all inputs, outputs, and errors. The built-in debug UI provides a sequence diagram of your agent's inner workings, making complex interactions easy to understand and debug.

Test, Don't Guess

With first-class support for dependency injection, you can easily swap in mock components to write fast, deterministic tests for your agent's logic. Ensure your agent behaves as expected before you ever hit a real LLM API.

Quick Start

Get your first Xaibo agent running in under a minute.

Prerequisites: Python 3.10+ and pip.

  1. Install uv: (if you don't already have it)

    pip install uv
    
  2. Initialize a new project:

    uvx xaibo init my-agent-project
    

    You will be asked what dependencies you want to install. That way you don't need to install half the internet, if you are going to use just third-party APIs.

  3. Start the development server:

    cd my-agent-project
    uv run xaibo dev
    

    This starts the development server with an OpenAI compatible chat completions API at http://localhost:9001/openai and the debugging ui at http://localhost:9001.

  4. Interact with the example agent: You can now send requests to your agent using any OpenAI-compatible client.

    # Send a simple chat completion request to the Xaibo OpenAI-compatible API
    curl -X POST http://127.0.0.1:9001/openai/chat/completions \
      -H "Content-Type: application/json" \
      -d '{
        "model": "example",
        "messages": [
          {"role": "user", "content": "Hello, what time is it now?"}
        ]
      }'
    
    # Same request using HTTPie (a more user-friendly alternative to curl)
    http POST http://127.0.0.1:9001/openai/chat/completions \
      model=example \
      messages:='[{"role": "user", "content": "Hello, what time is it now?"}]'
    

What You Get

The init command sets up a clean, organized project structure for you:

my-agent-project/
├── agents/
│   └── example.yml    # Your agent's configuration
├── modules/
│   └── __init__.py
├── tools/
│   └── example.py     # An example tool implementation
├── tests/
│   └── test_example.py
└── .env               # Environment variables

Core Features

  • Protocol-Driven Architecture: Enforces clean separation between components.
  • Built-in Debug UI: Visually trace and inspect your agent's execution flow.
  • Dependency Injection: Easily swap implementations and write mockable, testable code.
  • Extensible Module System: Ships with modules for major LLM providers (OpenAI, Anthropic, Google), local embeddings, vector memory, and more.
  • Tool Support: Create tools with simple python, use MCP servers or integrate whatever fits your needs.
  • OpenAI-Compatible API: Use your agent with a wide range of existing tools and libraries out-of-the-box.
  • MCP Adapter: Expose your agents as tools to any Model Context Protocol-compatible client.

Dive Deeper: Full Documentation

For detailed guides on agent configuration, core concepts, available protocol implementations, and creating your own modules, please see our full documentation.

Get Involved

Xaibo is actively developed and we welcome contributors!

Development

Roadmap

Xaibo is actively developing:

  • Enhanced visual configuration UI
  • Visual tool definition with Xircuits
  • More API adapters beyond OpenAI standard
  • Multi-user aware agents

The core principles and APIs are stable for production use.

Contributing

Running Tests

Tests are implemented using pytest. If you are using PyCharm to run them, you will need to configure it to also show logging output. That way some failures will be a lot easier to debug.

Go to File > Settings > Advanced Settings > Python and check the option Pytest: do not add "--no-header --no-summary -q".

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xaibo-0.1.8.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xaibo-0.1.8-py3-none-any.whl (583.7 kB view details)

Uploaded Python 3

File details

Details for the file xaibo-0.1.8.tar.gz.

File metadata

  • Download URL: xaibo-0.1.8.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for xaibo-0.1.8.tar.gz
Algorithm Hash digest
SHA256 38c8538529fd0a52a1eaad31838043ed9f0e0817256dc1bab1a148a468726c76
MD5 12ee44ce4382b7264c472c6389d9d04d
BLAKE2b-256 e4b3a46799e9f8f36a13299a6daea95be4ff00c022b6c24f144eb89b17505e5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for xaibo-0.1.8.tar.gz:

Publisher: ci-cd.yml on XpressAI/xaibo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xaibo-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: xaibo-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 583.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for xaibo-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 55e31e0ffe3c8a2e22f8bd7faf999867aa74175c696d342ab290d03537c6c844
MD5 fa3841593864596abd8a02efc43c7db8
BLAKE2b-256 71d37b98f753f5243b90b153cd3b7bd9bfa60be9f0353c0e055bfab35661d1b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for xaibo-0.1.8-py3-none-any.whl:

Publisher: ci-cd.yml on XpressAI/xaibo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page