项目介绍
Agent 智能体 · 2026-11-09 更新 · 本站尚未实测
Hivekeep 是一个自托管的多智能体平台:它以单个容器、单个 SQLite 文件和单个 Bun 进程运行,提供持久身份与长期记忆的 Agent,让多个 Agent 在同一实例中协作、委派子任务、按计划执行工作,并通过网页 PWA 与多个即时通讯频道与用户交互。README 将其定位为“消费级助手的易用性,自有服务器的数据主权”,并声明仓库代码采用 MIT 许可证。
项目内置一名配置型 Agent「Queenie」,安装后通过对话完成模型提供商接入、密钥保管与首批 Agent 创建。项目由个人开发者主导,README 说明大量使用 AI 编码助手,并自评成熟度约 80%,已对个人与小团队使用具备基础,细节以官方路线图为准。
核心能力
点击能力名称查看输入、输出和原文依据。
- 持久记忆与连续会话:每个 Agent 拥有持久身份与一个不重置的连续会话;长期记忆采用 sqlite-vec 向量检索与 FTS5 关键词检索融合,并提供
recall、memorize、update_memory、forget等显式工具。压缩摘要不会删除原始消息,可按search_history回溯。 - 多 Agent 协作:支持
request/reply消息、子 Agent(await/async,最大深度 3)、联系人注册表与频道实时转交(transfer_channel)。 - 自扩展:Agent 可用 Python、Node、Bun、TypeScript、Bash、Deno 编写自定义工具并附带 React 渲染器;可构建运行在沙箱 iframe 中的 Mini Apps;插件基于 npm 与类型化 TypeScript SDK,并带内置市场与 Git 安装。
- 多频道接入:原生支持 Telegram、Discord、Slack、WhatsApp、Signal、Matrix,另有可安装 PWA;README 说明 WhatsApp 可使用 Meta Cloud API 或个人号扫码配对。
- 安全与成本透明:README 称 AES-256-GCM 加密保险库不向模型暴露密钥(本站未做安全审计);提供 Context Viewer、缓存命中率与按 Agent/模型/天的 token 用量视图。
- 自动化:支持 cron、Webhook、人工确认、只读 Scout 委派、唤醒与任务队列。
实际应用场景
适用场景
适合希望把个人或小团队 AI 助手放在自有服务器上的用户:统一收件箱式的多渠道助手、家庭助理、个人知识库、多角色协作团队(如运维、研发、研究、邮件日历助理)。README 给出 Atlas、Forge、Sentinel、Prism、Nest 等示例角色,但除 Queenie 外均需用户自行创建。若只是想要一个通用聊天客户端,本项目并非其定位。
安装与接入
README 推荐原生安装,并给出以下命令:
curl -fsSL https://raw.githubusercontent.com/MarlBurroW/hivekeep/main/install.sh | bash
脚本会在需要时安装 Bun、克隆仓库、构建前端、执行迁移、创建系统服务(systemd 或 launchd),并在 3000 端口启动。README 也提供 Docker 方式:
docker run -d \
--name hivekeep \
-p 3000:3000 \
-v hivekeep-data:/app/data \
ghcr.io/marlburrow/hivekeep:latest
README 提示若镜像拉取失败(如 manifest unknown 或 403),说明镜像可能尚未公开,应改用原生安装或从源码构建。安装完成后访问 http://localhost:3000,按三屏引导并由 Queenie 通过对话配置。对外暴露或反向代理时,README 提到使用 HOST=0.0.0.0 与 PUBLIC_URL 环境变量,具体以官方配置文档为准。
使用条件与限制
- 是否需要部署
- 需自行准备运行环境,具体要求见正文
- 是否需要注册
- 账号和认证要求见正文;未明确说明的项目仍待核验
- 是否需要 API Key
- 待核验
- 费用与额度
- 费用边界见正文,项目许可不代表模型或托管服务免费
- 所需权限
- 待核验
- 许可证与服务条款
- 待核验
权限费用与限制
- 模型与费用:Hivekeep 本身不运行模型,需自备模型提供商的 API Key 或本地 OpenAI 兼容端点;推理费用由提供商或本地推理服务器承担,具体价格待向对应官方核验。README 明确列出 Anthropic、OpenAI、Google Gemini、OpenRouter、Kilo Gateway、Ollama Cloud、xAI、DeepSeek、MiniMax、Kimi(Moonshot)以及通用 OpenAI 兼容连接器;语音、搜索、图像另有若干提供商。
- 硬件:README 给出最低约 1 核 CPU、512 MB 内存、约 1 GB 磁盘,无 GPU 要求;本地模型场景的硬件取决于推理服务器。
- 密钥与数据:首次启动会生成并保存
data/.encryption-key,若自行设置ENCRYPTION_KEY则每次重启必须保持一致;README 强调务必备份该密钥或data/目录,否则无法解密保险库。 - 权限边界:平台提供多用户隔离、管理员/成员角色与插件权限控制;但频道接入、OAuth 账号连接、Webhook、shell 工具等能力涉及敏感权限,需按官方文档逐项确认。
- 成熟度:README 自述约 80% 成熟度,存在已知粗糙处,建议先在隔离环境验证再承载重要数据。
国内使用情况
网友核验 用户经验分享
与站长实测独立,不代表官方认证或本站已实测。
最近核验:暂无有效核验。参与人数按当前项目有效身份去重;不同核验项分别统计,不合并成用户总结果。仅统计审核通过且未过期的记录。
分项统计、有效期与样本量
| 核验项目 | 有效人数 | 成功 / 部分 / 失败 / 无法判断 | 成功率 | 最近核验 / 有效期 |
|---|---|---|---|---|
| 官方网站访问 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 7 天 |
| GitHub 仓库访问 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 7 天 |
| 安装与运行 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 官方服务国内连接 / MCP 连接 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 国内网络情况 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 7 天 |
| 国内模型兼容性 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 自定义 API | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 海外服务依赖 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 海外账号要求 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 中文界面 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 客户端兼容性 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 账号及费用信息 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
成功率 = 成功 ÷(成功 + 部分成功 + 失败);无法判断不计入分母。至少 5 份可判断结果才显示成功率。账号、费用、海外依赖与语言等事实项,成功表示核查结论与资料吻合,具体观察另行统计;不表示免费或没有海外依赖。不同网络、客户端和版本的结果不能直接等同。
最近有效核验
暂无审核通过且未过期的网友核验。欢迎提交真实使用记录。
查看全部有效核验 →国内实测状态:国内可用性待核验。协议兼容和官方资料说明不等于国内网络可用。
- 官方网站访问
- 尚未实测 待核验
- GitHub 仓库访问
- 尚未实测 待核验
- 官方服务国内连接
- 尚未实测 待核验
- 国内网络情况
- 尚未实测 待核验
- 国内模型兼容性
- 尚未实测 待核验
- 自定义 API
- 尚未实测 待核验
- 海外服务依赖
- 尚未实测 待核验
- 海外账号要求
- 尚未实测 待核验
- 中文界面
- 尚未实测 待核验
- 国内最后核验时间
- 尚未实测
许可与国内使用
仓库 LICENSE 文件为 MIT 许可证,覆盖仓库代码;插件市场中的第三方包、模型提供商、托管服务与图床等第三方资源各有其自身条款,需分别核验。公开仓库与 MIT 许可不代表模型或云服务免费。README 未说明中国大陆网络下的安装、镜像拉取、频道接入与模型服务可用性,国内访问与合规性均待核验;Docker 镜像托管于 ghcr.io,实际拉取可用性受网络环境影响。
本地保存状态不等于模型请求留在本机;使用远程模型或频道服务时,相应上下文会发送到所配置服务。
项目资料与来源
字段依据与待核验事项
access:来源确认 · curl -fsSL https://raw.githubusercontent.com/MarlBurroW/hivekeep/main/install.sh | bash
project_type:来源确认 · A self-hosted platform of persistent AI agents that remember, collaborate, and answer you everywhere, in a single container.
原始 README(折叠技术参考)
<p align="center"><img src="docs/assets/logo.svg" width="120" alt="Hivekeep" /></p>
<h1 align="center">Hivekeep</h1>
<p align="center">
<strong>Your AI team. At home.</strong><br />
The simplicity of a consumer assistant, the sovereignty of your own server.<br />
A self-hosted platform of persistent AI agents that remember, collaborate, and answer you everywhere, in a single container.
</p>
<p align="center">
<sub>100% open-source (MIT) · self-hosted · zero external infra</sub>
</p>
<p align="center">
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-AE5AF9?style=flat-square" alt="License MIT" /></a>
<a href="https://github.com/MarlBurroW/hivekeep/releases"><img src="https://img.shields.io/github/v/release/MarlBurroW/hivekeep?style=flat-square&color=a855f7" alt="Latest release" /></a>
<a href="https://github.com/MarlBurroW/hivekeep/actions/workflows/ci.yml"><img src="https://github.com/MarlBurroW/hivekeep/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
<a href="https://github.com/MarlBurroW/hivekeep/pkgs/container/hivekeep"><img src="https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white" alt="Docker image" /></a>
<a href="https://github.com/MarlBurroW/hivekeep"><img src="https://img.shields.io/github/stars/MarlBurroW/hivekeep?style=flat-square&color=ec4899" alt="GitHub stars" /></a>
<a href="https://bun.sh"><img src="https://img.shields.io/badge/made%20with-Bun-000000?style=flat-square&logo=bun&logoColor=white" alt="Made with Bun" /></a>
</p>
<p align="center">
<a href="https://marlburrow.github.io/hivekeep/">Website</a> ·
<a href="https://marlburrow.github.io/hivekeep/docs/">Docs</a> ·
<a href="#get-started">Install</a> ·
<a href="#self-improving">Plugins</a>
</p>
<p align="center">
<a href="https://hivekeep.app/#demo">
<img src="docs/assets/demo-video.jpg" alt="Watch the Hivekeep walkthrough, from a blank install to your own AI team in six minutes" width="720" />
</a>
</p>
<p align="center">
<sub><strong>▶ Watch the 6-minute walkthrough</strong>: onboarding, Queenie setting everything up, agents building a mini-app and a custom tool live, and a full tour.</sub>
</p>
---
## The 30-second pitch
Most AI tools treat every conversation as disposable. You explain yourself on Monday, they have forgotten by Tuesday. Hivekeep takes the opposite path: a team of persistent **Agents** that live on your server, keep their memory, and work together. Not a chatbot. A household of specialists that works like a hive.
- **They never forget you.** One continuous session per Agent (no "new conversation"), backed by a hybrid long-term memory that accumulates months of context. No reset, ever.
- **A team, not a chatbot.** Agents collaborate (`request` / `reply`), delegate to ephemeral sub-Agents, and run scheduled work, so several things move at once.
- **Self-improving.** Your Agents build their own tools, mini-apps, and plugins. The platform grows with you instead of staying frozen.
- **Everywhere.** Telegram, WhatsApp, Slack, Discord, Signal, Matrix, plus a polished PWA. An Agent can hand a channel to a specialist in real time.
- **One container.** Zero Postgres, Redis, Mongo, or queue broker. One process, one SQLite file. Run it and Queenie sets up the rest by conversation.
- **Your secrets stay yours.** An AES-256-GCM vault that is never exposed to the LLM, connected accounts that never leave your infrastructure, and token transparency so you stay in control of costs.
---
## A peek inside
<table align="center">
<tr>
<td width="50%" align="center" valign="top">
<img src="docs/assets/screenshots/chat-briefing.webp" alt="An agent answering with its calendar, backup check and reminders, every tool call shown inline" /><br />
<sub><b>One continuous conversation</b><br />Every tool call rendered inline, never a black box.</sub>
</td>
<td width="50%" align="center" valign="top">
<img src="docs/assets/screenshots/secret-popup.webp" alt="An agent requesting a credential through a secure popup that stores it in the vault" /><br />
<sub><b>Agents ask, never see</b><br />Secrets go straight to the encrypted vault. The model never sees the value.</sub>
</td>
</tr>
<tr>
<td width="50%" align="center" valign="top">
<img src="docs/assets/screenshots/miniapp-timer.webp" alt="A focus-timer mini-app an agent built, running in the workspace next to the chat" /><br />
<sub><b>Your agents build apps</b><br />Real mini-apps, hosted right inside Hivekeep.</sub>
</td>
<td width="50%" align="center" valign="top">
<img src="docs/assets/screenshots/files.webp" alt="A file browser and code editor for an agent's workspace" /><br />
<sub><b>A real workspace</b><br />Browse and edit every agent's files, with a proper editor.</sub>
</td>
</tr>
<tr>
<td colspan="2" align="center" valign="top">
<img src="docs/assets/screenshots/token-usage.webp" width="50%" alt="A token-usage dashboard with cost per agent, model and day" /><br />
<sub><b>Every token on record</b><br />Cost per agent, per model, per day. No surprises.</sub>
</td>
</tr>
</table>
<p align="center"><a href="https://hivekeep.app/tour/"><b>Take the full tour →</b></a> · 30+ screenshots from a running hive</p>
---
## They never forget you
Every Agent has a persistent identity (name, role, character, expertise, model, avatar) shared across everyone on your instance, and **one continuous session** that never resets. Underneath sits a dual-channel long-term memory: automatic extraction during compaction, plus explicit tools (`recall`, `memorize`, `update_memory`, `forget`). Recall is hybrid, sqlite-vec KNN fused with FTS5 keyword search via Reciprocal Rank Fusion, then re-ranked by importance, temporal decay, and category intent. Compaction summarizes old context to stay within token limits and **never deletes the originals**, so anything can be recovered later with `search_history`.
## One container. Nothing leaves your server
A single process, a single SQLite file, a single Docker container. No Postgres, Redis, Mongo, SearxNG, or queue broker to provision. You bring one LLM key, and the whole platform runs on your infrastructure. Upgrading is re-pulling the image (or `git pull` for the native install). Your conversations, memories, and secrets stay on your server.
## Your agents extend the platform themselves
This is the surprising part. Hivekeep is not a fixed feature set, it is a base your Agents grow:
- **Custom tools, any language** (Python, Node, Bun, TypeScript, Bash, Deno) with native dependency management, and **rich React renderers** so a tool result shows up as a themed UI card, not raw JSON.
- **Mini Apps** built by your Agents: real web apps in a sandboxed iframe, with a JS SDK, 29 React hooks, 50+ themed components (DataGrid, charts, Kanban, Calendar), an optional Hono backend, KV storage with snapshots and rollback, a public gallery with clone, 14 templates, and an "Improve this" natural-language edit loop.
- **Plugins** over npm with a typed TypeScript SDK (`@hivekeep/sdk`): a built-in marketplace (any package keyworded `hivekeep-plugin`, live npm search) plus Git install, native provider interfaces, channel adapters, lifecycle hooks, granular runtime-enforced permissions, and a scaffolder (`create-hivekeep-plugin`). Fully self-hosted, no proprietary cloud.
- **Dynamic MCP servers** the Agents can add and manage, and **toolboxes** (composable named allow-lists) to scope capabilities precisely per role.
## One inbox for your whole team
Six native channels: **Telegram, Discord, Slack, WhatsApp, Signal, Matrix**, plus the PWA as a seventh surface. WhatsApp connects either way: the Meta Cloud API, or **QR-code pairing** of a personal number (no business account, like WhatsApp Web). The standout is **real-time channel handoff**: `transfer_channel` reassigns a channel from one Agent to another mid-conversation. The address does not change, the Agent does. The new Agent receives handoff context and the causal chain, with async delivery statuses throughout.
<p align="center"><img src="docs/assets/screenshots/chat-channel.webp" width="760" alt="A smart-home request sent from Telegram: the agent runs the actions and reports back" /></p>
## No black box. No cost surprises
Transparency is a first-class feature, framed as "you control your costs," never "here is the bill." A **Context Viewer** breaks the prompt into a stacked, color-coded bar by section. Cache observability shows hit rate and TTL. Per-Agent EMA calibration compares estimated to actual token counts, and every call is tracked. The vault is AES-256-GCM, never printed in prompts or logs. Connected accounts (mail, calendar, contacts) use OAuth or encrypted credentials, and their tokens are never seen by Agents.
<p align="center"><img src="docs/assets/screenshots/context-viewer.webp" width="760" alt="The Context Viewer breaking a prompt into a color-coded, per-section breakdown with cache hit rates" /></p>
## Setup is a conversation, not a YAML file
Onboarding is three quick screens (identity, language, one LLM key). Then **Queenie**, a permanent configurator Agent with 45+ tools, takes over **by conversation**: she connects providers, secures secrets in the vault, and creates your first Agents. No YAML, no CLI. Secure input means secrets go UI to vault and **never to the LLM** (only a non-sensitive confirmation comes back). One OpenAI key becomes several auto-detected capabilities. Queenie stays accessible for life.
<p align="center"><img src="docs/assets/screenshots/chat-onboarding.webp" width="760" alt="Queenie connecting an AI provider through a secure popup during onboarding" /></p>
## Build a household for your life
Only **Queenie** ships built in. Everyone else is yours to create, each with an auto-generated avatar. A few examples of what people build (names from the sample roster):
| Agent | Role |
|---|---|
| **Atlas** | DevOps and infrastructure: CI/CD, observability, incident response |
| **Forge** | Code assistant: full-stack development, review, refactoring, debugging |
| **Sentinel** | Security: pentesting, threat modeling, secure code review |
| **Prism** | Data and BI: SQL, dashboards, reporting, business intelligence |
| **Nest** | Home automation: Home Assistant, smart devices, energy management |
| **Sage** | Research: literature review, synthesis, fact-checking |
| **Inbox** | Email and calendar: triage, scheduling, reminders, follow-ups |
| **Cuisine** | Cooking: recipes, meal planning, grocery lists |
| **Ledger** | Personal finance: budgeting, expense tracking, planning |
| **Lexicon** | Translation and localization across languages |
The same building blocks cover a DevOps copilot, a home brain, a personal knowledge base, a multi-agent dispatcher team, a business monitor, or a shared family assistant.
## Providers and plugins
Bring one config per provider and Hivekeep auto-detects its capabilities (`llm`, `embedding`, `image`, `search`, `stt`, `tts`). **Built in today:** Anthropic (API key, or Claude Max via in-app sign-in, no CLI needed), OpenAI (API key, or Codex via in-app sign-in, no CLI needed), Google Gemini, OpenRouter (LLM, embeddings, images), Kilo Gateway, Ollama Cloud (LLM and web search), xAI, DeepSeek, MiniMax, Kimi (Moonshot), and a generic **OpenAI-compatible** connector (your own base URL, for NewAPI / LiteLLM / llama.cpp / LM Studio / vLLM / Ollama) for LLMs, embeddings, and image generation (OpenAI Images API: `/images/generations`); OpenAI, Gemini, and OpenRouter for images as well; OpenRouter for embeddings as well; OpenAI and ElevenLabs for speech-to-text and text-to-speech; Brave Search, SerpAPI, Tavily, Perplexity Sonar, and Ollama Cloud for web search. Need more? Add any provider as a **plugin** through the typed SDK, no fork required. Local models whose backend lacks native tool calling (e.g. Gemma on Ollama) still get tools through an automatic prompt-based fallback. Chat-only OpenAI-compatible servers (stock Ollama, llama.cpp) do not implement image generation — use a gateway that exposes the Images API, or the branded OpenAI / Gemini providers.
---
## Why Hivekeep
Self-hosted AI assistants like **OpenClaw** and **Hermes** are excellent: they win or tie on memory, omnichannel reach, and self-hosting too. Where Hivekeep pulls ahead is the **team**, the **polished product UI**, and **transparency**. Marks below are best-effort from public docs (June 2026); peers genuinely win or tie on several rows.
| Dimension | Hivekeep | OpenClaw | Hermes |
|---|:---:|:---:|:---:|
| Self-hosted, your data | yes | yes | yes |
| Persistent memory | yes | yes | yes |
| Native omnichannel | yes | yes | yes |
| Connected accounts (mail, calendar) | yes | no | partial |
| Agents build their own tools / skills | yes | partial | yes |
| Scheduled tasks (cron) | yes | yes | yes |
| A team of agents that collaborate | yes | no | no |
| Polished web app (PWA) | yes | partial | partial |
| Rendered tool calls (UI, not JSON) | yes | no | no |
| Mini-apps your agents build | yes | no | no |
| Conversational setup (no CLI) | yes | no | no |
| Secrets never sent to the LLM | yes | partial | partial |
| Token and context transparency | yes | no | no |
> Hivekeep is production-ready for individual and small-group use, with solid foundations and UX polish that keeps advancing. We are honest about the maturity (~80%) rather than overselling it. See the [roadmap](https://marlburrow.github.io/hivekeep/) for the known rough edges.
---
## How this project is built
Hivekeep is built by a solo developer with **heavy use of AI coding assistants**. I am not hiding it, it is how I ship a project this size on my own. The architecture, the decisions, and the reviews are mine; a lot of the code is AI-written under that direction.
The honest flip side is that some AI rough edges slip through, and I would rather say so than pretend otherwise. The bar I am aiming for is AI-assisted code that is **orchestrated, reviewed, and owned**, not generated and dumped. If you spot code that reads like unreviewed slop, that is a real bug to me: please [open an issue](https://github.com/MarlBurroW/hivekeep/issues) and point at it. That feedback is genuinely how this gets better.
---
## Get started
One command. No `docker-compose`, no YAML, no database to provision.
### Native install (recommended)
```bash
curl -fsSL https://raw.githubusercontent.com/MarlBurroW/hivekeep/main/install.sh | bash
```
The script installs [Bun](https://bun.sh) if needed, clones the repo, builds the frontend, runs migrations, creates a system service (systemd or launchd), and starts Hivekeep on port **3000**. It preflights disk, RAM, ports, and connectivity, and rolls back cleanly on failure.
Then open `http://localhost:3000` and **Queenie takes it from there**: three quick screens, then she configures everything by conversation.
### Docker (alternative)
```bash
docker run -d \
--name hivekeep \
-p 3000:3000 \
-v hivekeep-data:/app/data \
ghcr.io/marlburrow/hivekeep:latest
```
> This path requires the published container image. If the pull fails with `manifest unknown` or a `403`, the image is not public yet, use the native installer above (it builds locally and needs no registry image), or build from source. See the [install docs](https://marlburrow.github.io/hivekeep/docs/) for the Docker Compose path and reverse-proxy setup. The installer also offers a hardened Docker mode: `bash <(curl -fsSL .../install.sh) --docker`.
### Recovery one-liners
```bash
# Port 3000 already taken? Map another host port (Docker):
docker run -d -p 3001:3000 -v hivekeep-data:/app/data ghcr.io/marlburrow/hivekeep:latest
# Inspect why the daemon will not start:
docker logs hivekeep # Docker
journalctl -u hivekeep -e # native (systemd)
# Generate a diagnostic report for bug reports (no local clone needed):
bash <(curl -fsSL https://raw.githubusercontent.com/MarlBurroW/hivekeep/main/install.sh) --doctor
# Or, if you used the native installer, the wrapper it installs also works:
# "$HIVEKEEP_DIR"/hivekeep doctor (HIVEKEEP_DIR defaults to /opt/hivekeep or ~/hivekeep)
```
> **Back up your encryption key.** On first boot Hivekeep generates and persists an AES-256-GCM key at `data/.encryption-key` and encrypts all vault secrets with it. If you instead set `ENCRYPTION_KEY` yourself, you must provide the same value on every restart. Keep this key (or the `data/` directory) backed up, or you lose access to encrypted secrets.
To expose Hivekeep on your network or behind a reverse proxy, add `-e HOST=0.0.0.0` and `-e PUBLIC_URL=https://your-domain`. See the [configuration reference](config.md) for every environment variable.
### Hardware requirements
Hivekeep does **not** run the models. It calls your provider (Anthropic, OpenAI, etc.) or a local OpenAI-compatible endpoint, so the inference cost lives there, not in the app. The platform itself is a single Bun process over SQLite, with no GPU and no extra services.
| Resource | Minimum | Comfortable |
|---|---|---|
| CPU | 1 core (x86-64 or ARM64) | 2 cores |
| RAM | ~512 MB | 1 GB+ |
| Disk | ~1 GB (image + SQLite, grows with history) | a few GB |
| GPU | none | none |
Agents are activated **serially per message** (not all at once), and persistent memory keeps each context small instead of replaying everything, so running several agents does not multiply local load, it just routes more calls to your provider. If you point Hivekeep at **local models** (llama.cpp, LM Studio, Ollama, vLLM), the hardware question moves to your inference server, exactly as it would with any other client. Reference instance: it runs in well under 1 GB of RAM on a small home server.
---
## Features
All capabilities are detailed on the [website](https://marlburrow.github.io/hivekeep/) and in the [docs](https://marlburrow.github.io/hivekeep/docs/). The short version:
**Persistent agents that remember and collaborate**
- Persistent identity, expertise, and long-term memory per Agent, shared across instance users
- One continuous session, never resets
- Hybrid memory: sqlite-vec KNN + FTS5 fused by Reciprocal Rank Fusion, automatic extraction plus explicit tools
- Progressive compaction that summarizes without ever deleting originals
- Sub-Agents (`await` / `async`), inter-Agent messaging (`request` / `reply`), unified contacts registry, stateful browser
**Self-hosted and self-improving platform**
- One process, one SQLite file, one container, zero external infra
- Custom tools in any language with rich React renderers
- Mini Apps built by Agents (SDK, 29 hooks, 50+ themed components, optional backend, gallery)
- Plugins over npm via a typed SDK plus a built-in marketplace, dynamic MCP, composable toolboxes
**A nice agent UI (PWA)**
- Installable PWA, responsive and mobile-first
- 18 OKLch palettes (aurora, ocean, forest, sunset, monochrome, sakura, neon, lavender, midnight, copper, jade, crimson, galaxy, amber, slate, rose, mint, citrus) x light/dark/system x adaptive contrast
- Glass/gradient design system, WCAG AA, i18n (10 UI languages; Agents speak 40+)
- Rich tool renders inline, @mentions with autocomplete, real-time SSE streaming, auto-generated per-Agent avatars
- Files: a built-in workspace browser/editor to browse, edit, upload, and share any file your Agents produce, with clickable file paths in chat
**Conversational onboarding (Queenie)**
- Minimal 3-screen onboarding, then full guided configuration by chat
- Secure input: secrets go UI to vault, never to the LLM
- One key becomes many auto-detected capabilities, avatars are auto-generated and customizable
**Everywhere**
- Six native channels: Telegram, Discord, Slack, WhatsApp, Signal, Matrix
- Real-time channel handoff between Agents with handoff context and causal chain
**Trust, security, and transparency**
- AES-256-GCM vault, never exposed to the LLM
- Connected accounts (mail, calendar, contacts) whose tokens are never seen by Agents
- Token and context transparency: Context Viewer, cache observability, per-Agent EMA calibration
- Multi-user isolation, quick private sessions, Better Auth with admin and member roles
<details>
<summary><strong>Full feature list</strong></summary>
#### 1. Agent architecture and runtime
Persistent identity and expertise per Agent (shared across users, sender-tagged messages, replies in the last speaker's language). One continuous session, never reset. Hybrid long-term memory (sqlite-vec KNN + FTS5, RRF fusion, importance/decay/category re-ranking, multi-query + HyDE + optional LLM rerank). Progressive compaction (token-aware keep-window + telescoping multi-summary, originals never deleted, triggers around 75% of the context window). FIFO queue per Agent with user-message priority. Sub-Agents (`await` / `async`, max depth 3). Inter-Agent messaging (`request` / `reply`, correlation IDs, rate-limited, chain-depth guarded). Unified contacts registry. Stateful browser (18 `browser_*` tools, Playwright + stealth + accessibility-snapshot refs). Native Anthropic prompt caching.
#### 2. UI/UX, PWA, design system, theming
Installable PWA (hand-coded service worker, offline app shell). 18 OKLch palettes x light/dark/system x adaptive contrast (normal/soft, DB-synced cross-device). Glass/gradient design system, WCAG AA, 21 micro-interaction keyframes. i18n (10 UI languages: en, fr, es, de, pt-BR, zh-CN, ja, ru, it, pl; Agents answer in 40+ languages, independent of the UI). Rich tool renders inline. @mentions with autocomplete. Real-time SSE streaming on a single multiplexed connection. Auto-generated per-Agent avatars (3 independent axes: art style, subject, character).
#### 3. Custom tools + rich renderers
Multi-language authoring (Python, Node, Bun, TS, Bash, Deno) with native dependency management. Each tool can bundle a `renderer.tsx`, server-bundled and SSR-validated before deploy, delivered as a content-addressed ESM module. Two-phase (build + SSR) validation. Themed UI kit, native renderers for 20+ built-in tools, per-toolbox scoping.
#### 4. Mini Apps
Agents build real web apps in a sandboxed iframe. Vanilla JS SDK (theme, storage, API/HTTP proxy, memory, conversation, SSE). 29 React hooks. 50+ themed components (DataGrid, charts, Kanban, Calendar). Optional Hono backend. KV storage (snapshots, rollback). Public gallery with clone, 14 templates, an "Improve this" natural-language edit loop, console ring buffer.
#### 5. Conversational onboarding (Queenie)
Minimal 3-screen onboarding, then a permanent configurator Agent (`kind=configurator`) with a dedicated 45+ tool toolbox. Secure input for secrets (`request_provider_setup`, `request_channel_setup`, `prompt_secret`): UI to vault, never to the LLM. Provider connection with key reuse (one key, N capabilities), defaults, global rules, Agent creation, avatars, channels, all by chat. Admin-first-run only.
#### 6. Auto-generated avatars
End-to-end image generation: an LLM prompt-writer rewrites each prompt from the global style, subject type, and Agent identity. Text-to-image or image-to-image with a neutral base for cross-Agent consistency. Three UI modes (upload + crop, auto, manual).
#### 7. Connected accounts (mail, calendar, contacts)
Generic multi-provider OAuth2 (Google, Microsoft 365, Apple). Mail (Gmail, Outlook/365, IMAP/SMTP). Calendar events (Google, M365, iCloud CalDAV, generic CalDAV). Read-only contact search (iCloud, Google People, MS Graph, CardDAV). Tokens cached server-side, never seen by Agents. Optional send-approval mode, per-Agent allow-list, encryption at rest. **Email triggers**: per-account condition trees (sender, domain, subject, body, attachment…, nested AND/OR) that automatically prompt a target Agent (injected into its conversation or spawned as an isolated task) when matching mail arrives (polled, with cold-start and anti-flood guards; Agents can set them up via tools).
#### 8. Plugins, SDK, marketplace
NPM-based plugins, typed TypeScript SDK (`@hivekeep/sdk`). Built-in marketplace (keyword `hivekeep-plugin`, live npm search) + Git install. Strict declarative manifest with granular permissions. Native AI tools, native provider families (LLM, embedding, image, search, TTS, STT + email/contacts/calendar), channel adapters, lifecycle hooks, interactive cards, per-plugin storage, permission-controlled HTTP, namespaced vault, scaffold CLI (`create-hivekeep-plugin`), auto-disable on error.
#### 9. Toolboxes and tool scoping
Dynamic composition of `CORE_TOOLS` plus toolboxes, resolved each turn (hot reload). Nine built-in toolboxes (code, research, ops, scout, all, email, calendar, address-book, configurator). Smart wildcard (`all`/`*` covers natives + enabled custom, never MCP/plugin). Flexible assignment (Agent, task, cron, webhook), sub-Agent hard floor, scout delegation to a cheap read-only model.
#### 10. Context and token transparency
Context Viewer (stacked multicolor bar by section + detailed table). Granular per-section estimation. Provider-agnostic cache observability (read/write/fresh tokens, hit rate, residual TTL). Per-Agent EMA calibration. Exhaustive per-call usage tracking (`llm_usage`). Sensitive tool-result masking before summarization. Budget-based history trimming.
#### 11. Channels and multi-Agent binding
Six platforms (Telegram, Discord, Slack, WhatsApp, Signal, Matrix). Real-time channel transfer (`transfer_channel`, atomic mutation, audit messages, SSE, sideband hint). Mutable Agent-channel binding, inter-Agent sending with auto prefix, transfer context injected into `<channel-context>`, causal chain (`channelOriginId`), async delivery statuses, attachments + vision.
#### 12. Vault and secret security
AES-256-GCM (random 12-byte IV + auth tag, auto-generated 256-bit key, `chmod 0600`). Secure UI-to-vault input (create + test + store atomically, no return to the LLM). Deterministic config references (`$vault:`). Message redaction that blocks compacting leakage. Typed vault entries (credential, card, note, identity, custom), metadata-only search, encrypted attachments.
#### 13. Memory system
Dual-channel capture (automatic with KNN dedup + explicit with category/importance/subject/scope). Hybrid search (KNN cosine + FTS5, RRF, multi-query + optional HyDE). Post-fusion ranking (decay, importance, retrieval boost, subject boost, category intent). Optional LLM rerank + adaptive-K trimming, auto consolidation of near-duplicates, importance recalibration, conservative stale pruning, pluggable embeddings with FTS-only graceful degradation, scoped memories.
#### 14. Automation
Crons (POSIX/ISO8601, one-shot, croner in-process; Agent-created crons need user approval; cron learnings auto-saved). Webhooks (SHA256 token, simple/regex filters, templates, rate-limited). Human-in-the-loop (`prompt_human`: confirm/select/text). Scout (read-only delegation to a cheap model). Wakeups (`wake_me_in` / `wake_me_every`). Persistent task queue with concurrency groups and frozen snapshots.
#### 15. Platform and power-user
Dynamic MCP servers (Agents manage their own). Real-time system logs (ring buffer, filterable, SSE). Direct SQL (opt-in, bound params, row cap). Platform config with secret redaction. Centralized contacts with scoped notes. Shareable files (public/password/expiring/burn). Quick private sessions per user. Multi-channel notifications. Pluggable provider resolver (one config, auto-detected capabilities).
#### Built-in tools (120+)
A rich set of native tools out of the box across Memory/Knowledge, Web/Browsing, Contacts, Vault, Multi-Agent, Automation, Mini Apps, Channels, Custom Tools, Filesystem, Files/Images, System, MCP, HTTP, and Human-in-the-Loop. Examples: `recall`, `memorize`, `search_history`, `web_search`, `browse_url`, `spawn_agent`, `send_message`, `reply`, `create_cron`, `transfer_channel`, `create_mini_app`, `register_tool`, `run_shell`, `add_mcp_server`, `http_request`, `prompt_human`.
</details>
---
## Architecture
One process, one SQLite file, one container. Everything is here, nothing external to wire up.
- **Native LLM primitives.** AI providers are implemented natively, organized by capability in `src/server/llm/{llm,embedding,image,search,stt,tts,core}/`. There is no external agent-orchestration SDK in the loop. Plugins consume the same surface through `@hivekeep/sdk`.
- **Queue per Agent.** A serialized FIFO per Agent with user-message priority, so there are no race conditions on shared context.
- **Global SSE.** One real-time connection per client, multiplexed by `agentId`. No per-Agent connections.
- **No message deletion.** Compaction compresses older messages into dated summaries that merge telescopically. Originals are always preserved and recoverable.
- **Secrets stay in the vault.** Vault secrets are never placed in prompts. Redaction prevents leaks into summaries.
- **Pluggable providers.** One config per provider, capabilities (`llm`, `embedding`, `image`, `search`, `stt`, `tts`) auto-detected.
Full details in the [technical docs](https://marlburrow.github.io/hivekeep/docs/).
---
## Tech stack
| Layer | Technology |
|---|---|
| **Runtime** | [Bun](https://bun.sh) |
| **Backend** | [Hono](https://hono.dev), [Drizzle ORM](https://orm.drizzle.team), bun:sqlite, [sqlite-vec](https://github.com/asg017/sqlite-vec), native LLM primitives (`src/server/llm/*`), [Better Auth](https://www.better-auth.com), [croner](https://github.com/Hexagon/croner) |
| **Frontend** | [React](https://react.dev), [Vite](https://vite.dev), [Tailwind CSS](https://tailwindcss.com), [shadcn/ui](https://ui.shadcn.com), [i18next](https://www.i18next.com) |
| **LLM providers** | Anthropic, OpenAI, Google Gemini, OpenRouter, xAI, DeepSeek, MiniMax, Kimi, OpenAI-compatible (any custom base URL) (plus image, embedding, search, and speech providers; more via plugins) |
| **Database** | SQLite (single file) + FTS5 + sqlite-vec |
---
## Configuration
All values have sensible defaults, you can start with an empty `.env`. The most common ones:
| Variable | Default | Description |
|---|---|---|
| `PORT` | `3000` | HTTP server port |
| `HOST` | `127.0.0.1` | Bind address (`0.0.0.0` to expose on all interfaces) |
| `HIVEKEEP_DATA_DIR` | `./data` | Persistent data directory (DB, uploads, workspaces) |
| `ENCRYPTION_KEY` | *(auto-generated)* | 64-char hex key for AES-256-GCM vault encryption. Auto-generated and persisted to `data/.encryption-key` on first run. Keep it backed up. |
| `LOG_LEVEL` | `info` | `debug` / `info` / `warn` / `error` |
| `PUBLIC_URL` | `http://localhost:3000` | Public-facing URL (webhooks, invitation links) |
See [`config.md`](config.md) and [`.env.example`](.env.example) for the complete reference (compaction thresholds, memory tuning, queue settings, cron limits, web browsing, and more).
---
## Development
### Prerequisites
- [Bun](https://bun.sh) 1.3+
- Git
### Setup
```bash
git clone https://github.com/MarlBurroW/hivekeep.git
cd hivekeep
bun install
bun run dev # Vite dev server (5173) + Hono backend (3000)
```
### Commands
| Command | Description |
|---|---|
| `bun run dev` | Start dev servers (Vite + Hono with hot reload) |
| `bun run typecheck` | `tsc --noEmit` (also run by the pre-commit hook) |
| `bun run test` | Unit tests (`bun test`) |
| `bun run build` | Production build (Vite to `dist/client/`) |
| `bun run start` | Start the production server |
| `bun run db:generate` | Generate a Drizzle migration from schema changes |
| `bun run db:migrate` | Apply pending migrations |
### Project structure
```
src/
server/ # Bun + Hono backend (routes, services, llm/, tools, db, auth, sse)
client/ # React + Vite frontend (pages, components, hooks, locales, styles)
shared/ # Types and constants shared by client and server
data/ # Created at runtime: SQLite DB, uploads, workspaces
site/ # Marketing site (Astro)
docs-site/ # Documentation (Astro + Starlight)
```
### Design system
The UI follows a custom design system with 18 palettes and full dark/light support. Before building any UI:
- Consult `src/client/pages/design-system/DesignSystemPage.tsx` (the live showcase, source of truth)
- Use semantic CSS variables (`var(--color-*)`) or Tailwind tokens, never hardcode colors
- Reuse components from `src/client/components/ui/`
---
## Community and support
- **Issues** - [report bugs or request features](https://github.com/MarlBurroW/hivekeep/issues)
- **Discussions** - [questions, ideas, show and tell](https://github.com/MarlBurroW/hivekeep/discussions)
- **Troubleshooting** - [TROUBLESHOOTING.md](TROUBLESHOOTING.md)
- **Security** - see [SECURITY.md](SECURITY.md) to report a vulnerability
If Hivekeep is useful to you, consider [starring the repo](https://github.com/MarlBurroW/hivekeep). It helps others find the project.
## Contributing
Contributions are welcome: code, plugins, mini-apps, translations, docs, feedback. Read [CONTRIBUTING.md](CONTRIBUTING.md) and the [code of conduct](CODE_OF_CONDUCT.md) to get started. Before pushing, run `bun run typecheck` and `bun run test` (both are also run by the pre-commit hook). Publish a plugin to npm with the `hivekeep-plugin` keyword to surface it in the marketplace.
---
## License
Hivekeep is licensed under the [MIT License](LICENSE). You are free to use, modify, and distribute it, including in commercial and closed-source projects. Your data, your keys, your server, no lock-in.
<p align="center">
<sub>Built with care and <a href="https://bun.sh">Bun</a> · <a href="https://marlburrow.github.io/hivekeep/">Website</a> · <a href="https://marlburrow.github.io/hivekeep/docs/">Docs</a></sub>
</p>
历史前置条件说明(补充参考)
自备服务器或本机(README 最低约 1 核 CPU、512 MB 内存、约 1 GB 磁盘,无 GPU);原生安装会自动安装 Bun,Docker 方式需可拉取 ghcr.io 镜像;需自备至少一个模型提供商的 API Key 或本地 OpenAI 兼容端点,推理费用由提供商承担,具体价格待核验;首次启动生成的加密密钥或 data/ 目录需自行备份;频道接入(Telegram、WhatsApp、Slack 等)、OAuth 邮箱日历、Webhook 等需各自平台账号与授权,配置细节待核验。
项目来源与清单版权许可
https://github.com/MarlBurroW/hivekeep
整理来源:https://github.com/slavakurilyak/awesome-ai-agents
清单版权与许可:
MIT License
Copyright (c) 2024 Slava Kurilyak
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.