Kebivo

io.github.OCNAI由 GitHub 账号 OCNAI 发布v0.3.0更新于 Nov 4, 2026

Self-hosted inbox for questions your AI agents couldn't answer. Report knowledge gaps over MCP.

概览

AI 生成的概览

自托管的收件箱,让 AI 助手通过 MCP 上报无法回答的问题和建议的更正,便于归并、分诊与路由。

可以做什么
  • 上报未回答的问题作为知识缺口,并附带标签
  • 提交用户建议的知识更正,供人工审核
  • 按精确匹配自动归并重复问题,可选启用基于 LLM 的语义归并
  • 在管理收件箱中搜索、筛选、改状态、加备注与标签、合并、拆分和删除报告
  • 按标签规则将报告路由到内置收件箱、签名 Webhook、Slack 或 SMTP 邮件,并带重试与投递日志
适用场景
当你的助手、聊天机器人或 RAG 应用能识别出自己答不上来的问题,并希望把这些遗漏集中收集、统计重复次数,再转交给负责文档的人时使用。
运行要求
以本地 Docker 容器运行(镜像 ghcr.io/ocnai/kebivo:0.3.0)并提供 HTTP 端点;MCP 客户端连接 /mcp 路径,需在管理界面创建的 Authorization 项目令牌。需要 SECRET_KEY 与 ENCRYPTION_KEY 环境变量、用于管理登录的 ALLOWED_ORIGINS,以及持久化数据卷。无需云账号或 AI 服务商。
安装前请注意
反馈以未加密形式存放在 SQLite 中,需保护数据卷与备份,不要让助手发送机密或不必要的个人数据。SECRET_KEY、ENCRYPTION_KEY 与项目令牌须保密,密钥应与数据分开备份;令牌只显示一次且可吊销。启用语义归并会把问题文本发送给所配置的 LLM 服务商。Webhook 与邮件投递为至少一次,已删除的反馈无法从已接收的目的地撤回。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Kebivo,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[Kebivo]

Kebivo: the inbox for questions your AI couldn't answer

Your AI app reports each question it couldn't answer; Kebivo groups the repeats and routes them to whoever can fix the docs.

[Demo: a customer asks a shop's AI support chatbot, "Do you ship to Canada?" The bot cannot answer. The app reports the question to Kebivo over MCP; a configured webhook route delivers it. A second report joins one inbox group with 2 occurrences. Product frames use sample data from a real Kebivo container.]

[CI] [License: Apache-2.0] [Release] [Container image]

Status: 0.3.0. Run the published image ghcr.io/ocnai/kebivo:0.3.0 (linux/amd64, linux/arm64) or build it from this repository. Licensed under Apache-2.0.

Try it with Docker, OpenSSL and a free port 8000:

sh
(umask 077; printf 'SECRET_KEY=%s\nENCRYPTION_KEY=%s\nALLOWED_ORIGINS=http://127.0.0.1:8000\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > kebivo.env)docker run -d --name kebivo --restart unless-stopped -p 127.0.0.1:8000:8000 -v kebivo-data:/data --env-file kebivo.env ghcr.io/ocnai/kebivo:0.3.0curl -fsS --retry 30 --retry-all-errors --retry-delay 1 http://127.0.0.1:8000/health/ready

Without Kebivo: the bot says it couldn't find the answer, the user gives up, and the question sits in a log nobody reads.
With Kebivo: the question shows up once in the inbox with a repeat count, and your routing rules can send it to Slack, email or a webhook for whoever owns those docs.

[Kebivo group inbox with sample data from a shop assistant: "Do you ship to Canada?" has 7 occurrences, alongside other customer questions the chatbot could not answer.]

Group inbox from a real Kebivo 0.2.0 container with sample data.

Continue with the Quickstart to report a question. For framework tutorials, see the Kebivo Guides.

Why

When an assistant cannot answer, the documentation owner may never see the question. The same question can fail again, and corrections offered in chat may never reach the people who maintain the content. Kebivo collects those knowledge gaps in one place, where owners can triage and route them to the tools they use.

When to use Kebivo

  • Your assistant, chatbot or RAG app can identify an unanswered question and report it over REST or MCP.
  • The same questions recur, and content owners need a grouped count and inbox to prioritize them.
  • Different teams own different topics, so you need to route reports by project or tags to Slack, email or signed webhooks.
  • Users suggest corrections (an opt-in setting, off by default), and a person must review them before anyone changes the knowledge source.
  • You need a self-hosted feedback workflow that runs without a cloud account or AI provider.

Features

  • Send reports from application code through REST, or give agents the Streamable HTTP MCP tools report_knowledge_gap and submit_knowledge_correction.
  • Create one project per assistant or team, with default tags, a corrections policy, and bearer tokens that are shown once, can expire and can be revoked.
  • Route reports with ordered rules, ANY/ALL tag matching, several destinations per rule, a fallback, and a dry-run simulator.
  • Deliver to signed webhooks with a versioned JSON payload, Slack incoming webhooks, SMTP email, or the built-in inbox. Deliveries have durable retries with backoff, restart recovery, a delivery log and manual retry.
  • Questions that match exactly, ignoring case, extra whitespace, quote and dash styles, and trailing ?, ! or ., are grouped automatically. You can also configure an LLM provider for semantic grouping.
  • Triage reports in the inbox with search, filters, statuses, notes, tags, merge, split and deletion. Each group has a full history.
  • Enable OpenAI-compatible, Azure OpenAI or local (Ollama, LM Studio) providers for semantic grouping on a per-project basis. This is off by default.
  • Run one container with one SQLite file. Startup migrations, online backup and checked restore, retention (on by default), JSON Lines export, and health checks are included.

Screenshots

All screenshots use synthetic data.

More: destinations, settings, LLM settings, sign-in. Regenerate them with make e2e-ui SCREENSHOTS=1.

The demo's product frames come from a real container with sample data; its chat and end card are drawn. See the demo source.

Quickstart

You need Docker, OpenSSL, Python 3 and a free port 8000. The published image is typically ready in about 12 seconds after download.

1. Start Kebivo from the published image. Skip this step if you ran the three commands above. Keep kebivo.env private and back it up apart from the data volume.

sh
(umask 077; printf 'SECRET_KEY=%s\nENCRYPTION_KEY=%s\nALLOWED_ORIGINS=http://127.0.0.1:8000\n' \  "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > kebivo.env)docker run -d --name kebivo --restart unless-stopped -p 127.0.0.1:8000:8000 \  -v kebivo-data:/data --env-file kebivo.env ghcr.io/ocnai/kebivo:0.3.0curl -fsS --retry 30 --retry-all-errors --retry-delay 1 http://127.0.0.1:8000/health/ready

Curl may print a few Connection reset errors while migrations run. Readiness returns {"status":"ok",...}.

2. Create an administrator and project token. The password must have at least 12 characters. The token is issued once into KEBIVO_TOKEN; keep it private.

sh
read -rsp 'Admin password (12+ characters): ' KEBIVO_ADMIN_PASSWORD; printf '\n'printf '%s\n' "$KEBIVO_ADMIN_PASSWORD" | docker exec -i kebivo python -m kebivo.cli bootstrap --email [email protected] --password-stdinunset KEBIVO_ADMIN_PASSWORDKEBIVO_PROJECT="$(docker exec kebivo python -m kebivo.cli project create --name 'Shop assistant' --json)"KEBIVO_TOKEN="$(printf '%s' "$KEBIVO_PROJECT" | python3 -c 'import json,sys; print(json.load(sys.stdin)["token"])')"

3. Report the same unanswered question twice. Use a different idempotency key for each occurrence. Reuse a key only when retrying the same request.

sh
curl -i http://127.0.0.1:8000/api/v1/feedback \  -H 'Content-Type: application/json' \  -H "Authorization: Bearer $KEBIVO_TOKEN" \  -H 'Idempotency-Key: canada-gap-001' \  --data '{"event_type":"knowledge_gap","question":"Do you ship to Canada?","tags":["shipping"]}'curl -i http://127.0.0.1:8000/api/v1/feedback \  -H 'Content-Type: application/json' \  -H "Authorization: Bearer $KEBIVO_TOKEN" \  -H 'Idempotency-Key: canada-gap-002' \  --data '{"event_type":"knowledge_gap","question":"Do you ship to Canada?","tags":["shipping"]}'

Both responses are 202 Accepted with distinct event_id values. Open http://127.0.0.1:8000/, sign in, and find Do you ship to Canada? in the Inbox with 2 occurrences. Use exactly 127.0.0.1: localhost is a different origin, and sign-in names the allowed origin if you use the wrong one. You can also create projects and tokens in the UI.

For a signed webhook delivery, follow step 4 of the Docker guide.

REST or MCP? Call REST from your application's fallback when every miss must be captured. With MCP, the model decides whether to call report_knowledge_gap, so some misses may go unreported.

Where Kebivo fits

Kebivo works alongside Langfuse and Phoenix, which help engineers inspect runs. Kebivo collects and routes misses; it does not diagnose why retrieval failed. It does not answer questions, update a knowledge base, or apply proposed corrections; people review the reports. Use something else if you need a ticketing system, analytics, multi-user accounts, SSO, or high availability. Kebivo is self-hosted with one local administrator, one process and one SQLite file. See the technical documentation for deployment and limits.

Build from source

Use this path if you want to change the code. After it starts, replace both docker exec -i kebivo and docker exec kebivo with docker compose exec -T app in step 2.

sh
git clone https://github.com/OCNAI/kebivo.gitcd kebivocp .env.example .envprintf 'SECRET_KEY=%s\n' "$(openssl rand -hex 32)" >> .envprintf 'ENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" >> .envprintf 'ALLOWED_ORIGINS=http://127.0.0.1:8000\n' >> .envdocker compose up --build -dcurl -fsS --retry 30 --retry-all-errors --retry-delay 1 http://127.0.0.1:8000/health/ready

To stop the published image: docker stop kebivo (data stays in the volume). To stop a Compose build: docker compose down (data is kept). docker compose down --volumes deletes all data. For production (TLS, backups, upgrades, every setting), read the self-hosting guide.

Collect AI agent feedback with REST

Send POST /api/v1/feedback with a project token. A 202 means the report is stored durably; routing and delivery happen in the background. Send an Idempotency-Key and reuse it on retries. Retry 429 and 5xx responses with backoff; do not retry other 4xx errors.

For Python applications, install the kebivo-client distribution from the standalone Python SDK directly from GitHub with pip install "git+https://github.com/OCNAI/kebivo#subdirectory=sdk/python" (not published to PyPI):

python
from kebivo_client import Kebivo
client = Kebivo("https://your-kebivo.example", "<PROJECT_TOKEN>")accepted = client.report_gap("How do I reset my VPN?", tags=["it"])print(accepted["event_id"])

For Node 20+ applications, use the standalone TypeScript SDK from a local path. It has no runtime dependencies and is not published to npm. Keep project tokens on the server; never embed them in browser code.

Runnable clients for cURL, Python (standard library) and TypeScript (Node.js 24, no build step) are in examples/, and the project page in the UI shows the same snippets with your endpoint. The REST integration guide covers fields, authentication, idempotency, errors, retries and rate limits.

Report knowledge gaps with MCP

Point an MCP client at http://127.0.0.1:8000/mcp with the header Authorization: Bearer <PROJECT_TOKEN>. For Claude Code:

sh
claude mcp add --transport http kebivo http://127.0.0.1:8000/mcp --header "Authorization: Bearer <PROJECT_TOKEN>"

Tokens with feedback:gap see report_knowledge_gap; submit_knowledge_correction also needs feedback:correction and a project that accepts corrections. A model may not call a tool when it should, so use REST where every report matters. See the MCP guide, a client configuration, a Python client and copyable agent instructions.

Destinations and routing

DestinationWhat it sends
Built-in inboxAlways available; every event is in the admin inbox.
WebhookHTTPS POST with a versioned JSON payload, Standard Webhooks signatures, optional bearer or custom headers. A receiver example verifies both.
SMTP emailA message (plain text with an escaped HTML alternative) to 1–20 recipients over STARTTLS, implicit TLS, or an unauthenticated local relay.

Each project has ordered rules: a rule matches ANY or ALL of its tags and sends to one or more destinations, optionally stopping evaluation. Unmatched events go to the fallback destinations. For example, it → IT email, customer-service → the support webhook. Each destination delivers either for new groups only or for every occurrence. See routing and destinations.

Optional AI

No model is called by default. To group questions that are worded differently, configure an LLM provider (LLM settings in the UI) and switch a project to semantic deduplication after acknowledging that question text will be sent to that provider. If the provider fails, the event keeps its own group and is still routed and delivered. See deduplication and LLM providers.

Security

  • Run behind a TLS reverse proxy and keep the app port on loopback (guide).
  • Keep .env private. Back up SECRET_KEY and ENCRYPTION_KEY separately from database backups.
  • Feedback is stored unencrypted in SQLite. Protect the volume and backups, and do not ask assistants to send secrets or unnecessary personal data.
  • Give each client its own token, give customer-facing agents only feedback:gap, and revoke tokens you no longer use.
  • Webhooks and LLM providers cannot reach private or loopback addresses unless you opt in per destination or provider; cloud metadata addresses are always blocked, also for SMTP. Admin writes need the configured Origin and a CSRF token.
  • Logs never contain feedback content or credentials.

Report vulnerabilities as described in SECURITY.md.

Data, retention and export

Retention is on by default: feedback older than 180 days, finished delivery attempt details older than 30 days, and audit entries older than 90 days are deleted daily. Change or disable each with an environment variable (0 turns it off). Retention does not touch backups you already made. An administrator can export a project's feedback as JSON Lines. See retention and export.

Known limits

  • At-least-once delivery. A receiver may see a delivery twice; deduplicate by the webhook ID or delivery ID.
  • One administrator, one instance, one SQLite file on local storage. No replicas, no network filesystem.
  • MCP needs a manually configured bearer token; OAuth-only clients cannot connect. Responses are stateless JSON without streaming notifications.
  • Rate limits are counted in memory and reset when the container restarts.
  • Deleted feedback cannot be recalled from destinations that already received it or from existing backups.
  • No encryption at rest for feedback content.

Documentation

Framework tutorials are in the website Guides. Runnable clients and framework examples are in examples/. The pages below cover the technical details.

GuideContents
Self-hostingRequirements, every setting, TLS proxy, secrets, backup and restore, upgrades, credential rotation, troubleshooting
REST APIAuthentication, fields, idempotency, errors, retries, examples
MCPConnecting clients, tools and permissions, testing, limitations
Routing and destinationsRules, fallback, webhooks, signatures, SMTP
Deduplication and LLM providersExact and semantic grouping, providers, privacy
Feedback managementGroups, search syntax, statuses, merge, split, deletion
Retention and exportAutomatic deletion, JSON Lines export
ReleasingVersioning, image labels, release and upgrade checks
Third-party licensesInventory of shipped dependencies
ChangelogUser-visible changes per version

Contributing

Development setup, make targets, style, tests and the documentation rule are in CONTRIBUTING.md. In short: make install, then make check before every commit, and update the docs in the same change. Sign off every commit (git commit -s) under the Developer Certificate of Origin; there is no CLA.

Everyone taking part follows the Code of Conduct. Ideas under consideration, none of them committed, are in the roadmap.

License

Kebivo is licensed under the Apache License 2.0. Contributions are accepted under the same license with a Developer Certificate of Origin sign-off; there is no CLA. The third-party license inventory lists the licenses of everything the image ships.

来源:README.md,提交 3b03729

工具

0
SourceWeft 曾在隔离沙箱中以无凭据方式启动该软件包一次,以列出其工具,但未能完成:该软件包类型无法在沙箱中运行。

版本历史

3
  1. v0.3.0最新Nov 4, 2026
  2. v0.2.0Oct 29, 2026
  3. v0.1.1Oct 26, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分