Hosting

Running OpenBursar in Docker

OpenBursar runs as one small container with one database file. You pick how far to take it. Each step takes more effort than the one before, and each unlocks more:

  • TimeAbout 15 minutes on localhost (30+ minutes for a public address)
  • CostFree, plus your hardware; a public address needs a domain
  • NeedsDocker with Compose
  • You'll finish withOpenBursar on your own machine, with one database file
PathEffortWhat works
1. Try it on http://localhost:3000About 15 minutesThe dashboard on that machine. Terminal and editor agents on that machine.
2. Private with Tailscale ServeAbout 20 minutesHTTPS on your own devices (your tailnet). Dashboard and terminal agents from those devices.
3. Public with a Cloudflare Tunnel (or Tailscale Funnel, or your own reverse proxy)30+ minutes, and a domainEverything above, plus web and mobile AI assistants such as Claude or ChatGPT. Only this path works with them. It is more work than the Cloudflare "Deploy" button, so if a web assistant is all you want, use that instead.

"Web assistants" here means assistants that add connectors from their company's cloud: claude.ai and the Claude desktop and mobile apps, ChatGPT, Mistral. "Terminal and editor agents" run on your computer and connect from it: Claude Code, Gemini CLI, VS Code with Copilot, Goose, Zed. Both kinds are covered in Connect your AI assistant.

Address you openDashboard loginWeb assistantsTerminal and editor agents
http://localhost:3000yes, same machineno; on that machine use stdio instead (see Local MCP (stdio and localhost))yes, same machine
A LAN address such as http://192.168.1.5:3000 or http://nas.local:3000no: browsers refuse passkeys on plain HTTP and on IP addressesnono
Tailscale Serve (https://name.tailnet.ts.net)yes, tailnet devicesnoyes, tailnet devices
Tailscale Funnelyesyes (untested)yes
Cloudflare Tunnel or reverse proxy on your own domainyesyesyes

Because of that second row, the container only publishes on 127.0.0.1. Do not change that to expose it on your network; add HTTPS instead.

Quickstart (localhost)

You need Docker with Compose (Docker Desktop, or Docker Engine on Linux).

No ready-made image yet. The image this guide pulls, ghcr.io/openbursar/openbursar:release, has not been published for the current version. Until it is, build it yourself: clone the repository (git clone https://github.com/openbursar/openbursar && chmod 700 openbursar && cd openbursar), skip the mkdir and curl lines below, create passphrase.txt with the openssl and chmod commands, and start with docker compose up -d --build instead of docker compose up -d. The rest of this guide is the same.

mkdir openbursar && chmod 700 openbursar && cd openbursar   # only you can open this folder
curl -fsSLO https://raw.githubusercontent.com/openbursar/openbursar/release/docker-compose.yml
# one long random phrase, 20+ characters; keep a copy in your password manager
openssl rand -base64 24 > passphrase.txt
chmod 444 passphrase.txt     # the container's user must read it; the folder above keeps other users out
docker compose up -d

Open http://localhost:3000 and enter the passphrase to claim your instance, then add a passkey.

The passphrase does two jobs: it is your setup code, and it derives the key that encrypts your bank credentials. If you lose it you must reconnect your banks. Back it up.

Check on it:

docker compose ps            # "healthy" after about 30 seconds ("starting" until then)
docker compose logs -f openbursar

Other variables you may set in a .env file next to docker-compose.yml:

VariableDefaultMeaning
BASE_URLhttp://localhost:3000The public address people type. Must be https://... (plain http only for localhost).
OB_PORT3000The port published on 127.0.0.1.
OB_SYNConoff stops the automatic bank sync.
OB_IMAGEghcr.io/openbursar/openbursar:releaseUse a specific version tag to pin.

The image also understands MCP_TOKEN (a static token for local MCP clients) and PLAID_* (bank connection settings); add them under environment: in the compose file. Plain docker run works too:

docker run -d --name openbursar -p 127.0.0.1:3000:3000 -v openbursar-data:/data \
  -v "$PWD/passphrase.txt:/run/secrets/owner_passphrase:ro" \
  -e OWNER_PASSPHRASE_FILE=/run/secrets/owner_passphrase ghcr.io/openbursar/openbursar:release

Local use (agents on the same machine)

No tunnel needed: an agent on the same machine can talk to the container directly.

  • stdio (any client that launches local MCP servers, such as Claude Desktop, Claude Code, Goose or Zed): the client runs docker exec -i openbursar node dist/server.mjs mcp.
  • localhost HTTP (clients that accept a custom header, such as Claude Code or Gemini CLI): http://localhost:3000/api/mcp with Authorization: Bearer $MCP_TOKEN.

Copy-paste configs are in Local MCP (stdio and localhost).

Public HTTPS with a Cloudflare Tunnel (for web assistants)

You need a domain whose DNS is on Cloudflare.

  1. In the Cloudflare dashboard open Zero Trust > Networks > Tunnels, create a tunnel and copy its token.
  2. Add a public hostname to the tunnel, for example bursar.example.com, with service http://openbursar:3000.
  3. Choose the hostname now. Passkeys are tied to the hostname and cannot move to another one, and every assistant you connect remembers it too. Quick tunnels (trycloudflare.com) get a new hostname on every start, so they do not work.
  4. Start both containers:

    BASE_URL=https://bursar.example.com TUNNEL_TOKEN=<the token> \
      docker compose --profile cloudflared up -d

    (Or put both lines in .env.) Open https://bursar.example.com, claim the instance and add a passkey.

  5. Add https://bursar.example.com/api/mcp to your AI assistant as a custom connector. See Connect your AI assistant.

BASE_URL decides the address passkeys and sign-in use, so a wrong value shows up as login failures. If you use your own reverse proxy (Caddy, nginx, Traefik) instead, forward to 127.0.0.1:3000, set BASE_URL to the public address, and make the proxy overwrite X-Forwarded-Host and X-Forwarded-Proto rather than pass on what the client sent.

Once the site is public, so is /api/mcp. If you set MCP_TOKEN, make it long and random (openssl rand -base64 32), or leave it unset and use OAuth only.

Tailscale users: tailscale serve --bg 3000 gives you an HTTPS address on your tailnet; set BASE_URL to it. tailscale funnel makes it public and needs HTTPS certificates and the funnel attribute in your tailnet policy.

Where your data lives

Everything is in one SQLite file, openbursar.db, in the openbursar-data Docker volume (mounted at /data). The container is read-only except for that volume and a temporary /tmp. If you swap the volume for a folder (./data:/data), the folder must be writable by uid 1000; otherwise the container stops and the log names the user id it needs.

Backups

docker compose exec openbursar node dist/server.mjs backup
docker compose cp openbursar:/data/backups ./backups

This writes a consistent copy (safe while the app runs) to /data/backups/openbursar-<timestamp>.db. The file does not contain the encryption key, so a leaked backup reveals no bank tokens; to restore you need the same passphrase. Copy backups somewhere other than the same disk. Pass a path to choose the file name: node dist/server.mjs backup /data/backups/before-upgrade.db.

To restore, stop the stack, put the file at /data/openbursar.db in the volume (for example with a throwaway docker run --rm -v <volume>:/data -v $PWD:/b alpine cp /b/file.db /data/openbursar.db, then chown 1000:1000 it), and start again with the same passphrase.

Upgrades

docker compose pull
docker compose up -d

Database changes apply automatically at start-up and are never destructive. Take a backup first if you like; there is no downgrade, but restoring the backup and the older image works.

Building from source instead: docker compose build uses the Dockerfile in the repository.

Troubleshooting

  • The container exits saying the data directory is not writable by uid ...: the volume or folder is owned by a different user. chown it to that uid, or use a named volume.
  • BASE_URL ... must be https://: you set a plain http:// address that is not localhost. Add HTTPS.
  • Passkey prompt never appears: you are on a LAN address or plain HTTP. Use localhost or an HTTPS hostname.
  • A web assistant cannot connect: check https://<your host>/healthz loads from outside, and that BASE_URL matches the address exactly (no trailing path).
  • Undo the v1 transfer backfill: take a backup above, wait for any running sync to finish, and follow Set up OpenBursar on Cloudflare (includes the exact SQL and Docker node:sqlite command).
Stuck, or found a mistake?

Ask in the Q&A and someone who runs OpenBursar will answer. If the guide itself is wrong or out of date, report it and we will fix the page.