Self-host Actual Budget
Local-first personal finance and budgeting app; the sync server stores budget files, syncs them between devices and serves the web app. Run your own Actual Budget on an always-on EnvHaven workspace by asking its coding agent: one request installs it, puts it on an HTTPS address and locks it down. What the agent takes care of, and the manual route.
Updated November 23, 2026
Running your own Actual Budget usually means a list of server chores: a machine that stays on, Docker or a runtime, a reverse proxy with certificates, a domain, and the settings that make Actual Budget behave behind all of it. On an EnvHaven workspace you skip the list. You ask the coding agent, and it does the work while you watch.
Just ask your agent
Open a Hobby workspace, tap Launch to start any coding agent (Claude Code, Codex, OpenCode or another), and ask it:
Set up Actual Budget on this workspace and give me the link. Follow https://envhaven.com/self-host/actual-budget.md
Then open the link it sends and create your Actual Budget account straight away, before anyone else finds the address. That is the whole request: the address in it is this page’s Markdown copy, and the agent follows the instructions for it further down, with every setting Actual Budget’s docs require.
Or keep it private with Tailscale
The preview URL puts Actual Budget on the public internet, which suits something other people need to reach. For an app only you and your household use, your tailnet is the better home: Tailscale gives Actual Budget an HTTPS address that only your own devices, signed in to your Tailscale account, can open. Save a Tailscale auth key in the workspace’s Vars pane as TS_AUTHKEY, and ask the agent:
Set up Actual Budget on my tailnet instead of the preview URL. Follow https://envhaven.com/self-host/actual-budget.md and https://envhaven.com/guides/self-host-privately-with-tailscale.md
- On Plus and Pro, a Tailscale container runs beside Actual Budget, so it keeps its private address through workspace restarts and updates, and every app you set up this way gets an address of its own.
- On Hobby, Tailscale runs in the workspace beside Actual Budget; after a restart or an update, ask the agent to start both again.
- Anything other services have to reach, such as a webhook, still needs a public address. Keep self-hosted apps private with Tailscale covers both, and what Tailscale’s free plan includes.
| At a glance | |
|---|---|
| What it is | Home, money and everyday life |
| License | MIT |
| Runs as | Docker (actualbudget/actual-server) or a native install |
| Memory | Not documented |
| Plan that fits | Hobby or larger |
| Web port | 5006 |
| Documentation | actualbudget.org/docs/install/docker |
What your agent takes care of
- Installing it. Actual Budget runs from the official image,
actualbudget/actual-server, with its data in folders under~/apps/actual-budget, or without Docker on Hobby. - Putting it on an HTTPS address. The workspace’s preview URL serves it, and your own domain can too.
- Locking it down first. What Actual Budget’s docs say to set before it faces the internet, below.
- Telling you what to back up: /data in the container (ACTUAL_DATA_DIR), /data/server-files/account.sqlite and /data/user-files (budget files) (docs).
The settings it needs behind a proxy
- A reverse proxy with SSL in front (
ACTUAL_HTTPS_KEYandACTUAL_HTTPS_CERTonly when Actual serves TLS itself): The docs say to hide a public instance behind a reverse proxy that terminates SSL. (docs) ACTUAL_TRUSTED_PROXIES(config.json: trustedProxies): Proxy addresses removed from the forwarded client IP list so rate limiting sees the real client; the default covers private ranges only. (docs)ACTUAL_TRUSTED_AUTH_PROXIES(config.json: trustedAuthProxies): Clients allowed to authenticate with HTTP headers; defaults to the trusted proxies setting. (docs)ACTUAL_HOSTNAME(config.json: hostname): The interface the server binds to (default all interfaces), not the public host name. (docs)ACTUAL_PORT(config.json: port): Listening port, default 5006. (docs)
Before it faces the internet
- The first run asks you to set the server password, so set it before the address is shared. (docs)
- Serve it behind a reverse proxy with SSL when exposed to the internet. (docs)
- Optional end-to-end encryption keeps budget data unreadable to the server. (docs)
- The header login method trusts a header and is flagged as risky if misconfigured. (docs)
- Bank sync tokens are not covered by end-to-end encryption and the server operator can read them. (docs)
Things to ask next
Everything after the install is one more sentence to the agent. Some that come up:
- “Import last year’s data from the CSV I dropped into the workspace.”
- “Set up a second account for the household.”
- “Move Actual Budget to app.example.com.” Add the domain on the dashboard’s Domains page with a CNAME to
domains.envhaven.app, and the agent changes Actual Budget’s address settings to match. - “Update Actual Budget to the latest release.” It pulls the new image and recreates the container, data kept.
Instructions for the agent
The agent reads these from the page’s Markdown copy. They also work pasted on their own, if you would rather give them in your own words.
Set up Actual Budget on this workspace and serve it at my preview URL.
- Where Docker has a daemon (Plus and Pro), use Docker Compose with the official image, actualbudget/actual-server, starting from the docs' compose file: https://github.com/actualbudget/actual/blob/master/packages/sync-server/docker-compose.yml. If `docker compose` is missing, install the Compose plugin into ~/.docker/cli-plugins first.
- Keep the compose file in ~/apps/actual-budget and all of its data in folders there (bind mounts, not named volumes), with restart: unless-stopped on every service.
- This server has no firewall, so publish no port on its public IP, and drop host networking and privileged mode from the docs' compose file. Docker runs on the host: connect this workspace to the compose network and relay my preview URL's port to Actual Budget's port 5006.
- Without Docker (on Hobby, where Docker has no daemon), install it as its docs describe, with `npm install -g @actual-app/sync-server`, then `actual-server` (Node.js v22 or higher), into ~/apps/actual-budget with its data, so it survives workspace updates; global installs and system paths do not. Run it in a tmux window named actual-budget, listening on 0.0.0.0:5006, and point my preview URL at port 5006.
- The preview URL terminates HTTPS in front of Actual Budget: serve plain HTTP on its port, and trust the forwarded headers the relay passes on.
- Set what "The settings it needs behind a proxy" lists on https://envhaven.com/self-host/actual-budget.md for the preview URL, as Actual Budget's docs describe for running behind a proxy; skip any that apply only when Actual Budget serves HTTPS itself.
- Before the preview URL serves it, apply what "Before it faces the internet" lists on https://envhaven.com/self-host/actual-budget.md.
- When it answers at the preview URL, send me the link and tell me what to back up.
- If I asked for my tailnet instead of the preview URL, set Actual Budget up the same way but follow https://envhaven.com/guides/self-host-privately-with-tailscale.md for the network: no preview URL, no relay.
What to know
- In Docker, Actual Budget’s containers keep running when the workspace restarts or updates. The relay from the preview URL is a process in the workspace, so after a restart or an update, ask the agent to restore it.
- Without Docker, Actual Budget runs as a process in the workspace, so after a restart or an update, ask the agent to start it again.
- HTTPS is needed for the full feature set unless the server is only reached through localhost or a provider that handles HTTPS. (docs)
- Default upload cap for sync files is 20 MB, well under a 100 MB tunnel body limit. (docs)
- Default cap for encrypted sync files is 50 MB; raise ACTUAL_UPLOAD_SYNC_ENCRYPTED_FILE_SYNC_SIZE_LIMIT_MB only if the tunnel allows larger bodies. (docs)
- Bank sync through a private SimpleFIN bridge is blocked by default; public bridges work without extra settings. (docs)
- An official iOS app is in beta and connects to your own server; the web version is the way to reach it from other devices. (docs)
- The web version is an installable web app that works on any device. (docs)
- A workspace has one preview URL and one custom domain, both serving the same port, so it puts one app on a public address at a time.
Without a workspace
The manual route, on a server you run:
- Rent a Linux VPS, secure SSH, and create a user for the app.
- Install Docker and write a compose file from the official image.
- Put a reverse proxy in front (Caddy, nginx or Traefik), get certificates, and point a domain at the server.
- Set the proxy settings listed above for that domain, and pass WebSocket upgrades through the proxy if the app uses them.
- Keep the firewall closed except for the proxy, and schedule backups and updates.
Actual Budget’s own documentation covers each step for its install methods.
Sources
Facts about Actual Budget come from its own documentation, checked on 2026-11-23: