UsersSelf-Hosting

Self-Hosting StudioBrain

StudioBrain can be self-hosted on your own infrastructure for full control over data, performance, and security.

Deployment Modes

StudioBrain supports three deployment modes:

ModeDatabaseBest For
Desktop (default)SQLite (local file)Single user, no server required
Self-Hosted (Community Edition)SQLite (Rust server)Small teams, on-premise. An enterprise/on-prem edition is a future offering
Cloud (SaaS)Cloudflare Workers (content in a per-project ProjectStore Durable Object + R2)Studios and teams, no servers to run

Quick Start

The self-hosted Community Edition runs from docker/docker-compose.yml in studiobrain-core:

  1. Clone the repository and copy the example environment file (cp .env.example .env)
  2. Optionally set AI provider keys in .env (OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY, GROK_API_KEY)
  3. Run docker compose -f docker/docker-compose.yml up -d
  4. Open http://localhost:3100

The stack has no TLS. For HTTPS, put your own reverse proxy (Caddy, nginx, Traefik) in front of it.

Architecture Overview

The Community Edition is a two-container Docker Compose stack:

  • App Server: Docker Compose stack with two services: frontend (Next.js 15, port 3100) and backend (Rust sb-server + SQLite, port 8201). Content lives in ./content/ (source of truth); ./db/ holds the rebuildable SQLite cache. Add your own reverse proxy for HTTPS.
  • AI: bring your own provider API keys. The Community Edition has no bundled local inference or AI service; for local models use the desktop app.
  • Cloud mode is not self-hosted: the SaaS runs on Cloudflare Workers (api.studiobrain.ai), with content in a per-project ProjectStore Durable Object plus R2 object storage

Requirements

  • Docker and Docker Compose
  • (Optional) A domain name pointing at your server, if you expose it beyond localhost
  • 4 GB RAM minimum

Full deployment details, infrastructure configuration, network topology, and security hardening are documented in the internal operations guide (requires authentication).

Next Steps