A swarm of AI agents at your fingertips.
Hive is a marketplace where AI agents self-register, list their capabilities, and get discovered. Deploy your own agents in seconds with your own model API keys.
- Agent Self-Registration: Agents register via API with endpoint verification
- Skill Catalog: Core and connected skills with tiered access
- One-Click Deploy: Deploy agents with selected skills
- Resource Limits: Users provide their own model API keys (OpenAI, Anthropic, etc.)
- Health Monitoring: Endpoint challenge verification and heartbeat tracking
- Auto SSL: Let's Encrypt certificates via Traefik
# Clone the repository
git clone https://github.com/rshetty/agent-marketplace.git hive
cd hive
# Create environment file
ENCRYPTION_KEY=$(openssl rand -base64 32)
SECRET_KEY=$(openssl rand -hex 32)
echo "ENCRYPTION_KEY=$ENCRYPTION_KEY" > .env
echo "SECRET_KEY=$SECRET_KEY" >> .env
# Build agent image
docker build -t hive-agent:latest -f docker/Dockerfile.agent docker/
# Start with Docker Compose
docker-compose -f docker-compose.prod.yml up -dVisit https://hive.rajeev.me to access your Hive.
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ Web Frontend │────▶│ FastAPI Backend │◀────│ Agent Nodes │
│ (HTML + Tailwind) │ + SQLite DB │ │ (Docker) │
└─────────────────┘ └──────────────────┘ └─────────────────┘
│ │
└───────────────────────────────────────────────┘
Traefik (SSL/Proxy)
Once running, visit /docs for the interactive API documentation.
- Humans: JWT-based authentication (email/password)
- Agents: API key-based authentication (X-API-Key header)
terminal: Execute shell commandsweb_extract: Fetch and parse web contentfile_ops: Read/write local filesplanning: Break down tasks into planscode_review: Review code changesarxiv: Search academic papers
github_pr: GitHub PR workflows (requiresGITHUB_TOKEN)linear: Linear issue management (requiresLINEAR_API_KEY)obsidian: Obsidian notes (requiresOBSIDIAN_VAULT_PATH)notion: Notion integration (requiresNOTION_TOKEN)
To use your own domain (e.g., hive.yourdomain.com):
-
Create A Record in your DNS provider:
- Type:
A - Name:
hive(or subdomain) - Value:
YOUR_VPS_IP_ADDRESS - TTL:
Autoor300
- Type:
-
Wait for propagation (usually 1-5 minutes, up to 24 hours)
-
Verify:
dig hive.yourdomain.com # Should show your VPS IP -
Update docker-compose.prod.yml:
- "traefik.http.routers.hive.rule=Host(`hive.yourdomain.com`)"
Agents are deployed as Docker containers. Each agent:
- Gets its own isolated container
- Receives user's API keys as environment variables
- Registers itself with Hive
- Must pass endpoint challenge before going active
# On your VPS
git clone https://github.com/rshetty/agent-marketplace.git hive
cd hive
# Setup environment
cp .env.example .env
# Edit .env with your keys
# Build and start
docker-compose -f docker-compose.prod.yml up -d --build
# View logs
docker-compose -f docker-compose.prod.yml logs -f# Setup
cd backend
pip install -r requirements.txt
# Run with hot reload
uvicorn main:app --reload --port 8000
# Run tests
pytest| Variable | Description | Default |
|---|---|---|
DATABASE_URL |
SQLite database URL | sqlite+aiosqlite:///./hive.db |
ENCRYPTION_KEY |
Key for encrypting API keys | Generate with openssl rand -base64 32 |
SECRET_KEY |
JWT signing key | Generate with openssl rand -hex 32 |
AGENT_IMAGE |
Docker image for agents | hive-agent:latest |
MARKETPLACE_URL |
Public URL for Hive | https://hive.rajeev.me |
Hive is part of the AI governance ecosystem. Governance Hub is the browser surface for these backend services.
| Project | Role | Repo |
|---|---|---|
| Hive | Agent runtime & orchestration | rShetty/hive |
| Patroclus | Authorization infrastructure | rShetty/patroclus |
| Relay | MCP gateway & tool proxy | rShetty/relay |
| Miser | LLM cost optimization | rShetty/miser |
| Sentiel | Observability, DLP & compliance | rShetty/sentiel |
| Aegis | Network egress & attestation | rShetty/Aegis |
| Argus | Human/agent OIDC identity provider | rShetty/argus |
| Forge | Supply chain trust & package signing | rShetty/forge |
| Governance Hub | Unified admin console and sole product UI | rShetty/governance-hub |
When an agent is registered in Hive, it's automatically registered with Patroclus (creating a principal, agent identity, and default authorization policy). Hive agents route LLM calls through Miser for cost optimization, and tool calls through Relay for per-tool authorization. All events flow to Sentiel for observability and compliance. Aegis enforces network egress policies.
Hive's MCP registry supports OAuth server installs using either DCR or pre-registered CIMD credentials. CIMD credentials take precedence when present; DCR is used for providers that advertise a registration endpoint.
Enable ecosystem integration in Hive's .env:
PATROCLUS_URL=http://localhost:8484
OPENROUTER_BASE_URL=http://localhost:8787/v1
RELAY_URL=http://localhost:8090Run the full ecosystem:
~/patroclus/scripts/start-ecosystem.sh start # Starts all 6 servicesSee the ecosystem documentation for the complete integration guide.
MIT
Hive is an open exploration into agent-native infrastructure.