Set up your company's books
When you start your company’s real books in aggountant, the agent sets up
the company home with you, saves the company’s basic details and records the
opening balances. Together you also write down where your receipts and bank
statements come from and what is left waiting. The agent uses the
aggountant-init skill for this. You do the setup once, and an unfinished
setup can be continued later: the agent looks in the home for what is
already done and does not ask for it again.
Before you start
Osio nimeltä “Before you start”- You have installed aggountant and its skills.
- You have done the practice month or otherwise know how working with the agent goes.
- You have the company’s official name, Business ID (Y-tunnus) and fiscal year at hand, preferably from the trade register extract (kaupparekisteriote).
- If the company is moving from another bookkeeping program, you have the old system’s list of accounts and its balance list (balance sheet) for the last day the old system covers. Move your books from another program says what else to export from the old program and how. Pick a month boundary for the move: if you move in the middle of a month, the old system’s part of that month shows in the first month’s result.
How to do it
Osio nimeltä “How to do it”-
Ask the agent to begin.
Let’s set up Esimerkki Oy’s books in aggountant. The home goes in ~/books/esimerkki-oy.
-
The agent sets up the home. It creates the directory, the voucher store, the default chart of accounts (
fi-general-2026, 98 accounts) and a.gitignorefile. The agent recommends making the home a git repository and setting it as the default home, so that commands find it without a path. The company home: what is stored where explains what is stored in the home and why git is not a backup. -
The agent shows a readiness checklist and asks for the material in one go. The checklist has seven items and shows which are ready, which are missing and which do not apply to your company: identity details, fiscal year, cutover date, source coverage (bank accounts, where receipts come from, open items, company costs you paid personally and private property used for the business), account mapping and opening balances (only when moving from another program), reconciliations and the first month’s close. From what is missing, the agent puts together one source request tailored to your company: it names your bank accounts and periods, asks only for what applies to your company, and says why it needs each item. For example, it asks for the tax account statements only if the balance sheet has a tax account balance. The request is noted in the home’s
TODO.md, and when you continue later the agent shows the checklist again and asks only for what is still missing. -
Give the basic details. The agent asks for the company’s official name, Business ID, fiscal year and the date the aggountant books start from. It saves your answers with their sources in the company knowledge store and relies on them in its later work, so take the answers from the trade register extract or a report from the old system rather than from memory. If the fiscal year is not the calendar year, the agent also records in the books, before the first voucher, the fiscal year that the first voucher falls in. Later fiscal years follow on their own.
-
Check and approve the opening balances. A new company has no opening balances, and its first transaction is usually the share capital payment, as in the practice month. For a company that comes from another system, the agent records the old system’s balances as one ordinary voucher and attaches the balance list to it. The books use aggountant’s default chart of accounts, so the agent maps the old system’s accounts onto it and saves the mapping in the home. Several old accounts may merge into one. The agent tells you which distinctions are lost that way, and the mapping file shows where each balance came from. Before you approve, check:
- Every balance matches the balance list, and the voucher balances.
- The voucher is dated the old system’s last day. If it is dated the first day of the new books, the whole earlier result shows up as the first month’s result.
What the voucher holds depends on when the company moves:
- When the company moves in the middle of a fiscal year, the voucher falls in the same fiscal year as the new transactions. It holds the year’s income and expense accounts as well as the balance-sheet accounts, so the result for the year so far carries on correctly.
- When the company moves at the turn of a fiscal year, the voucher is dated the last day of the previous fiscal year. If the old system covers 2025 and aggountant starts on 1 January 2026, that day is 31 December 2025. The voucher holds only balance-sheet accounts, because the previous year’s result has been transferred to equity. aggountant uses the voucher as the opening balances of the new fiscal year and does not require the old system’s year to be closed.
- If the new fiscal year does not begin on 1 January, the opening balances are, as an exception, dated the first day of that fiscal year, because the books have no fiscal year before it. At the start of a fiscal year the balances contain only balance-sheet accounts, so this does not move any result.
-
Tell the agent about open matters that the balance list does not show. The agent asks whether company bills have been paid from your own account, whether the company owes anything on its tax account or has a payment arrangement, and whether there are open sales or purchase invoices. If the tax account has a balance or a payment arrangement, the agent asks for all of OmaVero’s transaction statements for the year of the move.
-
Describe where the material comes from. Together with you, the agent writes an
AGENTS.mdfile at the root of the home, where you say in your own words:- where receipts and invoices arrive (email, cloud folder, local folder, the person responsible)
- where drafts of expense and travel claims are kept
- where the mileage log (ajopäiväkirja) is kept
- where processed original material is archived, and when it may be moved away from its source
- which folders of the home belong in git and which do not.
Without this file the agent has to ask every time or guess. Do not put passwords, credentials or keys in the file.
-
The agent writes a
TODO.mdfile at the root of the home, where it gathers what is left waiting: what is expected from others (for example the receipt for a registration fee the founder paid from their own account), which months are open and what closing them still needs, and deadlines (for example the VAT return and the first fiscal year’s financial statements). Check that the list matches your own picture. The agent reads the file at the start of every session and updates it when an item is settled, as The home’s TODO.md describes. -
The agent makes a report for the first month. Check the figures listed under Done when in it before you record the month’s transactions.
Commands the agent runs
aggountant --home ~/books/esimerkki-oy initaggountant config pathaggountant config showaggountant knowledge company listaggountant fiscal-year listaggountant voucher list --posting-from 2026-02-28 --posting-to 2026-03-31aggountant period show --period 2026-03aggountant chart listaggountant knowledge company add < fact.jsonaggountant fiscal-year define --start 2026-07-01 --end 2027-06-30aggountant voucher draft < opening-balances.jsonaggountant voucher validate < opening-balances-seal.jsonaggountant voucher seal < opening-balances-seal.jsonaggountant report statements --period 2026-03 --company "Esimerkki Oy" \ --format html --output esimerkki-2026-03.html \ --history-start 2026-03-01 --limitation "Opening balances from the previous system"The default home is set in the configuration file whose location
config path prints. The file is JSON: {"home": "/path/to/home"}.
fiscal-year define is run only if the fiscal year is not the calendar
year.
knowledge company list, fiscal-year list, voucher list and
period show only read. From them and the files in the home, the agent
builds the readiness checklist at the start of every session.
Done when
Osio nimeltä “Done when”aggountant config showshows your company’s home.- If the company moved from another program, the first month’s report, before any new transactions, shows a result of zero, a balance sheet that matches the old system’s report and a bank account balance that matches the bank statement.
- There is an
AGENTS.mdat the root of the home that names the sources of your material, and aTODO.mdthat says what is waiting. - Every item on the agent’s readiness checklist is ready or does not apply to your company.
Limitations
Osio nimeltä “Limitations”- Several years of history cannot yet be imported from an old system, so the setup starts from opening balances.
- The old system’s chart of accounts cannot be imported, so the books use the default chart.
initdoes not repair or update an old home. Upgrading aggountant does that.
All the limitations of the setup are on the page What is ready and what is not.
If something goes wrong
Osio nimeltä “If something goes wrong”ALREADY_INITIALIZED: the home already holds books. The program refused to set up the home and changed nothing.PERIOD_NOT_SEALEDin a report for the new fiscal year: the previous fiscal year holds something other than the opening balances from the turn of the year, that is, income or expense accounts, an earlier date or a closed period.- If vouchers seem to have disappeared or a command stops with
HOME_NOT_INITIALIZED, the command hit the wrong home. The troubleshooting section Vouchers seem to have disappeared shows how to find the right one.