Self-hosted · Open source · Any brand

What does your vehicle really cost you?

AutoLedger adds up everything a vehicle costs, to the cent: fuel and electricity, financing, depreciation, tires, tolls, maintenance and insurance. Electric, hybrid or combustion, on your own server.

  • No telemetry, your data stays with you
  • Installable PWA, works offline
  • Go, Vue 3 and PostgreSQL
TCO dashboard of a petrol city car: total cost, full cost per km, fuel and tolls, monthly trend
Quick add of a fill-up on a phone

Features

One ledger, every cost

One cost ledger feeds every figure you see, so the cost per km on the dashboard is the sum of what you actually paid.

A full TCO engine

Cash purchase, loan or lease, resale value and the real cost per km, net of carpooling revenue and tire wear.

Bring your data your way

Add data by hand, from your phone, by CSV, through the API or automatically with Home Assistant and TeslaMate.

  • Offline PWA
  • CSV import
  • Ingestion API
  • OBD2 logger
  • Home Assistant
  • TeslaMate

Fuel and electricity

Fill-ups and charging sessions in one place, with flat or time-of-use tariffs applied to each session.

Fleet and comparison

Several vehicles in one account, a fleet dashboard, and electric vs combustion scenarios built from your own data.

Reminders and documents

Reminders by date or mileage, sent to Discord, Telegram, Gotify or a webhook. Invoices stay on your server.

Private and secure

Local accounts or OIDC single sign-on, encrypted stored credentials, rate limiting and security headers.

  • Tires by axle
  • Carpooling
  • Tolls and mileage allowance report
  • Battery health
  • Reminder templates
  • Scheduled backups

Data sources

Your data, wherever it comes from

Enter it by hand, or let it flow in automatically. AutoLedger is not tied to any brand.

TeslaMate sync

For a Tesla already logged by TeslaMate: connect your TeslaMateApi and AutoLedger imports the odometer, trips and charges. No Home Assistant needed.

TeslaMate setup

And also

Assistants

Ask your assistant what your car costs

Turn on the MCP endpoint and Claude, Cursor or any MCP client can answer questions about your costs, from your own server.

  • Read-only. Nothing an assistant can call changes your account.
  • You choose the vehicles it can read, all or only some, on a consent page you approve.
  • VINs, plates, GPS positions and documents are never served.
  • See what it did. The account page lists the last 50 calls of each access, and one click cuts it off.

Connect an assistant How the authorization works

The consent page: what the assistant can do, and the vehicles you let it read
Household fleet comparing an electric car and a petrol car

Screens

Clear on a desk, quick in a pocket

  • Compare every vehicle of the household on the same real cost per distance.
  • Add a fill-up in a few taps from your phone, even without a network: entries are queued and sent later.
  • See what is missing: a completeness score tells you which data would sharpen the result.

Why AutoLedger

How it compares

Comparison of AutoLedger with a spreadsheet, a paid service and a manufacturer app
CriterionAutoLedgerSpreadsheetPaid SaaSManufacturer app
Self-hosted, privateYesYesNoNo
Any brand and powertrainYesManualOften one powertrainOne brand
Financing, depreciation, tires, tollsYesManualEnergy onlyNo
Documents and remindersYesNoLimitedNo

Quickstart

Up and running in minutes

Multi-architecture image (amd64 and arm64) with a bundled PostgreSQL.

bash
$ mkdir autoledger && cd autoledger
$ curl -fsSLO https://raw.githubusercontent.com/Rem7474/AutoLedger/main/docker-compose.yml
$ docker compose up -d   # then open http://localhost:8080

Open it

Go to http://localhost:8080, create your account and add your first vehicle.

Your own settings

Optional: copy .env.example to .env to set your own passwords, SSO or time zone.

In production

Put it behind a reverse proxy for TLS. Backups, restore and upgrades are covered in the README.