Self-hosted command center for your AI agents
Route conversations to specialized agents, build automated workflows,
evaluate models head-to-head, and monitor everything from one dashboard.
Install · Features · Screenshots · Architecture · Adapters · Contributing
AgentHub is a pure presentation and routing layer. It doesn't run models or handle inference — it connects to agent gateways (Hermes, OpenClaw, OpenAI-compatible APIs, WebSocket endpoints, or any custom adapter) and gives you a unified interface to manage them all.
Everything runs locally. Your data stays in a SQLite database on your machine. No cloud dependency, no telemetry, no vendor lock-in.
npx agenthubOr install globally:
npm install -g agenthub
agenthub --port 3000Download the latest release for your platform from GitHub Releases:
| Platform | Package | Arch |
|---|---|---|
| Windows | Setup Installer (.exe) | x64, arm64 |
| Windows | Portable (.exe) | x64, arm64 |
| macOS | Disk Image (.dmg) | Intel (x64), Apple Silicon (arm64) |
| macOS | ZIP (.zip) | Intel (x64), Apple Silicon (arm64) |
| Linux | AppImage | x64 |
| Linux | Debian/Ubuntu (.deb) | x64 |
| Linux | Fedora/RHEL (.rpm) | x64 |
| Linux | Tarball (.tar.gz) | x64 |
All packages are available on the Releases page. Pick the one that matches your OS and architecture.
yay -S agenthub-bin # prebuilt binary
yay -S agenthub-git # build from sourcedocker compose upOr standalone:
docker run -p 3000:3000 -v agenthub-data:/app/data ghcr.io/albaloola/agenthubLinux / macOS — auto-detects OS and architecture:
curl -fsSL https://raw.githubusercontent.com/Albaloola/AgentHub/main/packaging/install.sh | bashWindows (PowerShell):
irm https://raw.githubusercontent.com/Albaloola/AgentHub/main/packaging/install.ps1 | iexgit clone https://github.com/Albaloola/AgentHub.git
cd AgentHub
npm install
cp .env.example .env.local
npm run devOpen http://localhost:3000. The app seeds itself with a Mock Echo Bot for testing — no external agents required to explore the UI.
|
Mission Control Dashboard Overview of agents, recent activity, and system health at a glance. |
Agent Management Configure agents, adapters, capability weights, and fallback chains. |
|
Visual Workflow Builder Drag-and-drop pipeline builder with agent, condition, delay, and output nodes. |
Arena — Head-to-Head Evaluation Compare agent responses side by side with voting and leaderboard. |
|
Execution Traces Span waterfall visualization with thinking panels, tool calls, and subagent trees. |
Analytics Agent performance tables, token distribution, and status overview. |
|
Knowledge Bases Upload documents (TXT, MD, PDF, JSON, CSV), automatic chunking, RAG management. |
Prompt Playground Split-pane editor with streaming responses and version history. |
|
Personas Library 9 specialized personas across engineering, security, creative, and more. |
Settings & Themes 6 theme presets, accent colors, density settings, custom CSS. |
- Streaming chat with SSE, markdown rendering, syntax highlighting, and copy buttons
- Group chat with discussion, parallel, or targeted response modes
- Message editing, regeneration, threading, pinning, and voting
- File attachments with drag-and-drop upload
- Slash commands per gateway, behavior modes per conversation
- Agent handoff protocol for seamless agent-to-agent transfers
- Artifacts panel — auto-detects HTML/SVG/JSX and renders in a sandboxed iframe
- 5 adapter protocols: Hermes, OpenClaw, OpenAI-compatible, WebSocket, Mock
- Capability weights for intelligent content-based routing
- Fallback chains, adaptive timeouts, health checks with latency tracking
- Agent versioning with canary traffic splitting
- Fleet dashboard with health scores, sparkline latency, anomaly timeline
- Trace viewer with span waterfall (routing → adapter → tool call → response)
- Extended thinking panel showing agent reasoning chains
- Subagent tree visualization and tool call inspection
- Anomaly detection with severity levels and alerting
- Knowledge bases with document upload, automatic chunking, and RAG
- Shared memory — cross-agent store with categories, confidence, and expiry
- Conversation checkpoints for save/revert/fork with timeline
- Context compaction and intelligent pruning
- Webhooks with configurable triggers, rate limiting, and event logs
- Scheduled tasks with cron expressions and manual triggers
- External API with key management and programmatic agent messaging
- Integrations for GitHub, GitLab, Jira, Slack, Discord, Telegram, Email
- A2A Protocol support for cross-platform agent discovery
- Guardrails — content filter, PII detection, injection detection, regex rules
- Runtime policies — action filters, data access controls, rate limits
- Audit log with immutable records
- RBAC with admin, operator, and viewer roles
- Arena for head-to-head comparison with voting and leaderboard
- Prompt playground with version history and environment labels
- Response caching with content hashing and TTL
- Theme engine with 6 presets (Arctic, Daylight, Emerald, Midnight, Obsidian, Paper)
- Command palette (Ctrl+K), keyboard shortcuts with chord navigation
- Chat tabs, conversation folders, global search
- Notification center, onboarding wizard
- Visual workflow builder with drag-and-drop canvas
- Dark theme with animated backgrounds, fully responsive
External Events (GitHub, Jira, Webhooks, Cron, API calls)
│
▼
┌───────────────────────────────┐
│ AgentHub Control Plane │
│ │
│ Routing │ Guardrails │
│ Tracing │ Knowledge │
│ Memory │ Scheduling │
│ Cost │ Policies │
└───────────────────────────────┘
│ │ │
▼ ▼ ▼
┌──────┐ ┌──────┐ ┌──────┐
│Hermes│ │OpenCl│ │Custom│ ...
└──────┘ └──────┘ └──────┘
│ │ │
▼ ▼ ▼
(Independent gateways running
their own models and inference)
| Layer | Technology |
|---|---|
| Framework | Next.js 16 (App Router) + TypeScript (strict) |
| Desktop | Electron 35 |
| Styling | Tailwind CSS 4 + shadcn/ui (base-ui primitives) |
| State | Zustand |
| Database | SQLite via better-sqlite3 (WAL mode) |
| Streaming | Server-Sent Events (SSE) |
| Markdown | react-markdown + remark-gfm + react-syntax-highlighter |
| Icons | Lucide React |
| Animations | Framer Motion |
52 tables organized by feature domain:
| Domain | Tables |
|---|---|
| Core | agents, conversations, messages, tool_calls, attachments, subagents, tags, settings |
| Templates | templates, template_agents, workflows, workflow_runs |
| Chat | checkpoints, whiteboards, response_votes, message_threads, conversation_folders |
| Knowledge | knowledge_bases, documents, document_chunks, shared_memory, personas |
| Automation | webhooks, webhook_events, scheduled_tasks, api_keys, integrations |
| Analytics | performance_snapshots, traces, routing_log, arena_rounds, topic_clusters, feedback_insights, anomaly_events |
| Governance | guardrail_rules, policy_rules, notifications, audit_log, a2a_agent_cards, agent_versions |
| Users | users, conversation_permissions, theme_preferences, onboarding_state |
AgentHub connects to agents through adapters. To add a new one:
- Create a file in
src/lib/adapters/ - Implement the
GatewayAdapterinterface:
interface GatewayAdapter {
sendMessage(msg: AgentMessage): AsyncGenerator<AgentResponseChunk>;
healthCheck(): Promise<{ healthy: boolean; latency: number }>;
}- Register it in
src/lib/adapters/index.ts
See docs/ADDING_AN_ADAPTER.md for a detailed guide.
| Variable | Default | Description |
|---|---|---|
DATABASE_PATH |
./data/agenthub.db |
SQLite database file location |
PORT |
3000 |
Server port |
AGENTHUB_DATA_DIR |
./data |
Data directory for uploads and logs |
Contributions are welcome. Here's how to get started:
git clone https://github.com/0x4F6D6172/agenthub.git
cd agenthub
npm install
npm run devBefore submitting a PR:
npm run lint— zero errors, zero warningsnpm run build— clean production build- Test your changes against the Mock Echo Bot
| Metric | Count |
|---|---|
| Dashboard Pages | 27 |
| API Routes | 86 |
| Components | 58 |
| Database Tables | 52 |
| Source Files | 196 |
Apache License 2.0









