Open source Β· AGPLv3

Self-hosted accounting software

Own your books, not just rent them. LineLedger is open source double-entry accounting that runs on your own server and nowhere else β€” free under the AGPLv3, installed with Docker in about five minutes.

Quick start

Up and running in five minutes

One prebuilt multi-arch image runs the app, the queue worker, and the scheduler alongside MySQL. Docker and Docker Compose are the only requirements β€” there is nothing to clone and nothing to build.

mkdir lineledger && cd lineledger
base=https://raw.githubusercontent.com/lineledger/lineledger/v1.4.4/docker
curl -fsSLO "$base/docker-compose.yml"
curl -fsSL  "$base/.env.example" -o .env
curl -fsSLO "$base/backup.sh"
curl -fsSLO "$base/restore.sh"
chmod +x backup.sh restore.sh

# Edit .env: set DB_PASSWORD, DB_ROOT_PASSWORD, APP_URL, and your mail settings,
# and add DB_QUEUE_RETRY_AFTER=3700 (the queue worker runs --timeout=120).
# Then generate the encryption key and paste it into .env as APP_KEY=...
docker compose run --rm --no-deps app php artisan key:generate --show

docker compose up -d

Then open http://localhost:8080 and register. The first user you create becomes the site admin and sets up the first organization. On boot the app container runs php artisan app:upgrade (migrations plus the release’s own upgrade steps), links storage, and generates the OAuth keys.

Set up mail before anyone else registers

While no mail server is set up, mail is written to the log instead of sent, and the first account — the site admin — gets in without verifying its address. Every account after it has to click a verification link before it can create an organization, so set mail up first: turn on two-factor authentication (the admin area requires it) and enter an SMTP server under /admin → Email, or point the MAIL_* settings in .env at a real mailer. For a trial run, start the bundled Mailpit with docker compose --profile mail up -d and set MAIL_HOST=mailpit and MAIL_PORT=1025; its inbox is at 127.0.0.1:8025.

APP_URL is the address it answers on

Set APP_URL to the address people actually visit, scheme included. The app refuses any other host name with 400 Bad Request and builds every link in its emails on APP_URL; list any other names it’s reached by in TRUSTED_HOSTS. Behind a reverse proxy, set TRUSTED_PROXIES to the address the proxy connects from (172.16.0.0/12 covers one on the same Docker host), publish the app on loopback with HTTP_PORT=127.0.0.1:8080, and have the proxy pass the original Host header through. Reached directly, leave TRUSTED_PROXIES empty.

Back up your .env

APP_KEY encrypts sessions and secrets, and PASSKEYS_USER_HANDLE_SECRET anchors every registered passkey. Losing either one is unrecoverable β€” no one, including us, can restore them for you. backup.sh copies .env alongside every backup for exactly this reason.

Upgrading

# 1. Back up the database, storage volume and .env into ./backups
./backup.sh

# 2. In .env, pin the release:  LINELEDGER_VERSION=1.4.4

# 3. Pull the new image; app:upgrade runs on boot
docker compose pull && docker compose up -d

# 4. Confirm, and prove the books still reconcile
docker compose exec app php artisan app:upgrade --verify

The app container runs app:upgrade on every boot, and the workers wait for it to become healthy. Step 4 is safe to repeat: with nothing left to migrate it just runs the integrity check. Pin LINELEDGER_VERSION to 1.4.4 for this exact release, or to 1.4 to follow its patch releases. Images are built for amd64 and arm64.

Coming from 1.2 or 1.3?

Go one minor release at a time: 1.2.x to 1.3.1, then 1.3.1 straight to the newest 1.4 release. Before you move to 1.4, set TRUSTED_PROXIES if a reverse proxy, load balancer or CDN sits in front of the app, and TRUSTED_HOSTS for any name besides APP_URL (see above). A LINELEDGER_VERSION=1.3 pin never moves to 1.4, so change it. On Forge or bare metal, check .env for an unclosed double quote, which 1.4 refuses to start with. 1.4.0 carries nine migrations and two data repairs, and 1.4.4 one more, so take a backup first: it is the only way back to 1.3.1. The compose file and backup scripts only gained comments, so there is nothing new to download. 1.4.0 also closes gaps that let a tampered request reach another organization’s accounts, and 1.4.2 tightens what Custom members can see, so don’t sit on it. The upgrade guide has every step.

Already on 1.4.0?

1.4.4 is a patch: Together with 1.4.1 to 1.4.3, it keeps QuickBooks sub-accounts under their parents on import, holds payment and tax pickers to the accounts and codes they offer, opens a next channel for release candidates, makes actions on an open page work on a real hostname, extends a Custom member’s section limits to combined reports, search, report emails and attachments, and updates Symfony, Laravel and phpseclib for security advisories. It adds one migration, which moves accounts off mislabelled Canadian tax-form codes, and no backfills or configuration changes; the compose file and backup scripts are unchanged. Run ./backup.sh, set LINELEDGER_VERSION=1.4.4 (a 1.4 pin moves by itself), pull, and restart. Keep that backup: the migration can’t be undone, so restoring it is the way back. An API integration that records a receipt or bill payment on anything but a bank, credit card or Undeposited Funds account now gets a 422.

Release channels

Every install follows the stable channel unless you choose otherwise: final releases only. Pin an exact release (1.4.4), its patch line (1.4), or latest for the newest final release. The next channel adds release candidates — the coming minor release, tested but not yet run by many installs. Join it with LINELEDGER_VERSION=next.

The current candidate is 1.5.0-rc.2, published November 17, 2026, previewing users and roles. It is not the release this site describes: everything else on these pages is 1.4.4.

Release candidates never move latest or 1.4. Run next only on an install you can restore: back up before each candidate and read its section of the upgrade guide, which says whether you can go back without restoring. On a Droplet running 1.4.4 or later, run lineledger channel next, then lineledger upgrade; on App Platform, ./deploy.sh --tag next; on Forge, deploy the next branch. The README’s release channels table has the rest.

Backups

./backup.sh
# or write them elsewhere:  BACKUP_DIR=/mnt/backups ./backup.sh

# Restore from a backup pair:
./restore.sh backups/lineledger-db-<ts>.sql.gz backups/lineledger-storage-<ts>.tar.gz

# Unattended nightly database dumps (kept 14 days by default):
docker compose --profile backup up -d

backup.sh captures the database (with the audit-log triggers), the storage volume, and .env in one run. restore.sh puts them back and re-verifies the books. Two Docker volumes hold all your data, and docker compose down -v deletes both, so keep ./backups somewhere other than the machine it describes.

Make it yours

A handful of settings in .env decide how the install presents itself, and none of them need a fork:

  • APP_NAME, BRAND_LOGO and BRAND_FOOTER_OWNER put your own name and mark on the sign-in, registration and onboarding screens. The AGPLv3 still asks you to keep the source offer visible β€” the app ships a note about section 13 next to the setting.
  • APP_LOCALE sets the default language, English or French. Each person, organization and customer can override it.
  • APP_REGION (CA, US or GB) decides which legal documents the footer points at. It does not limit the books: one install holds Canadian, US and UK organizations side by side.
  • SUPPORT_ENABLED=false hides the in-app support desk when your support lives somewhere else. Tickets already raised stay readable.

Other ways to run it

The Docker quick start runs anywhere Docker does. The app repository documents three more routes:

A DigitalOcean Droplet, in one click. Create an Ubuntu 24.04 Droplet with at least 2 GB of memory and paste this under Advanced options → Add initialization scripts:

#!/bin/bash
curl -fsSL https://raw.githubusercontent.com/lineledger/lineledger/v1.4.4/docker/digitalocean/droplet/install.sh | bash

A few minutes after it boots, open http://<droplet-ip> and register: the first account becomes the site admin and gets in before email is set up. Turn on two-factor authentication and set up email under Admin → Email, then point a domain at the Droplet and run lineledger domain books.example.com over SSH for automatic HTTPS. Later, lineledger upgrade backs up and moves to the newest release on its channel, never backwards on its own. Droplet guide

DigitalOcean App Platform. One script creates a managed MySQL database, Spaces storage and the app inside your own DigitalOcean account, and generates every secret: no server to patch. App Platform guide

Laravel Forge or bare metal. PHP 8.5 and MySQL 8 on a host you already run. Forge guide

Why it works this way

Running it yourself isn’t a compromise we ask you to accept β€” it’s the point.

πŸ”

Read every line

LineLedger is open source under the GNU AGPLv3. You β€” or your accountant β€” can audit exactly how every balance, tax figure, and report is calculated. No black box.

πŸ”

Your data, your server

The books run on infrastructure you control. Your ledger never reaches us, because there is nowhere on our side for it to go β€” and the application ships no third-party analytics.

πŸ’Έ

No bill, no ratchet

You owe us nothing β€” ever. No per-seat fees, no annual price increases, no tier to climb to unlock a feature, and no paid edition held back from the one you downloaded.

πŸ“¦

Never locked in

Export any company to a portable ZIP and move it between your own machines whenever you like. The audit chain stays verifiable across the move.

Bring your history with you

Once it’s running, import your QuickBooks chart of accounts and replay your full general-ledger history β€” accounts mapped, contacts linked, no fresh start required.

Common questions

Is LineLedger really free?
Yes. LineLedger is open source under the GNU AGPLv3 and you run it yourself, so there is nothing to pay us β€” no plans, no seats, no paid edition. Self-hosting is not a cheaper option alongside a subscription; it is the only way LineLedger runs.
What do I need to run it?
Docker and Docker Compose, and a machine to put them on. The prebuilt multi-arch image (amd64 and arm64) runs the web app, the queue worker, and the scheduler as three containers alongside MySQL. A small VPS is plenty for a single business; a spare box on your own network works just as well. No server yet? A DigitalOcean Droplet installs the same stack from a one-line initialization script, MySQL included, with every secret generated for you.
What does the server cost?
That is the only bill involved, and it comes from your hosting provider rather than from us. A small VPS runs about $10–20 USD a month, and hardware you already own costs nothing extra.
How do upgrades work?
Back up with ./backup.sh, set LINELEDGER_VERSION in your .env to the new release, then run docker compose pull && docker compose up -d. On boot the app container runs php artisan app:upgrade (pending migrations plus any data steps the release ships), and the worker and scheduler wait until it is healthy. Finish with docker compose exec app php artisan app:upgrade --verify, which checks that the books still reconcile. Go one release at a time, and read that release's section in UPGRADING.md first.
How do I back it up?
Run ./backup.sh. It writes a database dump (with the audit-log triggers), an archive of the storage volume, and a copy of your .env into ./backups, and prints the matching ./restore.sh command. For unattended nightly database dumps, start the backup profile with docker compose --profile backup up -d. Copy ./backups off the machine either way.
What happens if you stop working on it?
Your install keeps running. It does not phone home, there is no licence to expire, and nothing about your books depends on us still being here. The AGPLv3 gives you the source, the right to modify it, and the right to hand it to someone else to maintain.