# How I automated my bookkeeping with AI and replaced the work I outsourced to an admin assistant

> Source: <https://www.devas.life/how-i-automated-my-bookkeeping-with-ai-and-replaced-the-work-i-outsourced-to-an-admin-assistant/>
> Published: 2026-11-25 15:11:28+00:00

**Recommendation:** Route receipt attachments through the Apple Mail MCP because the Gmail MCP cannot download them, and keep credentials in the 1Password CLI instead of giving the agent your everyday browser session.
More in the playbook "Designing agent systems": <https://wpnews.pro/playbooks/agent-architecture>

[Japan](https://www.devas.life/tag/japan/)

# How I automated my bookkeeping with AI and replaced the work I outsourced to an admin assistant

Hey, what's up? It's [Takuya](https://x.com/craftzdog?ref=devas.life) here. I'm an indie developer based in Japan, and I make a living by developing and selling an app called [Inkdrop](https://www.inkdrop.app/?ref=devas.life) on my own.

Over the past 2–3 months, I've been automating my bookkeeping little by little. It turned out that AI can handle almost all of the work I used to outsource to an admin assistant, so I'd like to share how I set it up.

I run my business as a sole proprietor in Japan, and this is about automating my bookkeeping there. So a lot of it is specific to Japan, like the accounting service I use. But I think some parts can be useful wherever you are, so I'm sharing it in English, too.

## Why I hired an admin assistant in the first place

I don't run a company. I work as a sole proprietor, and I used to do all the bookkeeping by myself. But managing expenses and recording transactions had become a real burden. I didn't want to spend my time on it, so I tried various tricks, but I still couldn't keep up.

So I hired an admin assistant for about ¥10,000 a month. I asked them to handle this flow:

- Download receipts from various websites
- Read the receipts I scanned and rename the files following a naming format
- Upload them and record the transactions

I have no employees and no physical store, so there aren't that many documents to process. And since it's simple work, the volume was easy for an assistant to handle. I had documented everything I'd been doing on my own as a manual, so that anyone could do it by following it, and then handed it over.

Once the initial handover was done, the rest was easy. They actually had spare hours left over, which was a huge help. But those spare hours bugged me a bit, and I thought this kind of simple work could be done by AI. It saves money, too. So I gave it a try.

I mainly use Claude Code, so please read this with that in mind. I also saved each step as a skill so I can call it easily.

## Collecting and organizing receipts

First, receipts. They come in through 3 routes:

1. Scanned paper receipts
2. Websites

Let me walk you through each.

### I save email receipts with the Apple Mail MCP

Most email receipts come as PDF attachments. At first, I thought the Gmail MCP would do the job, but it turned out it can't download attachments. So I switched to the [Apple Mail MCP](https://github.com/patrickfreyer/apple-mail-mcp?ref=devas.life), which can save attachments to any path.

Some emails are receipts themselves, like Apple's "Your receipt from Apple." For those, I wrote a script that reads the email source and prints it to PDF with headless Chrome.

Both go straight into a designated folder.

### Claude reads Japanese receipts surprisingly well

I scan paper receipts with my iPhone and save them to a folder. When I let Claude Code read the scanned images, [Claude's vision](https://platform.claude.com/docs/en/build-with-claude/vision?ref=devas.life) picks up the date, the company name and the amount, even in Japanese. Then it renames each file in my format:

```
YYYYMMDD_CompanyName_Amount.pdf
```

So far, it hasn't misread a single one, and I'm amazed at how accurate it is. This alone took a lot off my plate.

### Downloading receipts from websites is the most painful part

This one can't be fully automated, because I have to log in to each site to download receipts.

I used to share account credentials with my assistant through [1Password](https://1password.com/?ref=devas.life). In the same way, I let the AI log in by passing the credentials safely through the [1Password CLI](https://1password.com/downloads/command-line?ref=devas.life).

But I don't let AI control my everyday Chrome. It holds a lot of personal information and login sessions, and if any of them leaked through a prompt injection or something, that would be a disaster.

Instead, I use a tool called [agweb](https://github.com/paul-nameless/agweb?ref=devas.life). It's a browser built for agents, in other words, a browser app made for automation. You can drive it with TypeScript scripts. I use it to log in, navigate the pages and download the receipts.

Right now, it supports Amazon and Adobe, as well as sites for utility bills, mobile and internet plans, and various subscriptions.

## I only step in on sites with bot protection

As I expected, there was a problem: it can't log in to sites protected against bots.

That can't be helped, so I do just those parts by hand every time, like solving a CAPTCHA or clicking a button. Filling in the forms is automated.

I asked Claude to get around the bot protection, but it refused (of course lol). So I fixed some of the scripts myself and tuned them, for example by adding waits (Yodobashi.com is one of them).

Also, 1Password asks me to authenticate every time a password is read, which is annoying. So I use [op-cache](https://github.com/craftzdog/op-cache?ref=devas.life), a wrapper tool I made. It caches the credentials for a while, so I don't get asked for Touch ID again and again while a script runs.

## Don't let AI drive the browser every time. Turn it into a script

The key is not to let AI operate the browser every time. Let it do the job a few times as a trial, then turn that into a script. From then on, it just runs the script.

This saves tokens, too. And since the AI checks the results, it can tell whether the run worked, and when a run fails because a site changed, it fixes the script on its own.

## For receipts in USD, I take the yen amount from the card statement

I use [Money Forward Cloud Tax Return (マネーフォワード クラウド確定申告)](https://biz.moneyforward.com/tax_return/?ref=devas.life) to keep my books. Receipts from overseas services are usually in USD, not yen, so they don't tell me how much I actually paid.

In that case, I check the actual amount charged to my credit card on Money Forward and put it in the file name. This is easy once you connect the [Money Forward Cloud Accounting MCP server](https://biz.moneyforward.com/support/account/guide/others/ot10.html?ref=devas.life).

If the charge hasn't shown up on the statement yet, I leave the amount as `UNKNOWN` and handle it next time.

## The AI picks account titles from my past journal entries

Next, journal entries and attaching receipts as supporting documents. I record the entries through the Money Forward MCP as well. It's pretty well made, and you can set things like the tax category properly.

I automate the choice of account titles in 2 ways:

1. Auto-journal rules on Money Forward
2. A CSV file managed with git

The CSV keeps a history of which account titles I used for past entries. If an item matches, the AI follows that rule. If a new item shows up, it asks me. Once I decide, a row is added to the CSV, so it won't ask me again next time.

Still, I was nervous at first, so I had it show a preview of everything and pointed out anything wrong one by one.

For attaching the receipts, I use the [Money Forward Cloud Box API](https://biz.moneyforward.com/support/box/news/new-feature/20251128.html?ref=devas.life). It's only available on request, though, so I won't go into details here.

## I record Stripe revenue once a month in bulk

All the app's revenue is paid out to my bank account through [Stripe](https://stripe.com/?ref=devas.life). I aggregate the balance transactions through the [Stripe MCP server](https://docs.stripe.com/mcp?ref=devas.life) and record accounts receivable and sales in bulk. The breakdown includes the taxes and fees.

Then, to make sure the balance adds up, I check it against the accounts receivable subsidiary ledger for any gaps.

## Everything except logging in to websites is mostly automated

So, apart from the logins for downloading receipts from websites, I'd say it's mostly automated now.

The more journal entries pile up, the more accurately the AI can pick account titles, so the accuracy should keep getting better.

That's it! I hope it's helpful for automating your own bookkeeping :)
