Automagik Hive
Project description
Production-Ready Multi-Agent AI in Minutes, Not Months
๐ฏ The Only Framework Where YAML Creates Production-Ready AI Teams
One-click install with database, memory, RAG, and orchestration included.
From zero to intelligent AI systems in 5 minutes.
Features โข Quick Start โข Roadmap โข Development โข Contributing
๐ What is Automagik Hive?
Automagik Hive is a production-ready multi-agent orchestration platform that transforms weeks of infrastructure setup into a single command. Built on Agno's blazing-fast core (3ฮผs agent instantiation), Hive is the difference between building a house from scratch and moving into one that's already furnished.
๐ญ The Problem We Solve
The Reality of AI Development:
Week 1: Setup PostgreSQL + pgvector
Week 2: Configure authentication
Week 3: Build RAG system
Week 4: Implement agent coordination
Week 5: Add hot reload
Week 6: Write deployment scripts
Result: Still not production-ready ๐ฐ
With Automagik Hive:
curl -sSL https://raw.githubusercontent.com/namastexlabs/automagik-hive/main/install.sh | bash
automagik-hive dev
# 5 minutes later: Production-ready AI agents running โจ
โจ What Makes Hive Different
Other Frameworks Make You Choose:
- โ Simple YAML configs OR production-ready systems
- โ Fast prototyping OR enterprise features
- โ Easy setup OR powerful capabilities
Hive Gives You Everything:
- โ YAML-First Configuration - No complex code needed
- โ Production-Ready Out of the Box - Database, auth, monitoring included
- โ True Multi-Agent Coordination - Not just chained tool calls
- โ One-Click Install - Complete environment in minutes
- โ Hot Reload - Changes apply without restarting
- โ Built on Agno - 3ฮผs agent instantiation, 6.5KB memory per agent
๐ Key Features
๐ One-Click Production Environment
Complete stack ready in minutes: PostgreSQL + pgvector, authentication, logging, metrics, and deployment scripts. No weeks of DevOps work.
๐ YAML-First Agent Design
agent:
name: "Customer Support"
model: "gpt-4"
instructions: |
You help customers with billing and account issues.
knowledge_filter:
business_unit_filter: "customer_support"
Create sophisticated agents without touching Python. Extend with code only when needed.
๐ Hot Reload Everything
Change configurations, update knowledge bases, modify agents - all without restarting. Deploy updates with zero downtime.
๐ง Built-in RAG System
CSV-based knowledge with pgvector, automatic vectorization, business unit filtering, and Portuguese optimization. Drop a CSV file, get intelligent retrieval.
โก Powered by Agno's Speed
- 3 microseconds agent instantiation (spawn 1000s instantly)
- 6.5KB memory per agent (entire teams on minimal infrastructure)
- True coordination - Shared context and memory, not tool calling
๐ค Three-Layer Intelligence
๐ง GENIE TEAM โ Strategic coordination
โ
๐ฏ DOMAIN ORCHESTRATORS โ genie-dev, genie-testing, genie-quality
โ
๐ค EXECUTION AGENTS โ Specialized workers with 30-run memory
๐ Model Context Protocol (MCP)
Native integration with external services: WhatsApp, databases, APIs, and tools. Extend agents beyond their boundaries.
๐ Enterprise Features Included
- PostgreSQL with auto-schema migration
- API key authentication
- Structured logging with emoji enrichment
- Metrics and monitoring
- Docker deployment ready
- Multi-tenancy support
๐ญ How It Works
From YAML to Running Agent in 30 Seconds
# ai/agents/support-agent/config.yaml
agent:
name: "Customer Support"
agent_id: "support-agent"
version: "1.0.0"
model:
provider: "anthropic"
id: "claude-sonnet-4"
instructions: |
You are a friendly customer support agent.
Help users with billing questions using the knowledge base.
knowledge_filter:
business_unit_filter: "customer_support"
storage:
table_name: "support_sessions"
# Start the system
automagik-hive dev
# Your agent is live at:
# http://localhost:8886/agents/support-agent/run
Extend with Python When Needed
# ai/agents/support-agent/agent.py
from agno.agent import Agent
def get_support_agent(**kwargs) -> Agent:
config = yaml.safe_load(open("config.yaml"))
agent = Agent.from_yaml("config.yaml")
# Add custom tools when needed
agent.add_tool(check_billing_system)
agent.add_tool(create_support_ticket)
return agent
The Power: Start with YAML, extend with Python. No rewrites, no migrations, no platform lock-in.
๐ Built by Practitioners
We created Automagik Hive at Namastex Labs after building multi-agent systems for clients from startups to Fortune 500. We were tired of:
- ๐ Rewriting boilerplate for every project
- ๐ซ "Multi-agent" tools that were just chained agents with flaky tool calling
- โ ๏ธ Prototypes requiring complete rewrites for production
In Production: Powering hundreds of agents for real businesses Battle-Tested: From startup MVPs to enterprise-scale deployments Continuously Improved: We use this daily, so we keep it working
๐ฏ Who Uses Hive?
๐จโ๐ป Individual Developers
Tired of: Writing 1000 lines of boilerplate for simple agents With Hive: YAML config โ Working agent in 5 minutes Result: Ship AI features 10x faster
๐ข Product Teams
Tired of: Waiting weeks for dev resources to prototype With Hive: Configure โ Test โ Iterate immediately Result: Validate ideas before writing code
๐ Enterprises
Tired of: Prototypes that can't scale to production With Hive: Same YAML from prototype to millions of requests Result: Innovation at startup speed, enterprise reliability
๐ ๏ธ CTOs & Tech Leads
Tired of: Months of infrastructure work before value delivery With Hive: Complete stack included, focus on business logic Result: 95% faster time-to-production
๐ฆ Quick Start
Prerequisites
- Python 3.12+
- One AI provider key (Anthropic, OpenAI, Google, etc.)
- Docker is OPTIONAL (only required for PostgreSQL backend)
Note: Automagik Hive now uses PGlite as the default database backend, eliminating Docker as a requirement. See Database Backend Selection for details.
One-Line Installation
# Install with PGlite (default - no Docker required)
curl -sSL https://raw.githubusercontent.com/namastexlabs/automagik-hive/main/install.sh | bash
# Start development server
automagik-hive dev
# Open http://localhost:8886 ๐
Backend Selection: PGlite is the recommended default. See Database Backend Selection for SQLite and PostgreSQL options.
Manual Installation
# Clone repository
git clone https://github.com/namastexlabs/automagik-hive.git
cd automagik-hive
# Install with PGlite backend (recommended - no Docker)
make install-pglite
# Or install with SQLite backend (alternative - no Docker)
make install-sqlite
# Or install with PostgreSQL backend (requires Docker)
make install-postgres
# Start development server
make dev
Backend Options:
make install-pglite- PGlite backend (default, no Docker required)make install-sqlite- SQLite backend (minimal dependencies)make install-postgres- PostgreSQL backend (requires Docker)
See Database Backend Selection for detailed comparison.
Create Your First Agent
# Copy template
cp -r ai/agents/template-agent ai/agents/my-agent
# Edit config
nano ai/agents/my-agent/config.yaml
# Restart server (or wait for hot reload)
# Your agent is now live!
๐๏ธ Database Backend Selection
Automagik Hive supports three database backends to match your deployment needs:
PGlite (Default - Recommended)
WebAssembly-based PostgreSQL - Full PostgreSQL compatibility without Docker.
Best For:
- Development and prototyping
- Small-to-medium deployments
- Browser-compatible applications
- Quick setup and iteration
Advantages:
- โ No Docker required
- โ Fast installation (<1 minute)
- โ Full PostgreSQL feature set
- โ Browser-compatible engine
- โ Simple file-based storage
Installation:
make install-pglite
# or
automagik-hive install --backend pglite
Configuration:
HIVE_DATABASE_BACKEND=pglite
HIVE_DATABASE_URL=pglite://./data/automagik_hive.db
SQLite (Development/Testing Only)
โ ๏ธ CRITICAL LIMITATION: SQLite CANNOT persist agent sessions or user memory. Agents will forget user context between requests. Use PGlite instead for development with full agent memory support.
Simple file-based database - Use ONLY for stateless testing or CI/CD pipelines.
Best For:
- CI/CD integration tests (stateless agents)
- Quick prototyping (no memory requirements)
- Minimal dependency environments
What Works:
- โ Database CRUD operations
- โ Stateless agent responses
- โ Tool execution
- โ API endpoints
What DOESN'T Work (Critical):
- โ Agent memory - Users forgotten between requests
- โ Session persistence - No conversation history
- โ Multi-turn conversations - No context retention
- โ PgVector embeddings - No vector search
Additional Limitations:
- โ Limited concurrent write support
- โ No advanced PostgreSQL features
โ ๏ธ NOT RECOMMENDED: Use PGlite for development instead.
Installation:
make install-sqlite
# or
automagik-hive install --backend sqlite
Configuration:
HIVE_DATABASE_BACKEND=sqlite
HIVE_DATABASE_URL=sqlite:///./data/automagik_hive.db
PostgreSQL (Optional)
Production-grade database - Full PostgreSQL with Docker orchestration.
Best For:
- Production deployments
- High concurrency workloads
- Large-scale knowledge bases
- Advanced vector search
Advantages:
- โ Production-grade reliability
- โ Best concurrent performance
- โ Advanced indexing (HNSW)
- โ Full pgvector optimization
Requirements:
- Docker 20.10+
- Docker Compose 2.0+
Installation:
make install-postgres
# or
automagik-hive install --backend postgresql
Configuration:
HIVE_DATABASE_BACKEND=postgresql
HIVE_DATABASE_URL=postgresql+psycopg://user:password@localhost:5532/hive
Backend Comparison
| Feature | PGlite | SQLite | PostgreSQL |
|---|---|---|---|
| Agent Memory/Sessions | โ Full Support | โ NOT SUPPORTED | โ Full Support |
| Docker Required | โ No | โ No | โ Yes |
| Setup Time | <1 min | <1 min | 2-3 min |
| Concurrent Writes | โ Good | โ ๏ธ Limited | โ Excellent |
| Vector Search | โ Good | โ None | โ Excellent |
| Production Ready | โ Yes* | โ No | โ Yes |
| Browser Compatible | โ Yes | โ No | โ No |
| Memory Footprint | ~50MB | ~10MB | ~100MB |
| Recommended For | Development & Production | CI/CD Testing Only | Large Production |
* PGlite is production-ready for small-to-medium deployments
Switching Backends
You can switch backends at any time:
# Update .env file
HIVE_DATABASE_BACKEND=pglite # or sqlite, postgresql
HIVE_DATABASE_URL=<backend-specific-url>
# Restart application
make dev
Schema migrations run automatically. Session history and runtime data will reset.
For detailed migration instructions, see: PGlite Migration Guide
๐ง Architecture That Scales
Project Structure
your-project/
โโโ ai/
โ โโโ agents/ # Your AI agents
โ โ โโโ my-agent/
โ โ โโโ config.yaml # Agent configuration
โ โ โโโ agent.py # Optional Python extensions
โ โโโ teams/ # Multi-agent teams
โ โ โโโ support-team/
โ โ โโโ config.yaml # Routing logic
โ โโโ workflows/ # Business workflows
โ โโโ order-process/
โ โโโ config.yaml # Step definitions
โโโ knowledge/ # RAG knowledge base
โ โโโ knowledge_rag.csv # Your knowledge data
โโโ .env # Configuration
API Endpoints (Auto-Generated)
Every agent, team, and workflow automatically gets REST endpoints following Agno v2 semantics:
# Health and system
GET /api/v1/health
GET /api/v1/mcp/status
GET /api/v1/mcp/servers
# Versioning (components and versions)
GET /api/v1/version/components
POST /api/v1/version/execute
# Workflow execution
POST /v1/workflows/{workflow_id}/run
# Knowledge management
POST /v1/knowledge/upsert
GET /v1/knowledge/search
Agent/team/workflow execution endpoints are auto-generated by Agno's Playground integration and may differ by configuration. See api/CLAUDE.md for details on the unified router and Playground mounting strategy.
๐จ Real-World Examples
Example 1: Customer Support Router
# ai/teams/support-router/config.yaml
team:
name: "Customer Support Router"
team_id: "support-router"
mode: "route" # Automatic intelligent routing
members:
- "billing-specialist"
- "technical-support"
- "sales-specialist"
instructions:
- "Route billing questions to billing-specialist"
- "Route technical issues to technical-support"
- "Route sales inquiries to sales-specialist"
Result: 24/7 support, 70% query resolution without human intervention
Example 2: Order Processing Workflow
# ai/workflows/order-fulfillment/config.yaml
workflow:
name: "Order Fulfillment"
steps:
- name: "Validate Order"
agent: "validator"
- name: "Process Payment"
parallel:
- agent: "payment-processor"
- agent: "fraud-checker"
- agent: "inventory-checker"
- name: "Ship Order"
agent: "shipping-coordinator"
- name: "Send Confirmation"
agent: "notifier"
Result: 3x faster processing, automatic fraud detection
Example 3: Knowledge-Powered Agent
# ai/agents/analyst/agent.py
from lib.knowledge import get_knowledge_base
def get_analyst_agent(**kwargs):
# Shared thread-safe knowledge base
knowledge = get_knowledge_base(
num_documents=5,
csv_path="knowledge/company_data.csv"
)
return Agent(
name="Data Analyst",
knowledge=knowledge, # Automatic RAG
instructions="Analyze data and provide insights",
**kwargs
)
Result: Instant access to company knowledge, always up-to-date
๐ก๏ธ Enterprise-Grade Features
Security & Authentication
- API key authentication with cryptographic validation
- User context management and session security
- Message validation and size limits
- Production-hardened defaults
Database & Storage
- PostgreSQL + pgvector for production
- SQLite fallback for development
- Auto-schema migration
- Connection pooling and optimization
Monitoring & Observability
- Structured logging with emoji enrichment
- Metrics collection and export
- Health check endpoints
- Performance tracking
Deployment Options
- Docker-ready with compose files
- Kubernetes examples provided
- Environment-based scaling
- Zero-downtime updates with hot reload
๐ ๏ธ Development
Interested in contributing? Check our comprehensive documentation:
- Setup Guide: See CLAUDE.md for development workflow
- Agent Development: ai/agents/CLAUDE.md
- Testing Guide: tests/CLAUDE.md
- API Documentation: api/CLAUDE.md
Development Workflow
# Install dev dependencies
uv sync
# Run tests
uv run pytest
# Run linting
uv run ruff check --fix
# Run type checking
uv run mypy .
# Start dev server
make dev
# View logs
make logs
๐บ๏ธ Roadmap
Completed โ
- YAML-first agent configuration
- Python extensibility
- Auto-generated REST APIs
- PostgreSQL + pgvector RAG
- Docker deployment
- Hot reload system
- Three-layer orchestration (Genie โ Orchestrators โ Execution)
Next Up ๐
- Visual Workflow Builder - Drag-and-drop interface for workflows
- Agent Marketplace - Community templates and certified agents
- Enhanced GENIE - Natural language agent creation
- Multi-Tenancy - Enterprise isolation and governance
- Cloud Deployment - One-click cloud hosting
Future Vision ๐
- Hive Cloud - Fully managed SaaS offering
- Mobile SDKs - Native iOS and Android support
- AI Marketplace - Buy and sell agents
- Industry Verticals - Pre-built solutions for legal, medical, finance
- Advanced Analytics - Usage patterns and optimization insights
๐ค Contributing
We love contributions! Whether it's bug fixes, new features, or documentation improvements:
- Discuss First: Open an issue before starting work
- Align with Roadmap: Ensure changes fit our vision
- Follow Standards: Match existing code patterns
- Test Thoroughly: Include tests for new features
- Document Well: Update docs with your changes
See CONTRIBUTING.md for detailed guidelines.
๐ Acknowledgments
Built with โค๏ธ by Namastex Labs using:
- Agno - The blazing-fast multi-agent framework
- PostgreSQL + pgvector - Vector database
- FastAPI - Modern Python web framework
- Loguru - Beautiful logging
Special thanks to our early adopters and contributors who helped shape Hive into the production-ready platform it is today.
๐ License
MIT License - see LICENSE file for details.
๐ Links
- GitHub: github.com/namastexlabs/automagik-hive
- Discord: discord.gg/xcW8c7fF3R
- Twitter: @namastexlabs
- DeepWiki Docs: deepwiki.com/namastexlabs/automagik-hive
๐ Stop spending weeks on infrastructure. Start building AI that matters.
From Zero to Production-Ready AI in 5 Minutes
Star us on GitHub โข
Join our Discord
Made with โค๏ธ by Namastex Labs
AI that elevates human potential, not replaces it
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file automagik_hive-0.2.0.tar.gz.
File metadata
- Download URL: automagik_hive-0.2.0.tar.gz
- Upload date:
- Size: 1.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b3f968a47722c06bc19099d6a9660d450743c6ebade173c7c1d9d63087267cb
|
|
| MD5 |
f5fe6e14ab1fbad06af73f5642cbe63c
|
|
| BLAKE2b-256 |
f2f98b55e753e5192cd1959d2dce270ab03c82eaa81ea63589c766d6d9506102
|
Provenance
The following attestation bundles were made for automagik_hive-0.2.0.tar.gz:
Publisher:
publish-pypi.yml on namastexlabs/automagik-hive
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
automagik_hive-0.2.0.tar.gz -
Subject digest:
0b3f968a47722c06bc19099d6a9660d450743c6ebade173c7c1d9d63087267cb - Sigstore transparency entry: 641062177
- Sigstore integration time:
-
Permalink:
namastexlabs/automagik-hive@40f3e18ab18e9dd4f459c5049deda164163a23a9 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/namastexlabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@40f3e18ab18e9dd4f459c5049deda164163a23a9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file automagik_hive-0.2.0-py3-none-any.whl.
File metadata
- Download URL: automagik_hive-0.2.0-py3-none-any.whl
- Upload date:
- Size: 419.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65ff3f4738346605891fedd07d2a48f3ad56d1ec4ac80b2caf19410279f37541
|
|
| MD5 |
8d43e26b92e36f392c607ef3840057c8
|
|
| BLAKE2b-256 |
899db724117ab431a5bacc00e4a27b5f53baa8711370edbfc42d7b288eb316d1
|
Provenance
The following attestation bundles were made for automagik_hive-0.2.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on namastexlabs/automagik-hive
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
automagik_hive-0.2.0-py3-none-any.whl -
Subject digest:
65ff3f4738346605891fedd07d2a48f3ad56d1ec4ac80b2caf19410279f37541 - Sigstore transparency entry: 641062182
- Sigstore integration time:
-
Permalink:
namastexlabs/automagik-hive@40f3e18ab18e9dd4f459c5049deda164163a23a9 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/namastexlabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@40f3e18ab18e9dd4f459c5049deda164163a23a9 -
Trigger Event:
push
-
Statement type: