Skip to Content
DocumentationSelf-hostOverview

Self-host the web UI

The CLI is complete on its own. The web UI is what turns BotBandit from a terminal tool into an operator’s console: live transcripts from anywhere, a terminal and diff view over what your agents are doing, a work board, notes, and memories — on your phone as readily as your desk.

The part that makes it different from an ordinary agent front-end: it runs on your backend, not ours. There is no BotBandit cloud, no account to create, no tenancy to trust. The backend is a Supabase stack you own — on this machine, or a project on supabase.com — and that is the whole hosted story.

What that buys you

  • Your data stays yours. Sessions, documents, memories, and transcripts live in your Postgres. You can query it, back it up, and delete it.
  • No vendor in the path. The agent on your laptop and the browser on your phone meet through your backend. Nothing routes through a third party.
  • Real-time, not polling. Supabase Realtime carries live transcripts, PTY output, and presence over private per-user channels.
  • It is just Postgres. The schema is a documented contract, shipped as numbered SQL migrations that boba db applies. Nothing is hidden behind an API you cannot inspect.

How the pieces fit

your machine your Supabase backend any browser ┌──────────────────┐ ┌────────────────────────┐ ┌──────────────┐ │ boba daemon │◀──────────▶│ Postgres + Realtime │◀──────▶│ web UI │ │ (owns sessions) │ realtime │ + Storage │ │ (Next.js) │ └──────────────────┘ └────────────────────────┘ └──────────────┘ ▲ ▲ │ supabaseBridge extension │ the web app mints short-lived │ publishes + subscribes │ JWTs for headless clients

The daemon stays the owner of every session. Supabase is the meeting point, not the brain: if it goes away, your agents keep running and the TUI keeps working.

On this machine

The shortest path: no cloud account, no clone of the repo. On a machine with no config yet, run boba init, pick Background service, then Run it on this machine at Connect to a BotBandit web app?. It is offered on macOS 14+ on Apple silicon and on Linux (x64 or arm64, glibc 2.35+ — Ubuntu 22.04 or newer).

The wizard then:

  1. Uses the Supabase CLI from your PATH if it is recent enough; otherwise it asks before downloading a pinned, checksum-verified release into ~/.botbandit/bin/ (your PATH is left alone).
  2. Creates a Supabase project in ~/.botbandit/supabase/ on the CLI’s native runtime — plain processes, no Docker — and starts it. The first start downloads about 360 MB.
  3. Applies the schema, creates a login user, and mints a token for the agent.
  4. Writes a config in which the daemon runs the backend (service.supabase), serves the web UI (service.web, from port 3000 or the next free one), and mirrors every profile to it.

It prints the login’s email and password, and keeps them owner-only in ~/.botbandit/supabase/login.json. From then on the daemon starts the backend and the web with itself, restarts the backend if it stops, and applies schema migrations on start. boba daemon status shows the state of both.

The local stack is the Supabase CLI’s development stack: right for one person on one machine, not something to expose to the internet. Nothing starts the daemon at login yet — after a reboot, run boba daemon restart.

To reach it from a phone, the browser needs both the web’s URL and the local Supabase API (port 54321 by default). Expose both over a private network — a tailnet with tailscale serve, for example — never the open internet.

On supabase.com

For a backend every machine and device can reach, use a free supabase.com  project — you do not need to self-host Supabase itself. A script sets the project up; you run the web app, then connect each agent to it.

Budget about twenty minutes, most of it waiting on Supabase to provision.

The web UI is alpha. It is the surface we use daily, but it moves fast and the schema still changes between versions.

Last updated on