A self-hosted, local-first AI agent dashboard. Build specialized agents, chat with them in real time, run multi-agent missions, chain them into pipelines, and schedule autonomous work — all on your machine. Run completely offline via Ollama with no account required, or integrate cloud models (Anthropic, OpenAI, Gemini) securely using your own API keys.
Hive is a unified command center for running AI agents locally. Instead of relying on a single monolithic LLM chat window, Hive lets you create a fleet of distinct agents, each with its own designated model, custom system prompt, specific toolsets, and persistent memory.
With Hive, you can:
- Chat seamlessly with any agent (includes real-time streaming, tool use, and file attachments).
- Run Colony Missions: Deploy multi-agent teams seeded from recipes (e.g., PM → Designer → Developer) orchestrated automatically to achieve complex goals.
- Build Pipelines: Chain agents together sequentially or concurrently to process data continuously.
- Schedule Autonomous Work: Use natural language to set up cron jobs for agents to execute routines automatically.
- Manage Tools via MCP: Integrate any external tool or API using the Model Context Protocol (MCP).
- Integrate Webhooks: Trigger agent pipelines from external services.
- Use a Hive-native interface: bee/hive branding, a custom packaged app icon, and honey-accented UI defaults.
Hive prioritizes your privacy and security. By default, API keys are stored locally in a secure SQLite database. For even stronger isolation, Hive integrates optionally with a LiteLLM gateway to keep secret keys completely out of the agent sandbox.
- Create specialized agents with distinct models, prompts, tool groups, and memory.
- Real-time WebSocket streaming chat with markdown support.
- File attachments (text and images).
- Persistent per-agent memory (
MEMORY.md) maintained across sessions. - Export and import agents easily via
.agent.jsonfiles. - Configure per-agent spend budgets (enforced by the optional gateway).
- Launch recipe-seeded crews (e.g., a full software development team: BA → PM → Designer → Developer → QA → DevOps).
- An automated orchestrator plans the steps, delegates tasks via
ask_agent, and verifies completion. - Features a shared blackboard, handoff ledger, and a live log of every tool call and inter-agent message.
- Chain agents where each step's output feeds directly into the next.
- Execute steps sequentially or in parallel.
- Live Server-Sent Events (SSE) streaming with step-by-step progress, timing, and automated retries.
- Schedule agent tasks using standard cron syntax or a natural-language preset picker.
- Track historical runs, including last-output and error logs.
- Trigger agents from inbound webhooks, projecting request context directly into the agent's prompt.
- Built-in Tools:
agent_tools(create/update/ask agents),web_search,memory(save_memory),sandbox(shell, run_python, file I/O, server management), andcolony_tools. - MCP Integration: Connect any external MCP server via stdio or HTTP (e.g., filesystem, git, GitHub, Brave Search, PostgreSQL, Slack).
- Environment variables are safely resolved at runtime.
- Generate local images and speech through Hive's host-side
mediatool group. generate_imageuses the configured local FLUX/Ollama image model and saves PNG artifacts.generate_speechuses the configured local Orpheus/Ollama TTS model, decodes with SNAC, and saves WAV artifacts.- Media backends run outside the sandbox. Agents should call
generate_imageorgenerate_speechdirectly, not install Orpheus, SNAC, FLUX, torch, npm packages, or model files inside sandbox containers.
- Browse, pull, and delete local Ollama models with live progress tracking.
- First-class support for cloud models (Anthropic, OpenAI, Gemini) via the Vercel AI SDK.
- Seamless failover routing when using the LiteLLM gateway capability aliases (
gateway/hive-smart,gateway/hive-coding, etc.).
Hive is organized as a monorepo:
client/: React 19, Vite, Tailwind CSS, and Zustand frontend.server/: Node.js, Express 5 backend with WebSocket (ws), Server-Sent Events, andbetter-sqlite3.desktop/: Electron wrapper for a native application experience.gateway/: Dockerized LiteLLM + Postgres stack for advanced routing, caching, and spend management.scripts/: Utilities for detached launching and validation.
- Local-First Secrets:
~/.hivepermissions are strictly0700and the databasehive.dbis0600. Secrets are masked in the UI. - Sandbox Hardening: Agent sandboxes run in Docker containers with
--cap-drop=ALL,no-new-privileges, CPU/memory caps, and no network access by default. - Authentication: Gated by
HIVE_AUTH_TOKEN. A random token is generated on first boot for UI authentication. - Rate Limiting: Bounded rate limiters on mutating requests and concurrent webhook runs.
For enterprise-grade security, you can isolate API keys completely:
- LiteLLM Gateway: Runs in Docker (bound to
127.0.0.1), holding the real provider keys. Hive connects via a revocableLLM_GATEWAY_KEY. Provides failover and spend limits. - Environment References: Store references (like
env:NAME) in Hive, and inject the real values from your shell, OS secret store, or deployment environment at launch.
- Node.js ≥ 18
- Ollama running locally (
ollama serve) with at least one model pulled (e.g.,ollama pull qwen2.5:7b). - (Optional) Docker for secure agent sandboxing and LiteLLM gateway.
Download the installer from GitHub Releases (macOS .dmg, Linux .AppImage, Windows .exe). The setup wizard handles model connection and starter agent creation automatically.
(Note for macOS: if Gatekeeper blocks the app, run xattr -dr com.apple.quarantine /Applications/Hive.app)
Clone the repository and install dependencies:
git clone https://github.com/SantiaGoMode/hive.git
cd hive
npm install
npm install --prefix clientnpm run devAccess the dashboard at http://localhost:5173.
npm run build && npm startAccess the dashboard at http://localhost:3001.
On first boot, Hive will check your environment, help you connect models, and generate a HIVE_AUTH_TOKEN (saved to ~/.hive/auth_token) for login.
All Hive data is stored locally in your home directory under ~/.hive/:
hive.db: SQLite database for configuration, models, and keys.agents/{id}/: Contains per-agentMEMORY.mdand conversation history.shared/SHARED.md: A shared blackboard accessible by all agents.
Key Environment Variables:
PORT: HTTP port (default 3001).HIVE_AUTH_TOKEN: Protects your API and UI.HIVE_SANDBOX_NETWORK: Set tobridgeto allow sandbox containers internet access (default isnone).LLM_GATEWAY_URL/LLM_GATEWAY_KEY: Used if deploying with the LiteLLM gateway.
Media Settings:
media_python: Optional path to the Python interpreter that has SNAC/Torch installed for local speech decoding. This is stored in Hive settings, not bundled into the desktop app.media_tts_model: Ollama model tag for local Orpheus TTS.media_image_model: Ollama model tag for local image generation.
Hive has comprehensive test coverage. To run the suites:
npm test # Run backend tests (uses mock Ollama and in-memory DB)
npm run test:client # Run frontend tests (Vitest + JSDOM)
npm run test:ci # Run all tests, linting, and buildISC License. See the package.json for more details.
