open-webui/oikb
Sync anything to Open WebUI Knowledge Bases
What it solves
Open WebUI lets you attach knowledge bases to your AI chat so the model can answer questions using your own files. Keeping those knowledge bases up to date was manual and error-prone. oikb automates it: you point it at a source (a folder, a GitHub repo, a Confluence space, an S3 bucket, Zotero, etc.), and it uploads new or changed files to Open WebUI automatically, skipping anything it already knows.
How it works
The tool scans the source, computes checksums for every file, and sends a manifest to Open WebUI's sync endpoint. Open WebUI tells it which files are missing or changed. oikb then deletes stale files, creates missing directories, and uploads only the new and modified files — this is the "incremental source-checksum diffing".
It offers several ways to run:
- One-shot sync with
oikb sync <source> - Watch mode (
oikb watch <dir>) that re-syncs when files change - Daemon mode (
oikb daemon) for production: scheduled syncs (intervals or cron), webhooks to react to source changes, a health endpoint, Prometheus metrics, failure notifications, and an HTTP API.
a daemon can even be registered as a Tool Server in Open WebUI, letting the LLM trigger syncs or check sync status on its own.
Configuration is managed with a .oikb.yaml file: you define sources, target knowledge base IDs, filters (include/exclude globs, size limits), schedules, and notification webhooks. There are also CLI commands to preview, validate, and inspect sync history.
Who it's for
Teams and individuals who use Open WebUI and want to keep its knowledge bases current without manual exports. It's useful for documentation teams, developers syncing code repos, support teams pulling in Confluence or Notion, and researchers using Zotero collections. The daemon and Docker setup target production deployments that need scheduled, observable syncs.
Highlights
- 47 connectors across code repos, cloud storage, wikis, ticketing systems, messaging, meetings, CRM, and more
- Incremental sync that only uploads new and modified files, saving bandwidth and API calls
- Daemon with scheduling, webhooks, health checks, Prometheus metrics, and failure alerts
- Can act as an Open WebUI Tool Server so the LLM itself can trigger or query syncs
- Filtering with include/exclude globs and max file size limits
- Docker image and GitHub Actions support for CI/CD automation
- Open source under the MIT license
Related
- Project
- Project
- Project
- Project
- Project