Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

AgentRouter SDK

Simplify the Complex, Amplify the Intelligent for Enterprise

Orchestrate multiple agents with ease: register agents, integrate tools, define custom instructions, and leverage multiple models. Enterprise-grade and production-ready, with full control, deep customization, strong defaults, clear boundaries, and developer-focused APIs.

📚 Full Documentation: https://agents-docs.us.inc

Overview

AgentRouter is an enterprise-grade, production-ready framework that provides:

  • 🏗️ Hierarchical Agent Management - Create manager and worker agents with unlimited nesting
  • 🔧 Tool Integration - Easy tool creation with OpenAI-compatible schemas
  • 🚀 Enterprise-Ready - Built-in error handling, logging, and monitoring
  • 🔒 Complete Isolation - Full isolation between agent instances
  • 🤝 OpenAI Compatible - Works seamlessly with OpenAI message formats
  • 📊 Visual Tracing - Zero-overhead tracing with beautiful execution visualizations

Why AgentRouter?

🎯 Purpose-Built for Enterprise Scale

Unlike generic agent frameworks, AgentRouter is designed from the ground up for production environments handling millions of requests daily. Every architectural decision prioritizes reliability, performance, and maintainability.

🔄 True Hierarchical Management

While other frameworks offer basic agent coordination, AgentRouter provides unlimited nesting depth with intelligent message routing, automatic context propagation, and seamless worker sharing across multiple managers.

💡 Key Differentiators

1. Complete Agent Isolation

  • Each agent instance is fully isolated with no state leakage
  • Concurrent execution without interference
  • Secure multi-tenant deployments

2. Shared Worker Pattern

  • Reuse specialized workers across multiple managers
  • Reduce resource consumption and API costs
  • Maintain consistency across workflows

3. Intelligent Configuration Inheritance

  • Workers automatically inherit parent configurations
  • Override specific settings when needed
  • Centralized credential management

4. Production-Grade Features

  • Built-in retry mechanisms and circuit breakers
  • Comprehensive error handling and recovery
  • Structured logging and monitoring hooks
  • Configurable timeouts at every level

5. Zero-Overhead Tracing

  • Performance profiling adds < 1ns when disabled
  • Beautiful visualization of execution flows
  • Export to multiple formats (Mermaid, HTML, JSON)

6. OpenAI Drop-in Compatibility

  • Use existing OpenAI code with minimal changes
  • Enhanced with multi-agent capabilities
  • Support for any OpenAI-compatible model provider

📊 When to Choose AgentRouter

✅ Perfect for:

  • Complex multi-department workflows
  • Applications requiring agent specialization
  • Systems needing audit trails and compliance
  • High-volume production deployments
  • Teams wanting gradual migration from OpenAI

📖 Learn more about our architecture →

Key Features

🏗️ Hierarchical Multi-Agent System

  • Unlimited nesting depth for complex workflows
  • Shared worker agents across multiple parents
  • Dynamic agent creation and attachment

🔧 Tool Integration

  • OpenAI-compatible function schemas
  • Automatic validation and error handling
  • Support for async operations

🚀 Production Ready

  • Configurable timeouts and retries
  • Built-in monitoring and logging
  • Scale to millions of users per day

📊 Visualization & Tracing

  • Zero-overhead tracing (< 1ns when disabled)
  • Multiple output formats: Mermaid, HTML, JSON
  • Pipeline validation before execution

Installation

pip install agentrouter

Quick Start

from agentrouter import ManagerAgent, WorkerAgent, tool

# Create a manager agent
manager = ManagerAgent(
    name="Customer_Service_Manager",
    model="usf-mini",
    api_key="your-api-key"
)

# Create and attach workers
tech_support = manager.create_worker(
    name="Technical_Support",
    role="Technical Support Specialist"
)

# Execute tasks
messages = [{"role": "user", "content": "Help needed"}]
response = await manager.execute(messages)

📖 View Complete Quick Start Guide →

Documentation

Getting Started

Architecture & Concepts

Examples & Cookbook

Advanced Topics

📂 Browse All Examples →

📖 Development Guide →

License

AgentRouter SDK is licensed under the Permissive Commercial Use License. See the LICENSE file for full details.

✅ You are free to:

  • Use AgentRouter for ANY commercial purpose
  • Build commercial applications and services with AgentRouter
  • Deploy AgentRouter in production environments
  • Integrate AgentRouter into your products
  • Use AgentRouter for research and development

❌ You cannot:

  • Create competing orchestration frameworks based on AgentRouter's code
  • Fork and modify AgentRouter to create competitive products
  • Use AgentRouter's source code as inspiration for competitive products

For additional support or custom licensing arrangements, please contact the UltraSafe AI Team at support@us.inc.


Visit Full Documentation →

Metadata

Release files for agentrouter 0.0.1b12

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

Source distribution (sdist)

Source distribution for agentrouter 0.0.1b12
File Size Uploaded
agentrouter-0.0.1b12.tar.gz 110.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agentrouter 0.0.1b12
File Interpreter ABI Platform
agentrouter-0.0.1b12-py3-none-any.whl Python 3 none any Details

Total release size: 216.3 kB

Release files / agentrouter-0.0.1b12.tar.gz

Download URL agentrouter-0.0.1b12.tar.gz
Size 110.2 kB
Tags Source
SHA-256 checksum
How to use checksums
96c049d8a023ffe5edd48117714760004b24a60b9a18d7ffd66caa7107f39b10
BLAKE2b-256 checksum
How to use checksums
408fe5fa4e657ede74b6e7815ba7db427e21561b555765bc4f6e7df7eb19dfdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release files / agentrouter-0.0.1b12-py3-none-any.whl

Download URL agentrouter-0.0.1b12-py3-none-any.whl
Size 106.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f31b78c8ebd0e38265c41c940327f1bd890b0e9f4c93fd1a0c13ba60912dc53
BLAKE2b-256 checksum
How to use checksums
2e77afa27dfd496c6aeb4bf4315c0d7b8c42061df1c5f2e3872ce507b2c6c656
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1
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