Skip to main content

Agentic Bus

Agentic Bus

Reference implementation of the Liquid Interfaces Protocol
A dynamic, negotiation-driven, multi-agent coordination runtime where interfaces are not static contracts — they are ephemeral relational events.

Quick StartArchitectureKey ConceptsDashboard UIREST APICLI ReferenceTestingContributingLicense

PyPI CI License: MIT Python 3.11+ LangGraph Next.js 16


🧭 Overview

Agentic Bus introduces a coordination paradigm in which interfaces are not persistent technical artifacts, but ephemeral relational events that emerge through intention articulation and semantic negotiation at runtime.

Instead of pre-wired API contracts, a requesting agent simply states its intent in natural language — e.g., "deliver this container within 200 km of the closed port, optimizing for cost and time" — and the runtime discovers capable agents, negotiates terms, composes an execution graph, and dissolves everything once the task is complete, leaving zero technical debt.

📄 Read the full paper: lip.md"Liquid Interfaces: A Dynamic Ontology for the Interoperability of Autonomous Systems"


✨ Key Concepts

Principle Description
Intent-first Coordination starts from a natural-language objective, not from an endpoint or schema.
Negotiated Interfaces emerge through semantic negotiation at runtime — no prior contracts required.
Ephemeral All coordination artifacts are dissolved after task completion — zero technical debt.
Governed IBAC (Intention-Based Access Control) is enforced at every phase of the lifecycle.

How is this different?

Paradigm Focus Agentic Bus Difference
REST / GraphQL Static contracts & schemas No pre-defined endpoints; interfaces emerge dynamically
Service Mesh Syntactic routing between known services Semantic discovery & negotiation among unknown agents
FIPA-ACL Formal logic between rational agents Probabilistic LLM-driven negotiation; tolerates heterogeneous reasoning
Smart Contracts Immutable deterministic agreements Ephemeral, adaptive contracts that dissolve post-execution
MCP "What is available?" (tool exposure) "What should happen?" (intent orchestration) — complementary; MCP servers join the bus via the MCP bridge
A2A Agent-to-agent messaging over declared Agent Cards A layer above: intent expressed before a counterparty is known, plus purpose-bound governance (IBAC). A2A can carry LIP as transport

🏗️ Architecture

                          ┌──────────────┐
                          │   Dashboard  │  (Next.js 16 — ui/)
                          │   React UI   │
                          └──────┬───────┘
                                 │ REST
                                 ▼
Requester ──WebSocket──► Coordinator ──WebSocket──► Provider Agents
                              │  │
                         ┌────┘  └────┐
                    ┌────┴────┐  Admin REST API
                    │ LangGraph│  (FastAPI :8766)
                    └────┬────┘
                         │
               IBAC ◄────┤────► Registry
                         │
                    Telemetry (OTel)
                         │
                    Persistence (SQLAlchemy)

The Coordinator implements the full Agentic Bus session lifecycle:

  1. Accept & authenticate WebSocket connections (OIDC)
  2. Open intent sessions
  3. Discover eligible agents via semantic adjudication
  4. Request offers from matching agents
  5. Evaluate offers through IBAC governance
  6. Negotiate & compose offers into an execution plan
  7. Build a LangGraph dynamically
  8. Supervise execution with failure handling
  9. Dissolve the session — all artifacts are ephemeral

Project Layout

agentic-bus/
│
├── docker-compose.yml          # Full stack: Ollama + coordinator + dashboard
├── Dockerfile                  # Coordinator image
├── docker/                     # Container entrypoint
├── schemas/                    # Generated LIP JSON Schemas (see CONTRIBUTING)
│
├── app/                        # Python backend
│   ├── cli.py                  # CLI entry point (agbus command)
│   ├── core/                   # Shared infrastructure
│   │   ├── protocol/           #   Message model & envelope
│   │   ├── transport/          #   WebSocket server / client
│   │   ├── session/            #   Session lifecycle management
│   │   ├── registry/           #   Dynamic capability registry
│   │   ├── ibac/               #   Intention-Based Access Control engine
│   │   ├── telemetry/          #   OpenTelemetry instrumentation
│   │   ├── auth/               #   OIDC authentication & admin auth
│   │   ├── llm/                #   Multi-provider LLM factory
│   │   └── persistence/        #   SQLAlchemy models & repositories
│   │       ├── models.py       #     DB models (agents, tenants, users, IBAC rules, LLM configs)
│   │       ├── repository.py   #     Agent repository
│   │       ├── tenant_repository.py
│   │       ├── user_repository.py
│   │       ├── ibac_repository.py
│   │       ├── llm_repository.py
│   │       └── managed_agent_repository.py
│   │
│   ├── coordinator/            # Coordination runtime
│   │   ├── server.py           #   Server entry point (WS + REST)
│   │   ├── runtime.py          #   Core coordinator runtime
│   │   ├── intent/             #   Intent admission & decomposition
│   │   ├── negotiation/        #   Offer collection, scoring, composition
│   │   ├── graph/              #   Dynamic LangGraph synthesis
│   │   ├── execution/          #   Supervised execution & failure handling
│   │   └── admin/              #   Admin REST API (FastAPI)
│   │       ├── api.py          #     All REST endpoints
│   │       ├── service.py      #     Business logic
│   │       ├── schemas.py      #     Pydantic DTOs
│   │       ├── serializers.py  #     Model → DTO serializers
│   │       └── audit.py        #     Audit logging
│   │
│   └── agents/                 # Agent SDK & examples
│       ├── base/               #   Base agent framework
│       ├── factory.py          #   Agent factory (CrewAI integration)
│       ├── managed_server.py   #   Managed agent server
│       ├── requester.py        #   Intent requester client
│       └── examples/           #   Sample provider agents
│           ├── logistics_agent/
│           └── intent_client_example.py
│
├── ui/                         # Admin Dashboard (Next.js 16)
│   ├── src/
│   │   ├── app/                #   App Router pages
│   │   │   ├── page.tsx        #     Dashboard home (stats overview)
│   │   │   ├── agents/         #     Agent management (persistent & managed)
│   │   │   ├── intent/         #     Intent session inspector
│   │   │   ├── ibac/           #     IBAC rule management
│   │   │   ├── audit/          #     Audit log viewer
│   │   │   ├── tenants/        #     Multi-tenant management
│   │   │   ├── users/          #     User administration
│   │   │   └── settings/       #     Coordinator & LLM settings
│   │   ├── components/         #   Reusable UI components (shadcn/ui)
│   │   ├── hooks/              #   Custom React hooks
│   │   │   ├── use-async.ts    #     Async data fetching
│   │   │   └── use-intent-ws.ts#     WebSocket intent streaming
│   │   └── lib/                #   Shared utilities
│   │       ├── api.ts          #     REST API client
│   │       ├── protocol.ts     #     Protocol type definitions
│   │       └── types.ts        #     TypeScript types
│   └── package.json
│
└── tests/                      # Test suite (22 modules, 411 tests)
    ├── test_admin.py
    ├── test_auth.py
    ├── test_cli.py
    ├── test_graph.py
    ├── test_ibac.py
    ├── test_ibac_rules.py
    ├── test_intent_client.py
    ├── test_llm_config.py
    ├── test_llm_factory.py
    ├── test_managed_agents.py
    ├── test_negotiation.py
    ├── test_persistence.py
    ├── test_protocol.py
    ├── test_registry.py
    ├── test_session.py
    ├── test_telemetry.py
    └── test_tenants_users.py

🚀 Quick Start

Try it with no API keys

git clone https://github.com/draiven-io/agentic-bus.git && cd agentic-bus && docker compose up

That brings up a local model (Ollama), the coordinator with the paper's four logistics agents already seeded and running, and the dashboard:

Dashboard http://localhost:3000
REST API http://localhost:8766/api/docs
LIP bus ws://localhost:8765

Open the dashboard, go to Intent, and submit something like "a storm has closed the port — find me an alternative route and tell me what it costs". You'll watch discovery, negotiation, plan approval, execution and dissolution happen live.

On the local model. The compose stack defaults to qwen2.5:3b so the first run is a ~2 GB download rather than a signup. It is enough to watch the full lifecycle, but negotiation quality scales with the model. For results worth judging the paradigm on, point the coordinator at a hosted model — set AGBUS_BOOTSTRAP_LLM_PROVIDER, AGBUS_BOOTSTRAP_LLM_MODEL and AGBUS_BOOTSTRAP_LLM_API_KEY in docker-compose.yml, or pick a larger local one with AGBUS_DEMO_MODEL=qwen2.5:14b docker compose up.

Install the package

pip install agentic-bus

The core install gives you the coordinator, the protocol, IBAC, and the agent SDK. Two features load their dependencies lazily and need an extra:

pip install "agentic-bus[agents]"   # CrewAI-backed managed agents
pip install "agentic-bus[mcp]"      # bridge MCP servers onto the bus
pip install "agentic-bus[all]"      # both

Then configure and run it:

agbus install
agbus serve

agbus install is an interactive wizard: it writes a .env for the server and database settings and stores your LLM provider in the database. To skip the wizard, see Configuration below.

Develop against a checkout

git clone https://github.com/draiven-io/agentic-bus.git
cd agentic-bus
pip install -e ".[all,dev]"
agbus serve
cd ui && npm install && npm run dev
python -m app.agents.examples.logistics_agent.agent

⚠️ Note: run agbus from the directory containing your .env.

Configuration

Configuration is split in two, deliberately:

What Where Why
Server, database, OIDC .env Needed before the process can reach a database
LLM providers (and their API keys) Database Switchable at runtime without restarting the coordinator; credentials never sit in a file

agbus install writes the .env and stores your first LLM provider in the database. Add or switch providers later without touching either by hand:

agbus llm add --name prod --provider anthropic --model claude-sonnet-4-20250514 --api-key sk-ant-... --activate
agbus llm list

The .env covers the runtime itself:

AGBUS_HOST=0.0.0.0
AGBUS_PORT=8765
AGBUS_DATABASE_URL=sqlite:///agbus_agents.db
AGBUS_AGENT_AUTO_APPROVE=false
Supported LLM providers

openai, anthropic, google, azure, and ollama (local, no API key). Azure additionally needs an endpoint, deployment name and API version, which agbus install and agbus llm add both prompt for.

Run agbus config show to display the resolved runtime configuration and the active LLM provider.


🖥️ Admin Dashboard (UI)

The Admin Dashboard is a full-featured Next.js 16 application that provides a visual management interface for the entire Agentic Bus runtime. Built with React 19, Tailwind CSS 4, shadcn/ui, and Recharts.

Pages

Page Description
Dashboard (/) Real-time stats overview — active agents, sessions, recent audit events
Agents (/agents) Manage persistent (self-enrolled) and managed (coordinator-created) agents; approve, reject, revoke, activate, disable
Create Agent (/agents/create) Interactive form to create a new managed agent with capabilities and CrewAI tool selection
Intent (/intent) Live intent session inspector with WebSocket streaming
IBAC Rules (/ibac) Create, edit, and delete Intention-Based Access Control rules
Audit Log (/audit) Searchable audit trail of all administrative actions
Tenants (/tenants) Multi-tenant management — create tenants, assign agents to tenants
Users (/users) User administration — create, edit, assign roles and tenants
Settings (/settings) Coordinator configuration and LLM provider management

Running the UI

cd ui
npm install
npm run dev       # Development mode (http://localhost:3000)
npm run build     # Production build
npm run start     # Production server

🔌 Admin REST API

The coordinator exposes a FastAPI admin REST API on port 8766 (configurable via AGBUS_API_PORT). Interactive Swagger documentation is available at /api/docs, and an unauthenticated liveness probe at /health.

Endpoints

Method Endpoint Description
GET /api/admin/stats Dashboard statistics
GET /api/admin/me Current authenticated user
GET /api/admin/agents/persistent List persistent (self-enrolled) agents
GET /api/admin/agents/persistent/{id} Get a persistent agent
POST /api/admin/agents/persistent/{id}/approve Approve enrolment
POST /api/admin/agents/persistent/{id}/reject Reject enrolment
POST /api/admin/agents/persistent/{id}/revoke Revoke an agent
DELETE /api/admin/agents/persistent/{id} Delete an agent
GET /api/admin/agents/managed List managed agents
GET /api/admin/agents/managed/{id} Get a managed agent
POST /api/admin/agents/managed Create a managed agent
POST /api/admin/agents/managed/{id}/activate Activate
POST /api/admin/agents/managed/{id}/disable Disable
DELETE /api/admin/agents/managed/{id} Delete
GET /api/admin/agents/ephemeral List ephemeral (in-session) agents
GET /api/admin/agents/tools List available CrewAI tools
GET /api/admin/sessions List active sessions
GET /api/admin/audit Query audit log
GET /api/admin/tenants List tenants
GET /api/admin/tenants/{id} Get a tenant
POST /api/admin/tenants Create a tenant
PUT /api/admin/tenants/{id} Update a tenant
DELETE /api/admin/tenants/{id} Delete a tenant
POST /api/admin/tenants/{id}/agents/{agent_id} Assign agent to tenant
DELETE /api/admin/tenants/{id}/agents/{agent_id} Remove agent from tenant
GET /api/admin/users List users
GET /api/admin/users/{id} Get a user
POST /api/admin/users Create a user
PUT /api/admin/users/{id} Update a user
DELETE /api/admin/users/{id} Delete a user
GET /api/admin/ibac/rules List IBAC rules
GET /api/admin/ibac/rules/{id} Get an IBAC rule
POST /api/admin/ibac/rules Create an IBAC rule
PUT /api/admin/ibac/rules/{id} Update an IBAC rule
DELETE /api/admin/ibac/rules/{id} Delete an IBAC rule
GET /api/admin/llm/configs List LLM configurations
POST /api/admin/llm/configs Create an LLM configuration
POST /api/admin/llm/configs/{name}/activate Activate a configuration
PUT /api/admin/llm/configs/{name} Update a configuration
DELETE /api/admin/llm/configs/{name} Delete a configuration
GET /api/admin/settings Get coordinator settings

💻 CLI Reference

agbus install                          # Interactive setup wizard
agbus serve                            # Start the coordinator server

agbus db init                          # Create / migrate database tables

agbus agent list                       # List all registered agents
agbus agent show  <id>                 # Inspect a single agent
agbus agent approve <id>               # Approve a pending enrolment
agbus agent reject  <id>               # Reject a pending enrolment
agbus agent revoke  <id>               # Revoke an approved agent
agbus agent delete  <id>               # Permanently remove an agent
agbus agent create                     # Create a managed agent (interactive)
agbus agent activate <id>              # Activate a managed agent
agbus agent disable <id>               # Disable a managed agent
agbus agent add-capability <id>        # Add capability to a managed agent
agbus agent remove-capability <id> <c> # Remove a capability
agbus agent tools                      # List available CrewAI tools

agbus llm list                         # List LLM configurations
agbus llm show <name>                  # Inspect one configuration
agbus llm add                          # Add a provider configuration
agbus llm activate <name>              # Make a configuration current
agbus llm update <name>                # Update a configuration
agbus llm remove <name>                # Delete a configuration

agbus config show                      # Display resolved configuration
agbus config init                      # Write a starter .env file

agbus help                             # Comprehensive documentation
agbus help quickstart                  # Step-by-step setup guide

🧪 Testing

The project includes a comprehensive test suite — 411 tests across 22 modules — covering every subsystem.

The suite is hermetic: it ignores your .env, requires no API keys, and never touches the network. Each test gets a scrubbed environment and its own migrated database (see tests/conftest.py), so a green run on your machine means a green run in CI.

# Run all tests
pytest

# Run a specific test file
pytest tests/test_negotiation.py

# Run with verbose output
pytest -v

Test Coverage

Test File Subsystem
test_protocol.py Message model & envelope
test_session.py Session lifecycle
test_registry.py Capability registry
test_auth.py OIDC authentication
test_ibac.py IBAC engine
test_ibac_rules.py IBAC rule CRUD
test_negotiation.py Negotiation engine
test_graph.py LangGraph builder
test_persistence.py Database persistence
test_admin.py Admin REST API
test_managed_agents.py Managed agent lifecycle
test_llm_config.py LLM configuration management
test_llm_factory.py Multi-provider LLM factory
test_intent_client.py Intent requester client
test_telemetry.py OpenTelemetry tracing
test_cli.py CLI commands
test_tenants_users.py Multi-tenant & user management
test_agent_stats.py Agent scoring & latency priors
test_execution_supervisor.py Supervised execution & failure handling
test_mcp_bridge.py MCP server bridging
test_session_memory.py Session memory policies
test_validation.py Assigned-validator renegotiation loop

🗺️ Roadmap

  • Admin Dashboard (Web UI)
  • Admin REST API (FastAPI)
  • Multi-tenant & user management
  • IBAC rule management
  • Audit logging
  • LLM configuration management
  • Managed agent lifecycle (CrewAI integration)
  • Distributed coordinator clustering
  • Persistent session replay & auditing
  • Agent marketplace & trust scoring
  • Plugin system for custom negotiation strategies
  • Multi-modal intent support (voice, image, structured data)

🤝 Contributing

Contributions are welcome! Whether it's bug reports, feature requests, documentation improvements, or code contributions — we'd love your help.

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Please make sure all tests pass before submitting:

pip install -e ".[dev]"
pytest
ruff check .

📖 Citation

If you use Agentic Bus in your research, please cite:

@misc{desá2026liquidinterfacesdynamicontology,
      title={Liquid Interfaces: A Dynamic Ontology for the Interoperability of Autonomous Systems}, 
      author={Dhiogo de Sá and Carlos Schmiedel and Carlos Pereira Lopes},
      year={2026},
      eprint={2601.21993},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2601.21993}, 
}

📄 License

This project is licensed under the MIT License — see the LICENSE file for details.


Made with ❤️ by Draiven

Download files

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

Source Distribution

agentic_bus-0.1.0.tar.gz (242.6 kB view details)

Uploaded Source

Built Distribution

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

agentic_bus-0.1.0-py3-none-any.whl (193.6 kB view details)

Uploaded Python 3

File details

Details for the file agentic_bus-0.1.0.tar.gz.

File metadata

  • Download URL: agentic_bus-0.1.0.tar.gz
  • Upload date:
  • Size: 242.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agentic_bus-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d2d8c8d33544390a298b66f14db02c7a60d8a1d1a685c61511c79575d6e76b0a
MD5 b3b97e4d90d0983aa62cb5b126c2c147
BLAKE2b-256 9a3107f03f3d16121a98382182f3ada36f393a290f09dd4b27ff594144247bd6

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentic_bus-0.1.0.tar.gz:

Publisher: release.yml on draiven-io/agentic-bus

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

File details

Details for the file agentic_bus-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agentic_bus-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 193.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agentic_bus-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0fc93a1f2e659d5d5af69a7c414f0a2e6f5c732b968f0045c429dd3184e6ba4c
MD5 d7dfaf93231171da6682c6917b458740
BLAKE2b-256 0c74518885496ebc92fde71994b0331d858ea552e45a1ba90b291719de68aec9

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentic_bus-0.1.0-py3-none-any.whl:

Publisher: release.yml on draiven-io/agentic-bus

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

Release history Release notifications | RSS feed

0.3.0

2 files

0.2.0

2 files

This release

0.1.0 This release

2 files

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