Apps and websites · Step by step

Your expense bot, for free.

You send a photo of a receipt to a Telegram chat and the expense is logged for you: in Actual Budget, a free, open-source budgeting app, or in a Google Sheet that builds itself, with its summary and its charts. The receipt is read by a program inside your own server, not by an AI company. You don't have to write any code: everything here is copy and paste.

free and open source
no coding
your server reads the receipt
you confirm before it saves
The Telegram bot after reading a pharmacy receipt photo: Farmacia, 21.49 euros, November 7, category Health, with the buttons Save, Amount, Store, Date, Category and Discard
You send the photo and it shows what it read.
The bot confirms: logged in Actual, Farmacia, minus 21.49 euros, November 7, 2026, Health
You tap Save and it's logged in Actual.
The Resumen (summary) tab of the Google Sheet: 1,160.58 euros spent so far, 289 left to spend, each category's budget with its bar, Transporte (transportation) in red at 45 euros over, and a donut chart of where the money goes
Or in Google Sheets: the sheet builds itself, with your monthly summary and its charts.

The receipts and expenses in the screenshots are made up.

The bot replies in Spanish, reads Spanish receipts and builds the sheet in Spanish, so the screenshots are in Spanish.

01

Pick your path

start here

Two questions and the guide shows only your steps. Everything else is the same for everyone.

⌄

Where do you want your expenses logged?

Do you have a server?

A server is a computer that's always on, on the internet. The bot lives there, next to Actual, so it can answer you at any time, even with your computer off.

If your Actual is on PikaPods, see For the curious.

02

Your server, from scratch

Six steps. At the end you'll have Actual running on your own server.

⌄

I recommend OVHcloud, a French server company with a site and support in English. Their VPS-1 (2 processors and 4 GB of memory) costs €4.49 a month plus VAT, about €5.43 in Spain, with no commitment and no setup fee. That's plenty for Actual and the bot.

WherePrice per monthWhat you should know
OVHcloud VPS-1€4.49 + VAT (about €5.43)The one this guide follows. Paying a year up front brings it down to €3.81 + VAT. It also has a data center in Madrid, for €1 more a month.
Hetzner CX23€5.99 + VAT (about €7.25)It's the one I use. Since June 2026 it has limited new servers because of a parts shortage, and in November the small ones show as unavailable. If it has them again when you read this, it works too, although steps 1 to 3 are different.
IONOS VPS S+€2 + VAT for the first 3 months, then €5 + VAT, plus a €10 setup feeIt has a data center in Spain. It's smaller (1 processor and 2 GB), but that's enough. Its steps are similar, but I don't cover them here.

Prices checked on November 14, 2026 on each company's site (OVHcloud, in its public catalog for Spain). They may change.

  1. Order your server

    Go to ovhcloud.com/en-ie/vps and order the VPS-1. When you configure it, choose:

    • Term: month to month, no commitment. The 12-month one is cheaper, but it locks you in for a year.
    • Location: one in Europe (France or Germany, for example).
    • Operating system: Ubuntu 24.04.

    Then it asks you to create your OVHcloud account and pay. It's normal for a new account to be asked for a bit more information to verify who you are.

    It worked if you get an email from OVHcloud saying your VPS is ready.

  2. Check the delivery email

    That email has the three things you need to log in:

    • Your server's IP: four numbers separated by dots, like 51.38.12.34.
    • The user: ubuntu.
    • A secure link to see the temporary password.

    It worked if you've written down the IP and the temporary password.

  3. Log in to your server

    Open your computer's terminal:

    • Mac: press Cmd + Space, type Terminal and press Enter.
    • Windows: press the Windows key, type PowerShell and open it.

    Type this, replacing YOUR-IP with your server's IP:

    On your computer
    ssh ubuntu@YOUR-IP

    The first time it asks whether you trust the server (Are you sure you want to continue connecting): type yes and press Enter. Then paste the temporary password (nothing shows while you type, that's normal). It makes you change it: enter the temporary one again, then your new password twice, and it logs you out. Make it long (four random words, for example) and don't use it anywhere else: your server is on the internet and bots try passwords all day long. Log back in with the same command and your new password.

    Once inside, paste this to get admin rights for everything that follows (if it asks for a password, it's your new one):

    On the server
    sudo -i

    From here on, everything you paste runs on the server, not on your computer. Every time you log back in, start with sudo -i.

    On Windows, if it says ssh isn't recognized, open Settings, search for Optional features and add OpenSSH Client.

    It worked if the line where you type ends in #, like root@vps-1234abcd:~#.

  4. Install Docker

    Docker is what runs Actual and the bot, each in its own box. This installs it with Docker's official installer:

    On the server
    curl -fsSL https://get.docker.com -o get-docker.sh
    sh get-docker.sh
    docker compose version

    It worked if the last line says Docker Compose version and a number.

  5. Set up Actual, with a padlock (https)

    To open Actual from your browser and your phone you need an address with a padlock. This starts Actual and Caddy, a program that gets the padlock on its own. The address comes from sslip.io, a free service that turns your server's IP into a name. Paste all of it:

    On the server
    mkdir -p ~/actual && cd ~/actual
    IP=$(hostname -I | awk '{print $1}')
    cat > Caddyfile <<EOF
    actual.$IP.sslip.io {
      encode gzip zstd
      reverse_proxy actual_server:5006
    }
    EOF
    cat > docker-compose.yml <<'EOF'
    services:
      actual_server:
        image: actualbudget/actual-server:latest
        container_name: actual_server
        restart: unless-stopped
        volumes:
          - ./actual-data:/data
      caddy:
        image: caddy:alpine
        container_name: caddy
        restart: unless-stopped
        ports:
          - '80:80'
          - '443:443'
        volumes:
          - ./Caddyfile:/etc/caddy/Caddyfile:ro
          - ./caddy/data:/data
          - ./caddy/config:/config
    EOF
    docker compose up -d
    echo "Your Actual: https://actual.$IP.sslip.io"

    It worked if the last line gives you an address with your server's IP inside, like https://actual.51.38.12.34.sslip.io, and opening it in your browser shows Actual. The first time it can take a minute while it gets the padlock.

  6. Create your budget

    Open that address. It asks for a server password: make one up and write it down, because the bot needs it too. Then click the button to get started (Start budgeting). Click Add account (bottom left), then Create a local account, give it a name (for example Checking) and click Create.

    For your envelopes and your first month, see the Actual Budget guide.

    It worked if you see your account on the left. Write down its exact name: the bot needs it.

In the bot steps, your Actual details are these: ACTUAL_SERVER_URL=http://actual_server:5006 and ACTUAL_NETWORK=actual_default. OVHcloud bills the server every month until you cancel it, even when it's off.

03

Create your Telegram bot

for everyone

Two minutes, from your phone or your computer.

⌄
  1. Talk to BotFather

    BotFather is Telegram's official bot for creating bots. Open it at t.me/BotFather (it has the blue verified check), tap Start and type /newbot.

    It worked if it asks what your bot will be called.

  2. Give it a name and a username

    First the name, anything you like (for example My expenses). Then the username: 5 to 32 letters, numbers or underscores, and it has to end in bot, like myexpenses_ana_bot. If it's taken, try another.

    It worked if it congratulates you and gives you a link to your bot and a token.

  3. Save the token

    The token is a long line like 123456789:AAF…. Copy it and keep it somewhere safe: you need it in the next step.

    The token is your bot's key: whoever has it controls the bot. Don't share it or paste it in any chat. If it leaks, /revoke in BotFather gives you a new one: put it in .env and restart the bot, as in the Give your Telegram account access step.

    It worked if you have the token saved.

04

Start the bot

for everyone

You download it, give it your details and start it.

⌄
  1. Download it to your server

    The bot's code is free and lives on GitHub. In your server's terminal:

    On the server
    cd ~
    git clone https://github.com/MarBenitez/actual-receipt-bot.git
    cd actual-receipt-bot
    cp .env.example .env

    If it says git doesn't exist, install it with apt-get update && apt-get install -y git and paste it again.

    It worked if there's no error and you're in the actual-receipt-bot folder.

  2. Enter your details

    Your details go in a file called .env. Open it with the terminal's editor:

    On the server
    nano .env

    Move with the arrow keys and type each detail right after the =, with nothing else on that line. Lines starting with # are notes: leave them as they are.

    LineWhat goes there
    TELEGRAM_TOKENThe token from BotFather.
    ALLOWED_USER_IDSLeave it empty for now.
    ACTUAL_SERVER_URLFrom scratch: http://actual_server:5006. On your server: http://NAME:5006.
    ACTUAL_PASSWORDThe password you use to log in to Actual, in single quotes: 'your password'.
    ACTUAL_SYNC_IDIn Actual: Settings (bottom left), Show advanced settings and copy the Sync ID.
    ACTUAL_ACCOUNTThe exact name of your account, for example Checking.
    ACTUAL_BUDGET_PASSWORDOnly if you turned on end-to-end encryption in Actual. Otherwise, empty.
    ACTUAL_NETWORKFrom scratch: actual_default. On your server: the network you wrote down.
    DESTINO, SHEETS_URL and SHEETS_SECRETLeave them empty: they're for Google Sheets.

    To save: Ctrl + O and then Enter. To exit: Ctrl + X. It's Ctrl on the Mac too.

    It worked if you see your details when you open it again with nano .env.

  3. Start it

    The first time it takes a few minutes, because it builds its box with the receipt reader inside:

    On the server
    docker compose up -d --build
    docker compose logs -f

    The second line shows you what the bot is doing. To stop watching, Ctrl + C: the bot keeps running.

    It worked if you see Conectado a Actual. Bot escuchando. (Spanish for "Connected to Actual. Bot listening.").

05

Give your Telegram account access

for everyone

So it only answers you.

⌄
  1. Message it

    Open your bot with the link BotFather gave you, tap Start and send it anything.

    It worked if it replies Este bot es privado. Tu número de Telegram es ("This bot is private. Your Telegram number is") and a number. Copy it.

  2. Add yourself to the list

    On the server, open nano .env again and put that number in ALLOWED_USER_IDS. If you want someone else to use it, add their numbers separated by commas. Save, exit and restart it:

    On the server
    docker compose up -d

    It worked if it replies to /start with Mándame la foto de un ticket y lo apunto en Actual ("Send me a receipt photo and I'll log it in Actual").

06

Use it

for everyone

Photo, check and save.

⌄
  1. Send it the receipt photo

    As a photo, not as a file. In a few seconds it replies with the store, the amount, the date and the category (the first time at each store it shows sin categoría, "no category", and you pick it).

    Good light and a flat receipt work best. If it can't find the total, it asks you. If it isn't sure about the date, it tells you.

  2. Check and save

    • ✅ Guardar (Save): logs it in Actual. Nothing is logged until you tap it.
    • ✏️ Importe (Amount), 🏪 Comercio (Store) and 📅 Fecha (Date): it asks you for the right value and changes it.
    • 🏷️ Categoría (Category): shows your Actual categories so you can pick one.
    • ✖️ Descartar (Discard): drops it without logging anything.

    It worked if the expense shows up in your account in Actual, with the note Desde Telegram.

  3. Without a photo, too

    Type the amount and the place, for example 12.50 bar, and it logs it with today's date after you tap Save.

The bot is made in Spain, so it reads dates day first: when it asks for a date, 11/12 means December 11, not November 12. Write November 12 as 12/11, or with the year, 12/11/2026. "Today" is Madrid time.

The category it suggests is the last one you used with that store: the first time you pick it, and from then on it remembers. Categories are created and changed in Actual, and the bot sees them without a restart.

07

If something fails

Where to look and what happens most often.

⌄

Almost always, the bot itself says what's wrong. To see it:

On the server
cd ~/actual-receipt-bot
docker compose logs --tail 50
If you seeDo this
No encuentro la cuentaThe ACTUAL_ACCOUNT name doesn't match. The message lists the names that exist: copy yours exactly.
When you start it, an error saying the network could not be foundIt shows up right after you paste docker compose up, not in the logs. The ACTUAL_NETWORK network doesn't exist. Check it again (Yes, I have one path, step 2).
Falta TELEGRAM_TOKEN or Falta la variableA line in .env is empty. Open it with nano .env and fill it in.
The bot doesn't answer at allCheck with docker compose ps that it's running, and that the token is your bot's.
An Actual password errorCheck the password and that it's in single quotes, especially if it has $ or spaces.

Every time you change .env, restart it with docker compose up -d. To get the latest version of the bot:

On the server
cd ~/actual-receipt-bot
git pull
docker compose up -d --build
+

For the curious

Where the photo goes, how well it reads, what it costs and other bots.

⌄

Where the photo goes

It goes through Telegram (regular Telegram chats are stored on its servers) and reaches your server. There it's read by Tesseract, an open-source program that pulls the text out of an image, like when you copy the text from a photo on your phone. It isn't sent to any AI company. While it's being read, the photo sits in temporary files that are deleted when it's done. The bot keeps a copy of your budget in its box so it can log expenses, so put it on a server you trust, ideally the same one as Actual.

How well it reads

Measured with 8 made-up Spanish receipts, each in two simulated photos (made by computer, not with a camera):

PhotoTotal read right
Normal: good light and a flat receipt8 of 8
Hard: faded ink, wrinkles, tilted and dim4 of 8 (3 not read, 1 wrong)

A real receipt can do worse. That's why it always shows you what it read before saving.

What it costs

PiecePrice
Telegram and BotFather€0
The bot and Actual Budget€0, free code under the MIT license
The server€0 if you already have one. At OVHcloud, the VPS-1: €4.49 a month plus VAT, about €5.43 in Spain (more options in step 02)

To stop paying for the server you have to cancel it in your OVHcloud customer area: it's still billed while it's off. Before that, export your budget from Actual (how to make backups).

Keeping Actual up to date

Actual doesn't update itself. If you installed it with this guide, every so often log in to the server, paste sudo -i and then this:

On the server
cd ~/actual
docker compose pull
docker compose up -d

If your Actual is on PikaPods

The bot can log to your Actual on PikaPods, but it needs its own server that's always on. Follow the Not yet path skipping steps 5 and 6, and before starting the bot create its network with docker network create actual_default. In .env, ACTUAL_SERVER_URL is your pod's address (the one starting with https) and ACTUAL_PASSWORD, your Actual password.

Other bots on the same base

The Telegram part (receiving the photo, the buttons and only answering you) knows nothing about receipts or Actual. Change what it reads and where it saves it, and you get another bot: for example, one that logs your invoices in a spreadsheet. The code is on GitHub, under the MIT license: you can use it, change it and even sell it, as long as you keep the license notice.