Documentation
ContextBay is a self-hosted homelab management platform — one master container plus N worker images, with Portainer underneath and a fleet of cb-* sub-containers handling metrics, logs, traces, alerts, workflows, and security. Pick a starting point below.
New here?
Read Quickstart first — it walks you from git clone to a fully fused worker in about ten minutes. Then dip into Architecture for the three-circle mental model. Everything else is a reference you'll come back to as you go.
All pages
Quickstart
Zero to fused worker in ten minutes. Prerequisites, master deploy, admin signup, UI tour, your first worker host, and the fuse handshake.
Architecture
The three-circle model, sub-container fleet, mesh networking, database schema, and security model.
Configuration
Every TOML option for master and worker. Environment variable overrides, the _FILE secret idiom, and validation rules.
Worker Onboarding
Deep dive on the install snippet, every CONTEXTBAY_* env var, the bootstrap call, fuse handshake, persistence, and refreshing workers.
Operations
Make targets, the volume protocol, auth recovery, log locations, and the one-liners you reach for during incidents.
Observability
Prometheus, Grafana, Loki, Tempo, Pyroscope, Alertmanager. Master metrics, host-onboarding counters, and rule reload.
Backups
Volume-level backup jobs, restore from a record, verification, and offsite downloads.
Project Registry
Manual project records, claude-context bundles, the local-mode git scanner, and the Portainer redeploy hook.
Discord
Enable the bot, set scopes and intents, configure channels and roles, opsec sanitization, and the slash-command surface.
API Reference
Every REST endpoint, gRPC service, and WebSocket event. Grouped by module with method, path, role, and a short description.
Troubleshooting
Common issues and debug commands for installation, enrollment, mesh, database, and modules.
Prerequisites at a glance
| Requirement | Minimum | Recommended |
|---|---|---|
| CPU | 1 core | 2+ cores |
| RAM | 256 MB | 512 MB+ |
| Disk | 100 MB | 1 GB+ |
| Docker | 20.10+ | Latest stable |
| Go (build from source only) | 1.26+ | Latest |
| Node.js (build from source only) | 20+ | Latest LTS |
Supported platforms: Linux amd64/arm64, macOS amd64/arm64. Windows via WSL2.
Modules at a glance
ContextBay is modular. Most modules are on by default; flip any to false in [modules] to remove its API routes, sidebar entries, and background services.
| Module | Default | Description |
|---|---|---|
monitoring | on | Metrics collection, Grafana, Prometheus, custom dashboards |
alerting | on | Alert rules, Alertmanager routing, notification channels |
workflows | on | n8n integration (auto-bootstrapped admin + API key) |
knowledge | on | Markdown vault, RAG search via Ollama embeddings, graph |
ai | on | Tiered router: Ollama for cheap classify, Claude Code for reasoning |
security | on | Wazuh SIEM, FIM, vulnerability scanning, secret scanning |
discord | off | Discord bot (requires bot token) |
backups | on | Volume backup scheduling |
proxy_routes | on | Reverse-proxy routes managed in CB (per-route auth, TLS) |
webhooks | on | Outbound webhook targets fed by the event bus |
catalog | on | App deployment templates |
terminal | on | Web terminal (admin-only) |
topology | on | Cluster topology graph |
planner | on | Project planner: Kanban, Gantt, sprints, velocity |
Where the source lives
The repo at github.com/contextbay/contextbay is a passive code mirror. Issues, sprints, and the roadmap live in the in-product Project Planner (/planner), not on GitHub. CB does not depend on any GitHub services beyond hosting the source mirror.

