hive Documentation

Multi-Agent Harness for Production AI

RAW Doc

Docker & Self-Hosted Deployment Verified OCI

Deploy hive on any server, homelab, or cloud container platform.

Chapter: getting-started (docs/getting-started.md)

Getting Started

This guide will help you set up the Hive and build your first agent.

Prerequisites

  • Python 3.11+ (Download) - Python 3.12 or 3.13 recommended
  • pip - Package installer for Python (comes with Python)
  • git - Version control
  • Claude Code (Install) - Optional, for using building skills

Quick Start

The fastest way to get started:

Linux / macOS:

bash
# 1. Clone the repository
git clone https://github.com/aden-hive/hive.git
cd hive

# 2. Run automated setup
./quickstart.sh

# 3. Verify installation (optional, quickstart.sh already verifies)
uv run python -c "import framework; import aden_tools; print('โœ“ Setup complete')"

Windows (PowerShell):

powershell
# 1. Clone the repository
git clone https://github.com/aden-hive/hive.git
cd hive

# 2. Run automated setup
.\quickstart.ps1

# 3. Verify installation (optional, quickstart.ps1 already verifies)
uv run python -c "import framework; import aden_tools; print('Setup complete')"

Note: On Windows, running .\quickstart.ps1 requires PowerShell 5.1+. If you see a "running scripts is disabled" error, run Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass first. Alternatively, use WSL โ€” see environment-setup.md for details.

Building Your First Agent

Agents are not included by default in a fresh clone.

Agents are created using Claude Code or by manual creation in the
exports/ directory. Until an agent exists, agent validation and run
commands will fail.

This is the recommended way to create your first agent.

Requirements

  • Anthropic (Claude) API access
  • Claude Code CLI installed
  • Unix-based shell (macOS, Linux, or Windows via WSL)
bash
# Setup already done via quickstart.sh above

# Start Claude Code and build an agent
Use the files-tools initialize_and_build_agent tool

Follow the interactive prompts to:

  1. Define your agent's goal
  2. Design the workflow (nodes and edges)
  3. Generate the agent package
  4. Test the agent

Option 2: Create Agent Manually

Note: The exports/ directory is where your agents are created. It is not included in the repository (gitignored) because agents are user-generated via Claude Code skills or created manually.

bash
# Create exports directory if it doesn't exist
mkdir -p exports/my_agent

# Create your agent structure
cd exports/my_agent
# Create agent.json, tools.py, README.md (see developer-guide.md for structure)

# Validate the agent
PYTHONPATH=exports uv run python -m my_agent validate

Option 3: Manual Code-First (Minimal Example)

If you prefer to start with code rather than CLI wizards, check out the manual agent example:

bash
# View the minimal example
cat core/examples/manual_agent.py

# Run it (no API keys required)
uv run python core/examples/manual_agent.py

This demonstrates the core runtime loop using pure Python functions, skipping the complexity of LLM setup and file-based configuration.

Project Structure

text
hive/
โ”œโ”€โ”€ core/                   # Core Framework
โ”‚   โ”œโ”€โ”€ framework/          # Agent runtime, graph executor
โ”‚   โ”‚   โ”œโ”€โ”€ builder/        # Agent builder utilities
โ”‚   โ”‚   โ”œโ”€โ”€ credentials/    # Credential management
โ”‚   โ”‚   โ”œโ”€โ”€ graph/          # GraphExecutor - executes node graphs
โ”‚   โ”‚   โ”œโ”€โ”€ llm/            # LLM provider integrations
โ”‚   โ”‚   โ”œโ”€โ”€ mcp/            # MCP server integration
โ”‚   โ”‚   โ”œโ”€โ”€ runner/         # AgentRunner - loads and runs agents
โ”‚   โ”‚   โ”œโ”€โ”€ runtime/        # Runtime environment
โ”‚   โ”‚   โ”œโ”€โ”€ schemas/        # Data schemas
โ”‚   โ”‚   โ”œโ”€โ”€ storage/        # File-based persistence
โ”‚   โ”‚   โ”œโ”€โ”€ testing/        # Testing utilities
โ”‚   โ”‚   โ””โ”€โ”€ tui/            # Terminal UI dashboard
โ”‚   โ””โ”€โ”€ pyproject.toml      # Package metadata
โ”‚
โ”œโ”€โ”€ tools/                  # MCP Tools Package
โ”‚   โ”œโ”€โ”€ mcp_server.py       # MCP server entry point
โ”‚   โ””โ”€โ”€ src/aden_tools/     # Tools for agent capabilities
โ”‚       โ””โ”€โ”€ tools/          # Individual tool implementations
โ”‚           โ”œโ”€โ”€ web_search_tool/
โ”‚           โ”œโ”€โ”€ web_scrape_tool/
โ”‚           โ””โ”€โ”€ file_system_toolkits/
โ”‚
โ”œโ”€โ”€ exports/                # Agent Packages (user-generated, not in repo)
โ”‚   โ””โ”€โ”€ your_agent/         # Your agents created via files-tools workflow
โ”‚
โ”œโ”€โ”€ examples/
โ”‚   โ””โ”€โ”€ templates/          # Pre-built template agents
โ”‚
โ””โ”€โ”€ docs/                   # Documentation

Running an Agent

bash
# Launch the web dashboard in your browser
hive open

# Run a specific agent
hive run exports/my_agent --input '{"task": "Your input here"}'

API Keys Setup

For running agents with real LLMs:

bash
# Add to your shell profile (~/.bashrc, ~/.zshrc, etc.)
export ANTHROPIC_API_KEY="your-key-here"
export OPENAI_API_KEY="your-key-here"        # Optional
export OPENROUTER_API_KEY="your-key-here"    # Optional, for OpenRouter models
export HIVE_API_KEY="your-key-here"          # Optional, for Hive LLM
export BRAVE_SEARCH_API_KEY="your-key-here"  # Optional, for web search

Get your API keys:

Quickstart can configure OpenRouter and Hive LLM for you interactively. See configuration.md for the full configuration examples.

Testing Your Agent

bash
# Run tests
PYTHONPATH=exports uv run python -m my_agent test

# Run with specific test type
PYTHONPATH=exports uv run python -m my_agent test --type constraint
PYTHONPATH=exports uv run python -m my_agent test --type success

Next Steps

  1. Dashboard: Run hive open to launch the web dashboard
  2. Detailed Setup: See environment-setup.md
  3. Developer Guide: See developer-guide.md
  4. Build Agents: Use the files-tools initialize_and_build_agent tool in Claude Code
  5. Custom Tools: Learn to integrate MCP servers
  6. Join Community: Discord

Troubleshooting

ModuleNotFoundError: No module named 'framework'

bash
# Reinstall framework package
cd core
uv pip install -e .

ModuleNotFoundError: No module named 'aden_tools'

bash
# Reinstall tools package
cd tools
uv pip install -e .

LLM API Errors

bash
# Verify API key is set
echo $ANTHROPIC_API_KEY
echo $OPENROUTER_API_KEY
echo $HIVE_API_KEY

Package Installation Issues

bash
# Remove and reinstall
pip uninstall -y framework tools
./quickstart.sh

Getting Help