Skip to main content

Self-hosting

Bee Flow's server and frontend are open-source under the Sustainable Use Licence. You can run the entire stack on your own infrastructure for free, for your own organisation.

What you'll run

ComponentImage / packageRequired?
Bee Flow serverghcr.io/bee-flow/beeflow:latest
Bee Flow frontend (hive)@beeflow/frontend (npm) or build from source
PostgreSQL 16+postgres:16-alpine
Redis 7redis:7-alpinerecommended
Bee Flow Nextcloud connectorNC App Store (bee_flow)optional
Guard service (PII detection)ghcr.io/bee-flow/guard-service:latestoptional
Search service (KB ingestion + reranking)ghcr.io/bee-flow/search-service:latestoptional

The minimum useful deployment is server + Postgres. Add Redis as soon as you scale to >1 server replica or >50 concurrent users.

Stack diagram

Browser


┌──────────────────────┐
│ Reverse proxy │ Caddy / Nginx / Traefik / Cloudflare
│ ─ TLS termination │
│ ─ Path routing │
└──────────┬───────────┘

┌──────────┼─────────────────┐
│ │ │
▼ ▼ ▼
┌──────┐ ┌──────────┐ ┌────────────┐
│ hive │ │ beeflow │ ◀───│ bee_flow │ (Nextcloud connector,
│ / │ │ /api/ │ │ ExApp │ optional, same network)
│ /app │ │ /auth/ │ └────────────┘
└──────┘ └─────┬────┘

┌───────────┼──────────────┐
│ │ │
▼ ▼ ▼
┌──────────┐ ┌────────┐ ┌─────────────────┐
│ Postgres │ │ Redis │ │ guard / search │
│ 16 │ │ 7 │ │ services │
└──────────┘ └────────┘ └─────────────────┘
MinimumRecommendedHeavy use
CPU2 cores4 cores8 cores
RAM4 GB8 GB16+ GB
Disk10 GB50 GB200+ GB (KB)
Postgres1 GB RAM2 GB4 GB
Network100 Mbps1 Gbps1 Gbps +

The server is stateless when Redis is configured — scale horizontally. Postgres carries all durable state (users, agents, conversations, KB chunks, automation runs, audit log).

Pick your deploy target

Single host, simplest. Production-ready for most small/mid orgs.

Multi-node, Helm chart in progress. Use the manual manifests until then.

The full reference for every BEEFLOW_* and dependency knob.

Version skew policy, migration safety, rollback procedure.

Supported deploy targets

TargetStatusNotes
Docker Compose (single host)Recommended for self-hosters.
Kubernetes (manual manifests)Helm chart is on the roadmap.
Coolifydeploy/coolify.json in the server repo.
KamalStandard Docker image works.
Render / Fly / RailwayTreat the server like any Node service, mount Postgres + Redis.
Vercel / Netlify (frontend only)Static dist/ from hive builds anywhere.
Cloudflare Pages (frontend only)Same.
Bare-metal (systemd)⚠️Works but unsupported — you maintain the service files.

Required external services

  • At least one model provider — Anthropic, OpenAI, Mistral, Azure OpenAI, or a local Ollama endpoint.
  • Postgres 16+ — primary store. Earlier versions lack required SQL features.
  • DNS + TLS for the hostname your users hit (Let's Encrypt via Caddy is the simplest path).

Optional but commonly added:

  • Azure AI Text Analytics — for the higher-quality Privacy Shield path.
  • Azure Content Safety — for the moderation guardrail.
  • Bing or Tavily — for the web-search agent tool.
  • Voxtral / ElevenLabs — for voice features.

What's next