appreise: user guide
appreise keeps your accounting ledger in plain text files, in git repositories you own on GitHub. You work with it through an AI app, such as Claude, connected to https://ledger.appreise.com/mcp over the Model Context Protocol (MCP). The AI app reads and changes your ledger only through appreise's tools, and every change is checked before it is committed.
Each section below is a topic. Ask the AI app for help on a topic by its name, for example "help on banks". For a complete, multi-chapter walkthrough of onboarding strategies, daily bookkeeping, investments, real estate, loans, depreciation, multi-entity family offices, and tax reporting, see the User Manual.
Getting started
Setting up takes these steps, in this order. Each one names the tool that does it.
- Sign in with read and write access. On appreise's consent page, choose "Read and write". With read only, the tools that change anything are hidden. See "Write access".
- Create or connect your repositories. Your ledger lives in private GitHub repositories, so you need a GitHub account. Ledgers hosted by appreise itself are turned off for now. To start a new ledger, ask the AI app to create one (
create_ledger); it creates the private GitHub repository, or gives you the links to create it. For a ledger that is already on GitHub, install the appreise GitHub App on the repositories that hold it and choose "Only select repositories". You can download any added repository as a.ziparchive at any time withdownload_repo. See "Private repositories". - Add them.
list_reposshows the repositories you granted that are not added yet.add_repoadds each one. Each must follow the appreise layout; see "Repository layout". - Connect a bank with
connect_bank, and open the link it gives you. See "Banks". - Send each bank account to a ledger with
assign_bank_account. See "Statement sources". - Fetch and book.
sync_banksfetches the banks. appreise also does this on its own once a day. Thenlist_inboxshows the new lines, andbookbooks them.
At any point, ask the AI app "guide me" or "what should I do next?" (or pick the prompt "Guide me through the next step"): it calls help to inspect your live setup state and walks you through the next action one step at a time. For households with multiple LLCs, trusts, properties, and investment accounts, ask for the prompt "Onboard a complex multi-entity setup". To reconstruct opening assets and accumulated depreciation from prior tax returns when older closing statements are missing, ask for the prompt "Reconstruct opening assets from tax forms".
To try appreise before setting up your own books, ask the AI app for a sample ledger (create_ledger with sample: true). It creates a new private GitHub repository holding one invented household's 12 months of sample data, including unbooked inbox lines and reports. A sample ledger is created only when you ask for it, never offered proactively, and cannot be assigned a real bank account.
Write access
When an AI app connects, appreise shows a consent page, with two choices:
- Read only: balances, the inbox, checks. Nothing can change.
- Read and write: everything, including adding repositories, booking, and connecting banks.
The choice holds until the AI app signs in again. Removing and re-adding the connector in the AI app does not sign it in again: it keeps its old access. To change your choice, use the sign_out tool. The AI app's next request is then refused, it signs in again, and the consent page appears. Other connected apps stay signed in.
Private repositories
appreise reaches your repositories through the appreise-ledger GitHub App:
- Go to
https://github.com/apps/appreise-ledger/installations/new(thegrant_urlinlist_reposgives the same link). - Pick your account. Choose Only select repositories, and tick the repositories that hold your ledger. GitHub refuses appreise every other repository.
- Back in the AI app, ask to add your repositories.
To grant more repositories, or take some back, use the same link, or GitHub's Settings, Applications, appreise-ledger, Configure. A repository in a GitHub organization also works when the organization installed appreise-ledger on it and your GitHub account has write or admin access to the repository; add it by its URL with add_repo, adopt_repo, or create_ledger.
For a repository on another forge (such as Forgejo or GitLab), pass credential to add_repo, adopt_repo, or create_ledger: an HTTPS access token for an https:// remote, or an unencrypted SSH private deploy key for an SSH remote, scoped with write access to that one repository. The service stores the credential encrypted at rest with AES-256-GCM in your per-user repo_credentials.json (bound to your user ID and repository URL), never logs it, and deletes it when remove_repo removes the repository. Each user on the hosted service is isolated in a separate users/<user-id>/ directory, and nightly state backups exclude repository checkouts (ws/) and the encryption key; see Chapter 6 of the user manual.
Ledgers hosted by appreise itself are turned off for now: keep your ledger on GitHub. At any time, download_repo downloads a standalone .zip Git archive of any repository you added.
Repository layout
A repository must follow the appreise layout before it can be added:
main.beancount: the top file. It holdsoptionandincludelines only, includingoption "operating_currency" "USD"(or your currency).tail.beancount: the only file appreise writes to. Itsincludemust be the last line ofmain.beancount.invariants.beancount(optional): balance assertions. When it exists,main.beancountmust include it.
A new ledger: ask the AI app to start a new ledger. When the GitHub App has repository creation permission, create_ledger creates the private GitHub repository itself, lays it out, commits, pushes and adds it in one step. When automatic creation is not available (or on another forge), create_ledger gives you a link that creates an empty private repository and the link that gives appreise access to it; once both are done, it lays the repository out, commits and adds it.
add_repo refuses a repository that does not follow this, and its error names the one thing to fix. An existing ledger in another layout can be adopted: adopt_repo finds the top file, makes it main.beancount, and adds the tail. It shows you the plan first, and proves the ledger unchanged: every transaction and every account's balance are identical before and after. Approve the plan, and it commits it as one commit, "adopt into appreise", which one revert undoes.
A minimal main.beancount:
option "operating_currency" "USD"
include "accounts.beancount"
include "invariants.beancount"
include "tail.beancount"
Directives and metadata
Appreise scopes every custom directive and metadata key it writes under its own name so that directives and metadata from other Beancount tools can share the same ledger files without clashing.
- Custom directive types use
appreise.ledger.<name>(for examplecustom "appreise.ledger.entity"). - Metadata keys use
appreise-<key>:(for exampleappreise-tax:andappreise-loan-rate:), because Beancount metadata keys allow only lowercase letters, digits, dashes, and underscores before the colon, without dots.
During transition, every reader accepts both the scoped name and the legacy unscoped name. Writers emit only the scoped names. To rewrite an existing repository's legacy names in one checked commit, run migrate_names first with dry_run: true to review the counts and file list, and then run migrate_names again after you approve. Foreign custom directives and foreign metadata keys stay untouched.
| Name | Legacy name | Where | Purpose |
|---|---|---|---|
custom "appreise.ledger.entity" | custom "entity" | ledger file (set_entity_info) | One entity fact (legal_name, state, ein, tax_status, and others). |
custom "appreise.ledger.entity-link" | custom "entity-link" | ledger file (set_entity_info) | Supporting HTTPS document URL for the entity. |
custom "appreise.ledger.fx-schedule" | custom "fx-schedule" | tail.beancount (record_price) | Daily foreign-exchange rate refresh setting (on or off). |
custom "appreise.ledger.ignore" | custom "appreise-ignore" | tail.beancount (ignore_line) | Marks one statement line ID as never to be booked, with a reason. |
custom "appreise.ledger.price-schedule" | custom "price-schedule" | tail.beancount (record_price) | Daily security price source (yahoo, ecb, or off). |
custom "appreise.ledger.source-start" | custom "source-start" | tail.beancount (assign_bank_account, claim_source) | Cutover date before which a statement source's lines are skipped. |
custom "appreise.ledger.tax-filer" | custom "tax-filer" | ledger file (set_entity_info) | Filing status and dependents for one person and tax year in a shared ledger. |
custom "appreise.ledger.value" | custom "value" | tail.beancount (state_value, refresh_property_values) | Stated market or appraised value of an asset or liability on a date. |
appreise-book-cost: | book-cost: | open (annotate_account) | Purchase cost or loan proceeds in the book currency (such as 48000.00 USD) on a foreign-currency asset or liability account. |
appreise-booking: | booking: | open (annotate_account) | Investment lot booking method (FIFO, LIFO, AVERAGE, or STRICT). |
appreise-corrects: | corrects: | entry (correct_estimate) | Names the :Estimate sub-account cleared by a basis adjustment entry. |
appreise-depr-accumulated-account: | depr-accumulated-account: | open (annotate_account) | Contra-asset account for accumulated depreciation (depreciate). |
appreise-depr-convention: | depr-convention: | open (annotate_account) | Averaging convention (mid-month or half-year). |
appreise-depr-expense-account: | depr-expense-account: | open (annotate_account) | Expense account charged by depreciate. |
appreise-depr-in-service: | depr-in-service: | open (annotate_account) | Date the depreciable asset entered service (YYYY-MM-DD). |
appreise-depr-life: | depr-life: | open (annotate_account) | Recovery period in years (such as 27.5 or 39) for depreciate. |
appreise-depr-method: | depr-method: | open (annotate_account) | Depreciation method (straight-line). |
appreise-depreciation: | depreciation: | entry (depreciate) | Marks a monthly depreciation entry (account YYYY-MM). |
appreise-entity: | entity: | open (add_account, annotate_account) | Other entity's repository on an inter-entity account. |
appreise-estimate: | estimate: | open (annotate_account) | Source note explaining how an :Estimate sub-account figure was chosen. |
appreise-evidence: | evidence: | entry or posting (book, post_entry, open_balances, correct_estimate) | Repo-relative path or URL of a backing statement, tax form, or closing file. |
appreise-field: | field: | custom "appreise.ledger.entity-link" (set_entity_info) | Entity fact field backed by the link. |
appreise-gl: | gl: | open or entry (book, recategorize) | Property-manager General Ledger account section hint or mapping. |
appreise-link: | link: | open (annotate_account) | HTTPS document URL (and optional title) attached to an account. |
appreise-loan-accrual: | loan-accrual: | open or entry (annotate_account, accrue_interest) | Unpaid interest mode (capitalize) on open, or loan account marker on an interest accrual entry. |
appreise-loan-accrued-to: | loan-accrued-to: | entry (accrue_interest) | Exclusive end date (YYYY-MM-DD) covered by an interest accrual entry. |
appreise-loan-contact: | loan-contact: | open (annotate_account) | Borrower contact email shown to lenders for questions about the loan (#680). |
appreise-loan-escrow: | loan-escrow: | open (annotate_account) | Monthly escrow amount (or dated schedule) on a loan. |
appreise-loan-escrow-account: | loan-escrow-account: | open (annotate_account) | Asset account receiving the escrow portion of a loan payment. |
appreise-loan-interest: | loan-interest: | open (annotate_account) | Day-count rule (30/360, actual/365, actual/360, or compound). |
appreise-loan-interest-account: | loan-interest-account: | open (annotate_account) | Expense account receiving the interest portion of a loan payment. |
appreise-loan-kind: | loan-kind: | open (annotate_account) | Loan structure (amortizing or interest-only). |
appreise-loan-limit: | loan-limit: | open (annotate_account) | Deposit limit or original amount of a loan, a positive decimal such as 50000.00, shown with its terms on the lender owner page. |
appreise-loan-number: | loan-number: | open (annotate_account) | Lender's full loan identifier printed on loan and real-estate schedules. |
appreise-loan-paid-from: | loan-paid-from: | open (annotate_account) | Inter-entity account when another entity pays the loan directly. |
appreise-loan-payee: | loan-payee: | open (annotate_account) | Lender or servicer name matched on bank lines and shown on schedules. |
appreise-loan-payment: | loan-payment: | open (annotate_account) | Scheduled monthly payment amount for real-estate schedules. |
appreise-loan-rate: | loan-rate: | open (annotate_account) | Annual nominal interest rate (or dated rate schedule) on a loan. |
appreise-loan-secured-by: | loan-secured-by: | open (annotate_account) | Property account(s) and optional collateral split securing a loan. |
appreise-loan-split: | loan-split: | entry (book) | Marks a loan payment entry split automatically from loan terms. |
appreise-nights: | nights: | entry or posting (book, post_entry) | Booked nights count for a short-term rental income entry (#655). |
appreise-note: | note: | entry or posting (book, post_entry) | Explanatory note on a booked entry or manual posting. |
appreise-occupancy: | occupancy: | entry or posting (book, post_entry) | Booked nights or occupancy count for a short-term rental income entry (#655). |
appreise-owners: | owners: | open (annotate_account) | People and percentage shares dividing an account across tax returns and lender PFS applicant/co-applicant columns. |
appreise-ownership: | ownership: | open (annotate_account) | Owner's percentage share of a company on its inter-entity account (pfs). |
appreise-pfs: | pfs: | open (annotate_account) | Personal financial statement section override (cash, real-estate, and others). |
appreise-posted: | posted: | entry (post_entry) | Marks an entry recorded without a backing bank statement line. |
appreise-property-address: | property-address: | open (annotate_account) | Street or postal address of a real-estate property on its Assets: account. |
appreise-receipt: | receipt: | entry or stated value (attach_url, attach_urls, state_value, refresh_property_values) | Space-separated receipt, invoice, or listing URLs attached to an entry or valuation. |
appreise-renamed-from: | renamed-from: | open (rename_account) | The name the account had before rename_account renamed it in place (#577). |
appreise-sample: | sample: | custom "appreise.ledger.entity" (create_ledger) | Boolean marker (TRUE) identifying an invented sample ledger repository. |
appreise-secures: | secures: | open (annotate_account) | Single property account secured by a mortgage or loan. |
appreise-source: | source: | open, price, or stated value (assign_bank_account, claim_source, record_price, state_value) | Statement source name on open, quote source on price, or valuation source on custom "appreise.ledger.value". |
appreise-src: | src: | entry or price (book) | Statement line ID booked by an entry or price directive. |
appreise-tax: | tax: | open (add_account, annotate_account, open_tax_categories) | Tax return form and line (or personal) for an income or expense account. |
appreise-tax-allocation: | tax-allocation: | open (annotate_account) | Percentage split of a mixed-use account across tax lines. |
appreise-tax-paid: | tax-paid: | open (annotate_account) | Marks federal tax withholding or estimated tax payment accounts (tax-ytd). |
appreise-tax-property: | tax-property: | open (add_account, annotate_account, open_tax_categories) | Rental property name for Schedule E or Form 8825 lines. |
appreise-tax-rate: | tax-rate: | open (annotate_account) | Per-year FX conversion rate to USD for tax reporting. |
appreise-uid: | uid: | entry (post_entry, stamp_uids) | Stable UUIDv7 identifier of an entry. |
appreise-value-source: | value-source: | open (annotate_account) | Valuation kind (appraisal, assessor, zestimate, and others) on a property account. |
appreise-xfer: | xfer: | entry (link_transfer, post_entry) | Shared identifier linking the two repository sides of an inter-entity transfer. |
appreise-xfer-none: | xfer-none: | entry (post_entry) | Reason an inter-entity posting has no matching bank transfer in the other repository. |
Banks
appreise connects banks through Plaid. Your bank password goes directly to Plaid in your browser, never to appreise or your AI app. Appreise (ledgerd), not the AI app, exchanges the one-time token with Plaid and stores the resulting access token encrypted with AES-256-GCM (bound to your user ID and bank item ID) in your per-user banks.json. The AI app never sees your bank password or Plaid access token.
- Connect:
connect_bankgives a link that works once, for 15 minutes. Open it in a browser, pick your bank, and sign in to it. - How far back: a new connection asks Plaid for up to 730 days (about two years) of transactions; some banks give less. Plaid fixes this when a bank is first connected. A bank connected before ledgerd 0.1.23 keeps its shorter history (about 90 days) until you disconnect it (
disconnect_bank) and connect it again. For anything older, upload the bank's statement files (upload_link). - The history arrives in two parts: right after connecting, Plaid sends about the last 30 days, and the older history over the next few hours. Until it is complete,
sync_bankssays "Plaid is still sending this bank's older history", and appreise fetches that bank every hour instead of once a day. - See what is connected:
list_bank_accountslists each account with its source name, such asplaid-chase-4821, and whether its bank needs you. - Reconnect: when a bank's login expires,
list_bank_accountsandsync_banksshow it as needing the user. Runconnect_bankwith that bank'sitem_id. This keeps its history. Reconnecting also lets you tick more accounts of the same login. - Two logins at one bank: a second login (a company's business login, say) may show an account the first one has already, such as a card both logins see. appreise keeps the second login with its other accounts and leaves the shared one with the first, so no history arrives twice. The page after the sign-in lists what was added and what was left out. A login that shows only accounts that are connected already is refused; reconnect that one instead.
- Disconnect:
disconnect_bankwith theitem_id. - A connection that fails inside Plaid: the Link page shows Plaid's error code next to its text, and what to do next. appreise keeps the last ten such failures, and
list_bank_accountslists them: when, which bank, the error code, whether the sign-in had been sent to the bank, and the advice. After a refused sign-in, do not try again in Plaid: banks lock a login after a few failed attempts. Check the password on the bank's own website first. - Chase cards: Chase reports all the cards of one credit card account as one account, so each card does not appear on its own.
Investment accounts (IRA, 401k, brokerage) are fetched through Plaid's investments product when the bank offers it, writing buys, sells, dividends, reinvestments, fees, contributions, and holding prices in the investment statement layout.
Some institutions send today's price on every investment transaction, old ones too. So a trade with cash books at its cash divided by its shares (less the fee on a buy, plus it on a sale) when the bank's price misses that by more than half a cent a share; the description notes the bank's price. A line with no cash (a vest, a transfer in) at today's price on an older date is held, and asks for its lot cost. A transfer out reduces the holding even when the bank sends a positive quantity. Cash coming into a brokerage is a transfer to Assets:Clearing, which pairs with the bank's debit; into a retirement account (a 401k or IRA, by the bank's account type) it is a contribution. To leave out lines before a date, give the source a start date: assign_bank_account (or claim_source) with start_date, also on a source assigned already.
Prices and lot costs keep up to six decimal places, as banks send them (a fund's 244.72272, a stock plan's 250.0004). Cash amounts are in cents: a cost or proceeds figure is rounded to the cent once, in the total. When a buy with no fee and no lot cost of its own has cash short of shares times price by no more than half a cent a share, the cash is what was paid, and the lot's unit cost follows from it.
Some banks send cash rows with no security on an investment account: a transfer out of a stock plan, or a buy with no ticker. book books them as cash moves, flagged ! for review. A transfer goes between the account's cash and Assets:Clearing, so match_entries can pair it with the other account. A buy or sale goes between the account's cash and its :Unidentified sub-account, until you book the position by hand. A line that book holds holds back only the later lines of the same security on that account; lines of other securities and cash lines still book.
Balances. Each fetch also reads each account's balance. list_bank_accounts proposes it as a balance check, in proposed_balance, dated the day after the fetch, because a balance assertion holds at the start of its day. A credit card or loan shows as a negative amount, because it is money you owe. There is no proposal while the account has pending transactions, because the bank's balance includes them, and the statements do not. There is none either while some of its transactions are held, waiting for a repository.
The AI app shows you each proposal and asks before it writes one. When you approve it, assert_balance writes it to invariants.beancount. From then on, check fails if a transaction before that day goes missing or is typed wrong. If the ledger does not reach the bank's balance yet, nothing changes, and the error says what may be missing.
Statement sources
Each bank account is a statement source. A source's transactions go to the one repository whose open directive claims it with source: metadata:
2026-01-01 open Assets:Chase:Checking USD
source: "plaid-chase-4821"
assign_bank_account writes this for you: give it the source (from list_bank_accounts), the repository (from list_repos), and the account. Bank and savings accounts go under Assets:, credit cards and loans under Liabilities:. If the account is not opened yet, appreise opens it, dated on its first transaction, or on the day before the start date when you give one.
A start date. A bank brings up to two years of history, but a ledger that starts at an opening date must not book the lines before it: they are inside the opening balance. Give assign_bank_account (or claim_source) a start date, the day after the opening date: the source's lines dated before it are left out, as ignored lines with the reason, and list_inbox counts them in its count of lines outside the dates. On a source claimed already, the same call sets or moves its start date. The date is kept in the ledger as 2026-01-01 custom "source-start" "plaid-chase-4821".
Changing an account's source at a date. An account whose lines came from statement files can move to a connected bank: assign the bank's source to the same account with a start date. From that day the bank owns the account's lines, and the files' lines from it on are left out, so no day counts twice. Each source of an account needs its own start date (one may have none: it owns the days before the first start). A history source (history-...) takes no start date; its days end where the account's other source begins.
Until a source is claimed, its transactions are held: fetched, kept, and written as soon as exactly one repository claims the source. A source claimed by two repositories is an error, and its transactions stay held until one claim is removed.
History from another program (a spreadsheet, a desktop program, a website) comes in through a source of its own. claim_source claims a name such as history-oldbank-checking for one account, and import_file then stores the exported statements under it, as CSV with the header Date,Description,Amount,Currency (money out negative; without the Currency column, the ledger's operating currency applies). A bank's own CSV download works as it is: import_file has the accounting engine read its columns and dates, and stores the result in that layout. It first shows you what it read; nothing is stored until you confirm.
From a property manager. When a property manager keeps a rental company's ledger, the company's year comes from the property manager's General Ledger report (appfolio_gl_v1), not from bank statements alone. Start here before importing the company's bank statements: claim a source on the manager's cash account with claim_source, export the General Ledger report as CSV, and upload it with upload_link (or import_file). Run book, then map each gl: section once with review_categories and recategorize (or recategorize_many). Owner payouts and contributions to or from the company's bank account in the same repository are paired through the clearing account (Assets:Clearing) and match_entries. When they go straight to a parent holding company's or owner's bank in another repository, map them to the inter-entity account and link the two sides with list_unlinked_transfers and link_transfer.
Exports from Stessa, Buildium, and RentRedi are stored unchanged and read directly by their own parsers:
- Stessa (
stessa_v1): open Transactions, filter to the property or account, and click Export to download the CSV (Date,Amount,Payee,Description,Category,Property,Unit). - Buildium (
buildium_v1): open Reports, Financial, Bank Transactions, pick the bank account and date range, and export as CSV (Date,Type,Reference,Payee,Property,Memo,Amount,Balance). Each row must carry aReferenceso re-imports never duplicate lines. - RentRedi (
rentredi_v1): open Payments, Export Charges (or the transaction report), choose the date range, and export as CSV (Trans Date,Transaction ID,Type,Property,Unit,Tenant,Description,Amount). Each row usesTransaction IDas its reference. - AppFolio General Ledger (
appfolio_gl_v1): export the General Ledger report as CSV (Date,Type,Unit,Name,Description,Debit,Credit,Balance) and upload it withupload_link(orimport_file).import_fileverifies each section's running balance and totals, skips zero-amount rows, emits statement lines from the cash section only (resolvingUndeposited Fundsbatches and split tenant payments), and records each row's GL section ingl:metadata. Mapgl:sections once throughreview_categoriesandrecategorize(orrecategorize_many). When owner payouts or contributions move money to or from the company's own checking account in the same repository, map thosegl:sections toAssets:Clearingsomatch_entriespairs them with the bank. When they go straight to a parent holding company's or owner's bank account in another repository, map them to the inter-entity account (entity: "<parent>") and link the two sides withlist_unlinked_transfersandlink_transfer. - Bank exports with debit and credit columns (
debit_credit_v1): a bank's CSV export whose header namesDate,Description,Amount Debit(orDebit),Amount Credit(orCredit) andTransaction Number(orTransaction ID), with an optionalMemoand other columns such asBalance, is stored unchanged and read directly. The memo (or the description when the memo is empty) is the description, and the transaction number is the reference. A year without transactions may download as an empty file;import_filethen says so, and there is nothing to import. - Sites without an export: when a site offers no CSV or OFX download, ask your AI app to read the transactions from the page and write them in the appreise statement format (
Date,Description,Amount,Currency, with an optional,Reference). - Documents as evidence (PDFs and scans): when a statement or a payslip arrives only as a PDF or an image scan, store the original file unchanged under
statements/<source>/withupload_linkorimport_file. Then have your AI app transcribe its lines into CSV, verify the document's own totals, and import the transcription next to the original (passingdocumentinimport_fileor naming the CSV after the document's stem).list_inboxmarks transcribed lines withtranscribedset to true, the originaldocumentpath, and its SHA-256 content hash so you can review them before booking. - Payslips: claim one source per employer on that employer's income account with
claim_source(for exampleacme-payrollonIncome:Salary:Acme). Transcribe each payslip into the payslip CSV layout (Date,Description,Component,Amount,Currency,Reference, with an optional,YtdAmountcolumn): one row per component (gross,federal,state,social-security,medicare,health,401k,net), where gross minus deductions equals net.bookchecks any year-to-date totals against the books, writes one multi-posting entry with net pay onAssets:Clearing, and routes matching bank payroll deposits (including split deposits across two bank accounts) toAssets:Clearing.match_entriespairs and reconciles them, and flags a payroll deposit with no payslip yet aspayslip missing. - Investments: brokerage and retirement accounts (whether fetched through Plaid or imported as CSV with the header
Date,Action,Symbol,Quantity,Price,Fee,Amount,Currency,Description,Reference, plus optional,LotDate,LotCostcolumns for specific lot identification) book each security into its own sub-account<Account>:<Symbol>with its lot cost and acquisition date ({price Currency, YYYY-MM-DD}). The supported actions arebuy,sell,dividend,reinvest,interest,fee,split,transfer,contribution, andprice. Asellreduces the chosen lot (or reduces lots by the account's booking method:FIFOby default, orLIFO,AVERAGE, orSTRICT, set withannotate_accountand keybooking) and books the realized gain or loss toIncome:Investments:CapitalGains:ShortTermorIncome:Investments:CapitalGains:LongTermby the one-year holding period rule. Acontributioninto a 401k or retirement account books againstExpenses:Payroll:Retirement, wherematch_entriespairs it with the employer payslip's401kdeduction (or reportspayslip missing). Daily market prices are recorded aspricedirectives bybook(forpricerows) or withrecord_price.
An account that a connected bank feeds takes one such history source beside the bank's: start its name with history-. Its lines must end before the bank's start date (or the bank's first line when the bank has no start date). Booking holds a history line on a day the bank covers, and a bank line on a day the booked history covers, so no day counts twice. Ask the AI app for the prompt "Move in from another program" to go through it step by step.
Booking
Fetched transactions arrive as statements under statements/<source>/ in the claiming repository. Then:
upload_linkgives you a link to a page where you upload a statement you downloaded yourself: a CSV file from your bank or your old program, or an OFX or QFX file. The page shows what it read; nothing is stored until you confirm there. (import_filedoes the same through the AI app, which is slow for large files.) The link lasts 15 minutes. On the hosted service it opens only in a browser signed in to appreise with your GitHub account; if you are not signed in, the page sends you to the sign-in and back.- Without a browser, for an AI app or a script with a shell: ask
upload_linkwith direct. Its answer also has a direct address. Send the file's bytes there by HTTP POST with&filename=NAMEto get the same preview as JSON, then once more with&filename=NAME&store=1to store it, for examplecurl --data-binary @old.csv "<direct address>&filename=old.csv". Give a file name without spaces or&, or URL-encode it. A direct link needs no sign-in, so anyone who holds it can upload one file with it in its 15 minutes. Keep it out of anything you share. list_inboxshows the pending lines.bookwith dry_run writes nothing. It reports whatbookwould book, and each line it would hold, with the reason.bookbooks them intotail.beancount, each with its best-guess account, orExpenses:Unknown.review_categorieslists the entries whose categoriesbookguessed, andrecategorizeorrecategorize_manymoves them to their accounts.booknever guesses an account that has its own statement source: its money comes from its own statement.- An entry that posts a line against another statement account (from an older release, or a category that later got its own source) is repaired with
recategorizeon the line's ID: it moves the other account's posting toAssets:Clearingor a category. - A payment booked from another statement, such as a mortgage payment from the lender's statement, leaves an open amount on
Assets:Clearinguntil the bank's side arrives. When the bank's line was booked first and landed onExpenses:UnknownorIncome:Unknown,bookmoves it toAssets:Clearingif it is the only line of that amount on the same day, and no other open amount fits it. It stays flagged!for review, with anappreise-notenaming the entry it clears. A line a few days off (up to 5), or one of several equal lines, is not moved:booknames it in its detail, andreview_categorieslists it among the lines that would clear an open amount. Recategorize it toAssets:Clearingto book it so. A line you put on another account is never moved. splitsplits one booked line across several category accounts (with optional notes), or collapses a split entry back to one category account.match_entriesreconciles transfers between your own accounts. When one side of an internal transfer is onAssets:Clearing(for example from a property manager's owner payout or contribution),bookproposesAssets:Clearingon an uncontested bank line of the opposite amount within 7 days; if an unrelated transaction happens to have the same amount within those 7 days, move it to its category account withrecategorize.ignore_lineskips a line, with a reason.checkvalidates the ledger. Every write commits and pushes its change at once; when the push fails, the answer says so and the commit waits in the service.commit_pushthen pushes it, and commits and pushes any change made another way, only when check passes.
Reports
Ask the AI app for a report, and it calls report on one repository:
- Income statement: income and expenses by account for a period, with the totals and what is left (net income). Pass
byas"month"for a month-by-month table (default 12 months ending onto, orperiodsmonths) or"quarter"for a quarter-by-quarter table (default 4 calendar quarters ending onto, orperiodsquarters), with aTotalcolumn and any in-progress final period marked partial. On the web report page, use the month / quarter switch at the top of the income statement or download the table as CSV (?format=csv). - Cash flow: cash inflows and outflows by account for a period across Operating, Investing, and Financing activities, with section subtotals, net cash flow, starting cash, and ending cash.
- Spending: expenses by category for a period, next to the period before of the same length.
- Register: every entry of one account, with its running balance.
- Balance sheet: what you own and owe on a date, and your net worth. An account with
entityandownershipon its open line, which holds a share of a company, shows what that share is worth, as the personal financial statement (pfs) does: the share times the company's net worth on the date, through every level of holdings, or the account's stated value when it has one. The line says how it was valued ("100% of Example Holdings LLC's net worth, 250,000.00 USD") and shows the booked amount next to it. Your own property or vehicle with a stated value (state_value) shows that value, as in the statement. The property's own account then replaces its Building, Land and AccumulatedDepreciation lines, and its booked amount is the sum of them. The assets and net worth totals use these values, so the net worth is the statement's. "Net worth at book value" and "net worth as booked" give the totals from booked amounts. Loans stay in the company that owes them. Below Assets and Liabilities, a Business interests section lists every company you hold directly or through other companies, matching the personal financial statement's schedule. It shows the entity, held through, direct and effective share, company net worth, your share at market and book value, and a link to that company's balance sheet. A note explains that rows do not add up because holding companies already include their subsidiaries. Passconsolidatedset to true (or open?view=consolidatedon the live ledger page) to expand each owned company's assets and liabilities line by line at your effective share, grouped by company. Holding lines are left out so nothing counts twice, and intercompany balances between consolidated entities are eliminated while keeping net worth equal to the default view. For tax work, such as Schedule L, which uses book values, ask for the balance sheet withbookedset to true: every account then shows its booked amount. The live ledger page takes?booked=1for the same view. - Holdings: open investment lots on a date (for the whole repository or one account prefix), with each lot's symbol, shares, unit cost, acquisition date, cost basis, latest market price with its date and age (
Nd / Mbd old, flaggedstale: older than 3 business dayswhen older than three business days, orvalued at cost (no market price; stale)when no price is recorded), market value, and unrealized gain, plus totals for cost basis, market value, unrealized gain, and realized short-term and long-term capital gains. Everyhelpanswer'sstatusalso lists each repository's newest price, date, age in calendar and business days, staleness flag, and daily price schedule. - Real estate: each property on a date and over a period (the 12 months ending on
towhenfromis omitted, or[from, to]or a 4-digit year infrom; or passbyas"month"for a month-by-month table of the past 12 months,"quarter"for the past 4 quarters, or"year"for the past 5 years, withperiodsfrom 1 to 60 and aTotalcolumn, plus aPortfoliosummary at your effective share across properties held directly or through owned companies). On the web report page, use the month / quarter / year switch at the top of the real-estate report or download the table as CSV (?format=csv). For each property with a stated value (state_value, on the property's account, such asAssets:RealEstate:Elm), it shows cost (the balances of the account and its sub-accounts, without accumulated depreciation), accumulated depreciation, book value (cost less depreciation), the stated value with its date and source, the unrealized gain or loss against cost and against book value, any loans secured on the property, and equity. A value whose source names an estimate (a Zestimate, say) is marked as one. A value older than 180 days is marked stale. A later value, such as an appraisal, replaces an earlier one. For every property, it also computes four operating and return figures over the period, spelling out the inputs behind each number: When any required input is missing (such as a stated value on or before the report date, a start-of-period stated value for appreciation, or purchase cash in the ledger), that figure reads"not available"and names what is missing rather than guessing. Nothing is posted: unrealized gains and returns exist only in the report, and never in income or in the property's cost. Setproperty-address,value-source(zestimate,rentcast,attom,housecanary,fhfa-index,assessor,appraisal, ormanual), and optional listinglinkon the property'sAssets:account withannotate_account. When a licensed valuation provider is configured on the service,refresh_property_values(and the daily price run) writes a newcustom "appreise.ledger.value"entry only when a property's automated estimate changed, keeping the full history and leaving later manual appraisals in force. The service never scrapes listing sites: when no live provider is configured, read the figure on the listing page and record it withstate_value, passing the listing URL so it stays attached asappreise-receiptevidence. Once a property is sold (post_entryclearing its cost sub-accounts on or after the valuation date) or closed, pre-sale stated values and unrealized gains drop out of the report andpfs, leaving the realized gain in the books.net operating income: rental income less operating expenses, leaving out mortgage interest, mortgage principal, depreciation, and capital improvements, with anet operating incometotal across properties.cash-on-cash return: pre-tax cash flow (net operating incomeless mortgage principal and interest paid) divided by the down payment, capitalized closing costs, cash improvements, opening net basis, andcorrect_estimatebasis adjustments recorded in the ledger.return on equity: pre-tax cash flow divided by current equity (stated value less secured loans).total return on equity: pre-tax cash flow plus principal paydown and appreciation between stated values over the period, divided by current equity.
- T12 operating statement:
t12is a lender-ready trailing-12-months operating statement for each rental property (direct or held through owned companies) plus aPortfolioT12 at your effective share, across 12 full calendar months ending withto(YYYY-MMorYYYY-MM-DD, defaulting to the last complete calendar month). Passaccountto report on one property, or omit it (or pass"all") for every property and the portfolio. Each property section shows its header (property name,property-address, owner entity and effective share, 12-month period, prepared date, and"Prepared from the books"), 12 monthly columns, and a 12-month Total column: On the web report page (/page/ledger/<repo>/t12), switch betweenAll propertiesand individual properties, print or save as PDF (one landscape page per property), or download the statement as an Excel workbook (?format=xlsx, one worksheet tab per property plus aPortfoliotab) or CSV (?format=csv).- Income: gross rental income by account, other income (fees, damage reimbursements), concessions and refunds, and effective gross income.
- Operating expenses: grouped by Schedule E / Form 8825 line and account name (
taxes,insurance,utilities,repairs,maintenance,management,cleaning,supplies,commissions and platform fees,HOA,professional,licenses, plusother: <account>with its own account name for any unmapped operating expense account so no expense is ever dropped), and total operating expenses. - Net operating income (NOI): effective gross income less total operating expenses, per month and 12-month total, matching
real-estate(by: "month") and the rental lines ofincome-statement. - Below NOI:
loan interest,loan principal,debt service,capital improvements(post-acquisition additions to the property asset account, never reducing NOI),cash flow after debt service and capex,depreciation (memo only), andbooked nights("<N> nights (<pct>%)"fromnights/occupancymetadata) for short-term rentals.
- Tax: for a tax year or period, every mapped tax form line (
Form 1040,Schedule A,Schedule C,Schedule E,Schedule D,Form 1065,Form 8825,Form 1120-S) with its total and the income or expense accounts behind it, plus any income or expense account that has a non-zero total and no mapping. Map an account withannotate_accountby settingtaxto"<form> <line>"(such as"Schedule E 9","Schedule D 7","Schedule D 15", or"Schedule C 24b"), and settax-propertyon a rental property's accounts so Schedule E and Form 8825 group lines by property. Ataxortax-propertyset on a parent account, such asExpenses:Rental:Elm, applies to every account under it that does not set its own; the report says which parent a line came from. Settaxto"personal"on spending that goes on no return, such as groceries, so that "unmapped" lists only the accounts that still need a line. A bill that is partly rental, business or personal, such as an HOA fee for a home you partly rent out, takestax-allocationinstead oftax:"60% Schedule E 19 @ 12 Elm St; 40% personal". The shares add up to 100%, the property after@is optional (and not allowed on a personal or none share), and the tax report puts each share on its line, rounded per share; a cent the rounding leaves goes on the first share, which says so. Set on a parent, it applies to the accounts under it; an account's owntaxwins over an allocation, and of a parent'staxand another parent's allocation, the nearer one is used.add_accounttakes the tax line too, and when it is left out, suggests one from the account's name;review_categoriesshows each entry's tax line; andcheckwarns about an account with postings this year and no line, once the entity's tax status is set. US forms are in USD. For an account booked in another currency, such as a rental abroad, settax-rateto the rate per tax year ("EUR 2026 1.08"), on the account or a parent; the tax report converts each line at it, or at the year's mean recorded price when no rate is stated, and shows the amount as booked and the rate beside it. The books stay in their own currency. Ask the AI app for the prompt "Map accounts to tax lines" to go through unmapped accounts. - Tax by return:
tax-returnsstarts at one repository, usually the person's, and follows the companies it owns throughownershipaccounts. A disregarded entity's lines go on its owner's return, each marked with the repository it came from. A partnership or corporation files its own return; for a partnership or S corporation, the owner's share of each of its lines also shows, as its Schedule K-1 gives it. Each repository's own tax report is unchanged. When people who file separate returns own a rental together, setownerson its Income and Expenses parent accounts, such as"Person A 50%; Person B 50%". The books keep the full amounts, andtax-returnsgives each owner a return with their share of every line, rounded per line, with any leftover cent on the first owner. An account's ownownersoverrides its parents', such as"Person A 100%"on the mortgage interest one owner pays alone. - Year-end tax pack:
report_pagewith kindtax-returnslays the same lines out for paper: every return with its lines and the accounts behind them, the totals by return and form line, and the open items still to settle before filing (an account with activity and no tax line, money still on anUnknownaccount). - Tax year to date:
tax-ytdis an estimate, not tax advice. For each return, it lists the tax lines from January 1 to a date (to, default today) and projects each to December 31 in a straight line: the amount times the days in the year over the days so far. For a person's return (Form 1040) it then estimates the federal income tax and the self-employment tax on the projection, for the filing status recorded withset_entity_info(filing_status: single, married filing jointly, married filing separately, or head of household;dependentsis shown, but no credit is subtracted for it). The tax figures are kept per tax year in the code, each with its source: for 2025, the brackets of Revenue Procedure 2024-40 and the standard deduction as Public Law 119-21 amended it; for 2026, Revenue Procedure 2025-32; the Social Security wage base; and the self-employment tax rates of Schedule SE. A year with no table computes no tax, and the report says so. It then subtracts what was paid. Annotate the expense account the federal tax is booked to withtax-paid:federal-withholdingfor tax withheld from pay,federal-estimatedfor estimated payments (a parent's annotation covers the accounts under it). Without one,Expenses:Tax:Federal,Expenses:Taxes:Federaland the accounts under them count: as withholding when the name ends inWithheldor the entry also posts to income (a payslip), else as an estimated payment. When one ledger holds two people who file separately, setownerson every Income and Expenses account, the tax paid included; each owner then gets their own estimate. Their filing status comes from the record of that tax year and person in the ledger reported on: record it withset_entity_infotax_filers(year, person asownersnames them, filing status, dependents), for people who share a household ledger and have no repository of their own. Without a record, the filing status of the repository named as the owner (by its directory or its legal name) is used. With neither, that person gets no estimate, and the report says what is missing; nobody is assumed married. It gives the difference, divided over the estimated tax due dates still ahead. No state tax is computed: each person's income and deductions are shown by the state they come from, which is the state at the end of a property's name (tax-property, such as"12 Elm St, Panama City, FL"), else at the end of the company'sbusiness_address, else the person's ownstate, else "state unknown". The notes list what the estimate leaves out, such as lower capital gain rates and credits. - Tax prep checklist:
tax-prepis the year-end checklist for a tax year: every tax line's total by return, the open items (accounts with no tax line, money on anUnknownaccount, open estimates, statements that end more than a month before the year does, statement lines not booked, statement accounts with no balance check at the year's end), the forms each return needs from its lines, the documents to collect (W-2, 1099, 1098, K-1), and the state returns the income by state implies. Both tax pages are also linked from the account page, with the other live pages of each ledger. - Refinance calculator:
refinance(orreportwith kindrefinance) compares each real-estate property's current secured loan(s) side by side with a proposed refinance loan, pre-filling the stated value, loan balance, rate, payment, escrow, trailing 12-month NOI, and cash invested from the books and reporting LTV, monthly P&I and cash-flow change, cash out at closing, max cash-out at the LTV cap, DSCR, break-even months, holding-period and full-term interest, cash-on-cash return and return on equity, and a yearly amortization table.
Every number comes from the accounting engine, in each currency as booked; nothing is converted, except tax report lines in another currency on a US form, as described above. To print a report or save it as PDF, ask for report_page, which returns a short-lived link laid out for paper.
Personal financial statement
Ask the AI app for your personal financial statement, and it calls pfs on your own repository: every asset and liability on a date, by kind, with your net worth, in the layout banks ask for. Each line says where its number comes from:
- Booked: the account's balance in your ledger. When a commodity has a market price recorded with
record_price(which accepts either one price or a batch of ticker prices in one commit), its balance is valued at the latest price on or before the statement date. With daily on and a price source,record_pricealso asks the service to record the price of every security the repository holds each day, after US markets close (22:00 UTC): one commit per repository and day, and only when a price is new. A security the source cannot price (an employer plan fund, say) is skipped; a connected investment account brings its own prices through the bank sync. The same daily run records the USD rate of every other currency the ledger holds a non-zero balance in, such as a EUR bank account, from its own source:fx_source, by defaultecb, the European Central Bank's reference rates, published on business days. One ledger can take stock prices fromyahooand rates fromecb. On a weekend the last business day's rate stands. A currency the source cannot price is reported and skipped. Turning daily on records nothing at once: the first daily run prices what each source can, so a source that cannot price every holding does not stop it. Daily off, given alone, stops both and records nothing. The statement's USD totals name each rate's date, source and age, andhelplists each repository's rate source and newest rates. Daily prices run on the hosted service only. - Stated: a value you gave with
state_value, such as an appraisal or home price estimate of a house. The latest one on or before the date counts, instead of what the ledger shows. Stating a whole-property value on a parent property account (such asAssets:RealEstate:Elm) opens the parent account automatically when any sub-account (Land,Building) is open, and replaces all unstated sub-accounts (Land,Building,AccumulatedDepreciation,Roof) on the statement so book cost and market value are never counted twice. Stating a value on an individual depreciable asset replaces both its cost and its accumulated depreciation ondepr-accumulated-accountor<asset>:AccumulatedDepreciation(unless that accumulated depreciation is shared with another asset that has no stated value). For real estate, the statement's Schedule of real estate also lists each property's street address (property-address), historical cost, accumulated depreciation, book value, unrealized gain or loss against cost and against book value, valuation source and evidence URL, whether the figure is an automated estimate, and whether it is older than 180 days (stale: older than 180 days), with schedule totals for cost, book value, and unrealized gains. Once a property is sold and its cost accounts reach zero on or after the valuation date, pre-sale stated values drop out so the proceeds and realized gain replace the unrealized gain. Ask for the prompt "Ingest stock and property valuations" to record stock ticker prices and home valuations in one pass, or runrefresh_property_valueswhen a valuation provider is configured on the service. - A share of a company: your inter-entity account for a company is worth your share of the company's net worth, from the company's own repository. Write the share on that account's
open, next toentity::
2020-01-01 open Assets:Investments:AcmeLLC USD
entity: "acme"
ownership: "40%"
To hand it to a bank, ask for it on paper: pfs_page (or report_page with kind set to pfs) gives you a link to the statement laid out for printing, which your browser prints or saves as PDF. Like the upload link, it lasts 15 minutes and opens only in a browser signed in with your account. Pass layout as "us-bank" (or open ?layout=us-bank on the live statement page) to lay the statement out section by section following U.S. Bank form UPFS 12/2020 (Schedules 1 through 7, Summary, Schedule of Closely Held Business Interests, and Applicant and Co-Applicant columns populated from owners annotations on your asset, liability, and income accounts). The page states Follows U.S. Bank form UPFS 12/2020 without reproducing any bank logo, and leaves fields the ledger does not hold (Social Security numbers, dates of birth, employer details, yes/no answers, life insurance policies, credit limits, and maturity dates) blank to fill in by hand rather than inventing or storing them.
Alongside Net worth (which includes stated values and security market prices), the statement prints Net worth at book value per currency using booked balances alone. Holdings or loans in another currency with a recorded cost (book-cost set with annotate_account, {} lots, or @/@@ costs) count in that cost currency. Plain foreign-currency balances without a recorded cost stay in their held currency and convert in the USD summary at the latest recorded price <currency> <rate> USD on or before the statement date. Any uncosted currency without a recorded USD price is omitted from the USD total and named on the page.
The AI app writes the share and the company's repository with annotate_account (ownership and entity). The kind of each line comes from the account's name. To set it yourself, ask for a pfs: line on the account (annotate_account again), with one of cash, securities, retirement, real-estate, business, other-assets, mortgages, loans, credit-cards, other-liabilities.
To connect a mortgage, HELOC, or secured loan with the property that secures it in the statement's Schedule of real estate (and in the real-estate report), set loan-secured-by (and optional loan-payee, loan-number, loan-rate, and loan-payment) on the liability account with annotate_account. The schedule of real estate, the real-estate report, and the loans pages print the lender (loan-payee) and the full loan identifier (loan-number) next to each secured loan:
- One property:
Assets:RealEstate:Elm(orelm-llc/Assets:RealEstate:Elmwhen another repository holds the property or the loan). - Blanket loan across several properties without a split:
Assets:RealEstate:Elm; Assets:RealEstate:Oak(shown in full on each covered property, marked as a blanket loan, and counted once in totals). - Split by share or fixed amount:
Assets:RealEstate:Elm 60%; Assets:RealEstate:Oak 40%(also accepted as60% Assets:RealEstate:Elm; 40% Assets:RealEstate:Oak) orAssets:RealEstate:Elm 300000.00; Assets:RealEstate:Oak 200000.00.
When shares add up to less than 100%, or fixed amounts add up to less than the booked loan balance, only the stated splits are attributed on the schedule while the full loan balance remains under Liabilities. When a loan with fixed-amount splits is paid down below their sum, amounts are attributed in order up to the remaining loan balance. If an account carries both loan-secured-by and secures, loan-secured-by takes precedence.
Opening balances
The ledger starts on an opening date. Each account's balance at the end of that day is its opening balance: one entry against Equity:Opening-Balances, and a balance assertion that pins it. open_balances writes them all for one repository, in one commit. Ask for the prompt "Inventory balances as of a date" to go through every account.
- The date must be before each account's oldest statement line. History and opening balances must not cover the same days, or each amount would count twice. An account opened later is moved back to the opening date.
- A bank account's opening balance: when
assert_balancefails, it says how much is missing. If the bank's history starts after the account opened, that amount is the opening balance. - Money owed (a credit card, a loan) is a negative amount.
- Investment share lots (
securitiesandretirement): give the share count inamount, the ticker symbol incurrency, and either the per-share price or the total lot cost basis (when total cost basis is given,open_balancescomputes the per-share unit cost from total cost basis divided by share count), plus the original acquisition date if earlier than the opening date. Multiple lots for the same security sub-account can be included in one call;open_balanceswrites one opening lot entry per lot and pins the combined share count ininvariants.beancount. - Reconstructing from tax forms (
evidence): when original closing statements or purchase confirmations are missing, store prior-year tax forms (such asForm 1040,Schedule D,Schedule E,Form 4562,Form 1065, orForm 8825) understatements/tax-forms/withupload_linkorimport_fileand pass the file path inevidenceon each reconstructed balance inopen_balances(including depreciable asset basis and negative prior accumulated depreciation on<asset>:AccumulatedDepreciation). When a tax form gives only a combined figure, put the uncertain split on an:Estimatesub-account and annotate it withannotate_accountsolist_estimatestracks it untilcorrect_estimatereplaces it. - An account that has an opening entry already is refused (except additional share lots opened in the same call). To correct it, call
open_balancesagain withreplace: trueon the account's item (on every lot of an investment account): the old entry and its pinned assertion go, the new ones are written, and the commit message records what was there. For an opening entered on the wrong account, giveremove: trueinstead, with no amount.
Entries no statement backs
Some events have no line in any statement: a property sale or purchase settled on a closing statement (only the net proceeds reach the bank), an expense another of your entities paid, an adjustment your preparer asks for. post_entry records one, with its postings, a narration and the documents behind it (paths under statements/, uploaded first, or links).
- The postings balance in each currency, and every amount is written out.
- Every account is open on the date; open new ones with
add_accountfirst. - No posting goes to an account with a statement source: its money comes from its own statement. Post to
Assets:Clearing(or a suspense account) instead, and categorize the bank line's entry to it. - A posting to an inter-entity account needs a reason why no money moved (its no-transfer reason); a transfer comes from the statements and is linked with
link_transfer. - An entry equal to one already in the books is refused, so a retry cannot post twice; allow a duplicate when a second one is meant.
- The entry is flagged
!for review (or*, when you ask for it cleared at once), and gets a uid thatattach_urltakes for further documents. - A document under
statements/must be in the repository already.
Run it as a dry run first: it returns the entry and check's answer and writes nothing. Post it once you have read the entry.
Removing an entry
remove_entry removes one entry: the one that books a statement line (by its line ID), or the one post_entry wrote (by its uid). The lines it booked are pending again, for book. Use it for an entry post_entry wrote by mistake, or one booked under a model that no longer applies, such as a loan payment split from the bank side once the loan has its own statement lines (see "Loan payments").
- A reason is required: one line, at most 300 characters. It goes into the commit message, with the removed entry's text, so the history says what went and why.
- An entry linked to another repository (
xfer:) is refused: its other side would be left without it. - A reviewed (
*) entry paired throughAssets:Clearingwith a reviewed other side is refused: that side would stay reviewed against nothing. - A removal that would make check fail is refused.
- Run it as a dry run first: it returns the entry and check's answer, and writes nothing.
Links to outside documents
An account can point to documents kept outside the ledger, such as the lender's statement sheet for a loan, or the loan agreement. Add one link per call with annotate_account, key link, and an http(s) URL:
2024-05-01 open Liabilities:Loans:Lender USD
link: "https://docs.example.com/lender-sheet https://docs.example.com/agreement"
Each call adds its URL to the links already there, separated by a space. list_accounts lists every account's links, and the register report of the account shows them above its lines. To remove a link, edit the open directive in the repository.
Loan payments
A payment on a loan books split into principal, interest and escrow, once the loan's terms are written on its account's open directive (with annotate_account):
2024-05-01 open Liabilities:Loans:House USD
loan-rate: "6.125%"
loan-interest: "monthly"
loan-escrow: "412.50"
loan-payee: "MR COOPER"
loan-kind: "mortgage"
loan-rateis the yearly rate, and the only required key. It is what makes the account a loan with terms. Remove it to stop the split.loan-interestis how interest accrues:monthly(a twelfth of the yearly rate per payment, as US mortgages charge it),actual/365oractual/360(the rate times the days since the loan's previous entry), orcompound(the balance grows by(1 + rate) ^ (days / 365) - 1since the previous entry, so a full year adds exactly the rate; a lender's running statement that adds interest to the loan works this way). The default ismonthly.compoundis computed in floating point and rounded to the cent, with an error under a hundredth of a cent for balances up to 100 billion; the other three are exact.loan-escrowis the escrow paid with each payment, if any. When the lender's yearly escrow analysis changes it, give each earlier amount with its last day, oldest first, and the current amount last:"231.26 until 2026-04-30; 191.38". Each payment uses the amount for its date.loan-payeepicks the loan for a bank line whose description contains it, and names the lender in the schedule of real estate, thereal-estatereport, and the loans pages. Without it, booking uses the loan that earlier payments to the same payee went to.loan-numberrecords the lender's own identifier for the loan. Reports and the loans pages print the entire loan number beside the loan.loan-kind: "mortgage"puts the interest onExpenses:Interest:Mortgage:<name>, so mortgage interest stays apart for taxes. Other loans useExpenses:Interest:<name>, and escrow goes toAssets:Escrow:<name>.loan-interest-accountandloan-escrow-accountname other accounts.
Interest is computed on the principal the books show as owed, so the loan needs its balance first (see Opening balances). Escrow comes next, and the rest pays principal. The entry is flagged ! and records how it was computed as loan-split metadata. To correct a split, edit its amounts: the next payment starts from the balance as corrected, and the same holds for extra or missed payments. A balance assertion from the lender's statement catches any drift. A payment is held for you to book by hand when it does not cover interest and escrow, pays more than is owed, is dated before the loan's last entry, matches the loan-payee of two loans, or goes to a loan whose terms do not read.
A loan with its own statement lines
A loan account can also claim a statement source, for example a lender's account connected through Plaid and given to the loan with assign_bank_account. The lender's lines then report the same payments the bank account shows. To count each payment once:
- The bank-side payment books to
Assets:Clearing, not split. - The lender's payment lines of one day book as one entry: principal on the loan, interest and escrow on their accounts, and the total on
Assets:Clearing. - A payment is the lender's lines of one day: one payment line, and at most one principal line (its description contains "principal"). With a principal line, that figure is the principal, and the rest less escrow is interest. When the interest computed from the terms differs, the entry's
loan-splitsays both. When it differs by more than a tenth, the lines are held: they are likely not one payment. - A principal line alone is an extra principal payment: all principal.
- Any other set of lines on one day is held, for you to book by hand.
match_entriesthen pairs the twoAssets:Clearingsides.
A payment already booked from the bank side, split, before the loan had its own lines, holds the lender's lines for it, so the payment is not counted twice. Remove that entry with remove_entry first, then run book: it books the bank line again, to Assets:Clearing.
When another entity pays the loan (an owner pays a company's mortgage from a personal account, say), there is no bank-side payment in the company's repository for Assets:Clearing to pair with. Set loan-paid-from on the loan (with annotate_account) to the inter-entity account the payments come through, such as Equity:Owner:Holding for an owner's capital contribution. The lender's lines then book their total there. The paying repositories book their sides to their own inter-entity accounts (with post_entry where no cash moves), and link_transfer links each hop. Whether each hop is a capital contribution or a loan is a tax decision for the owner.
Interest added to the loan
Some loans take no payments: the lender adds the interest to the principal, and a running statement shows the growing balance. Declare such a loan with loan-accrual: "capitalize" next to its terms (annotate_account sets it, with the value capitalize), and book its interest with accrue_interest, up to a day (today by default):
2023-12-08 open Liabilities:Loans:Lender USD
loan-rate: "8%"
loan-interest: "compound"
loan-accrual: "capitalize"
link: "https://docs.example.com/lender-sheet"
accrue_interest books one entry per year end and one for the day asked for. A year-end entry is dated December 31 and runs to January 1, so each year's interest stays in that year; loan-accrued-to on the entry records the day it runs to, and the next accrual or payment counts days from there. Each period's interest is on the balance after the one before:
2023-12-31 ! "Interest accrued on Liabilities:Loans:Lender"
loan-accrual: "8% compound on 25000.00 owed, 24 days"
loan-accrued-to: "2024-01-01"
Liabilities:Loans:Lender -126.83 USD
Expenses:Interest:Lender 126.83 USD
The entries are flagged ! for review. Compare the loan's balance with the lender's statement (the register report of the loan shows its links), and record the lender's figure as a balance assertion. book suggests accrue_interest when such a loan has days without interest. Whether unpaid interest is deductible in the year it accrues is a question for your tax preparer; appreise maps no tax line to it.
Lender page
A company that borrows from individuals can let each lender see their own loan account at https://<service>/loans/, read only: the loan's terms, its documents (the account's links and receipts on its entries), its interest by year, every posting with its running balance, and the balance today, as the company's books show it.
lender_accesswith an email address (oremailsfor joint lenders, such as a couple on one loan) and the loan account invites a lender. You can also pass the recipient name(s), mailing address, and taxpayer identification number (SSN or EIN, stored encrypted at rest) for the loan's yearly Form 1099-INT. One lender email can be invited to at most one loan account per company. The lender signs in on the page with the Google account of that address, sees their loan statement, and can download their Form 1099-INT Copy B ("for recipient", with the recipient TIN truncated to the last four digits) as a PDF for each finished calendar year. Box 1 reports both interest paid out and capitalized interest accrued in the calendar year; forms below $600 are still offered and marked as informational. If the books for a finished year change after a form was first downloaded or filed, the form is markedCORRECTED.lender_accesswithowner: trueand an email address adds a company owner for that repository. An owner signs in athttps://<service>/loans/ownerwith Google and sees every loan account of the company (invitedLiabilities:accounts,Liabilities:accounts with loan or collateral annotations, and open accounts underLiabilities:Loans:,Liabilities:Loan:,Liabilities:Mortgage:, orLiabilities:Mortgages:): who lent to it, the principal lent, interest accrued, payments made, balance today, total owed per currency, when each invited lender last signed in, and the yearly Form 1099-INT table for every finished year (Copy B PDF for the recipient, Copy C PDF for the payer's records, Copy A PDF and IRIS CSV for electronic filing with the IRS due January 31, and a button to confirm and record when Copy A was filed with the IRS). When a loan account carriesloan-payee,loan-number, orloan-secured-by(secures), the loans pages print the lender, the full loan identifier, and the securing property beside it.- Loan questions go to the loan's
loan-contactemail (annotate_account), else the ledger'scontactemail (set_entity_info), elseoffice@appreise.com. The owner page shows each loan's contact address and how to set it, while every page keepsQuestions about this site: office@appreise.comin the footer. lender_accesswith remove withdraws an invitation or owner, and deletes the email address and its sign-in record with it.lender_accesswith only the repository lists its invitations and owners, with when each last signed in.
The page asks Google only for the lender's email address. A lender sees the invited accounts and nothing else of the company's books. The privacy policy at /loans/privacy says what is stored. When the lender page has a host of its own, such as lender.appreise.com, the policy is there, at /privacy and at /loans/privacy, and the ledger's /loans/ addresses lead to it. The ledger has its own policy at /privacy.
To share a whole ledger read-only with a spouse, an accountant or a partner who signs in with Google, use viewer_access on that one repository:
viewer_accesswith the repository (or several repositories at once) and an email address shows the exact ledgers and email to confirm; calling again withconfirm: truegrants read-only access athttps://<service>/viewfor each named repository only (its reports, account registers, journal, plain-text copy, and journal CSV, with cross-repository links shown as"another ledger").viewer_accesswithremove: trueand the email address deletes what is stored for that viewer and ends their sessions at once.viewer_accesswith only the repository lists its viewers, with when each was invited, last signed in, and downloaded copies.
When second-factor security is enabled, sharing a ledger or loan account opens /oauth/web/mfa?step_up=invite and names each ledger, email, and read-only scope before your passkey check. Clicking Share with <email> confirms only the listed shares, and multiple pending shares can be confirmed together with one passkey check.
Every active viewer, lender, and company-owner share appears under Shared with others on /oauth/web/security, linked from Settings and the Shared navigation item. Clicking Revoke and confirming with your passkey ends that person's sessions at once, deletes their stored data for that ledger, and logs the revocation.
Depreciation
An asset such as a rental building depreciates once its recovery period is written on its account's open directive (with annotate_account). depreciate books it through a month end you name, for every such asset in one repository:
2019-06-01 open Assets:RealEstate:Elm:Building USD
depr-life: "27.5"
depr-in-service: "2019-06-15"
depr-lifeis the recovery period in years, and the only required key. In the US, a residential rental building is 27.5 years and a commercial one 39 (IRS Publication 946). Land does not depreciate, so keep it on its own account without terms.depr-in-serviceis the date the asset was placed in service. The default is theopendate.depr-conventionismid-month(the first month counts half, as for US real property) orfull-month. The default ismid-month.- The method is straight-line.
depr-methodaccepts onlystraight-line. - Depreciation goes to
Expenses:Depreciation:<asset>against<asset>:AccumulatedDepreciation. As a sub-account, accumulated depreciation rolls into the asset, so the asset's balance is its book value.depr-expense-accountanddepr-accumulated-accountname other accounts. Neither may be the asset or inside it (a sub-asset's accounts may sit inside its parent), or inside each other, and two assets may not share an accumulated depreciation account. - An asset opened before its cost is booked is skipped with "it has no basis yet" until the cost is in. Set
depr-in-serviceto the month it goes into service, and runs before then book nothing for it.
A capital expenditure, such as a new roof, is an asset of its own: open it with its own terms, even as a sub-account of the property. Its cost is then not part of the property's basis.
Each run spreads what is left of the basis over what is left of the recovery period, from the month after the last depreciation entry. Monthly and yearly runs can differ by a few cents within a year, from rounding each run to the cent, and come to the same total by the end of the period. An asset you move in with goes through Opening balances: its cost, and its accumulated depreciation as a negative amount on <asset>:AccumulatedDepreciation. When the opening date is the last day of a month, that month counts as depreciated; otherwise give the accumulated depreciation as of the end of the month before, and the first run books the opening month. A basis that changes later, such as an estimate corrected on an :Estimate sub-account, is spread over the months left; past entries stay as they are. Each entry's depreciation metadata records how it was computed, and how much of the basis is estimated.
An asset is skipped, with the reason, when its terms do not read, it has no basis, its accumulated depreciation exceeds its basis or is positive, it has depreciation after the month asked for, it is closed, its accounts overlap another asset's, or a posting on it has no amount or another currency.
When an exact cost or opening accumulated depreciation is not yet known, book the estimated figure on an :Estimate sub-account of the account it belongs to, and record where the estimate came from with annotate_account (key estimate):
2019-06-01 open Assets:RealEstate:Elm:Roof USD
2019-06-01 open Assets:RealEstate:Elm:Roof:Estimate USD
estimate: "contractor quote, no invoice"
Because :Estimate is a sub-account, Beancount rolls it into its parent, and list_estimates (and the dashboard) lists every :Estimate account whose balance is not zero. When the exact value is found, correct_estimate appends a balanced entry to tail.beancount with corrects: and evidence: metadata that clears the :Estimate sub-account, books the exact amount on the parent account, and puts the difference on Equity:Adjustments:Basis (or another adjustment account you choose), and reports the change in yearly and past depreciation.
Several ledgers
Keep one repository per entity: yourself, each company, a trust. Money moving between them, such as a contribution to a company, is two entries, one in each repository. Each is booked against an inter-entity account: an account whose open has entity: metadata naming the other repository. Both entries carry the same xfer: value, the transfer link:
2026-01-01 open Assets:Investments:AcmeLLC USD
entity: "acme"
2026-04-01 * "TRANSFER TO ACME LLC"
xfer: "acme-2026-04-01-10000"
Assets:Checking -10000.00 USD
Assets:Investments:AcmeLLC 10000.00 USD
add_account with entity set to the other repository opens such an account.
Money sometimes passes through a company without touching its bank: an owner pays a property company's bill from their own account, through a holding company. Each hop is a transfer with its own link. The holding company has no statement line, so it records each hop with post_entry and xfer set to that hop's link, against Assets:Clearing, where the two hops cancel:
2026-01-02 ! "Owner pays the property's bill"
xfer: "personal-holding-2026-01-02-585.09"
Equity:Owner -585.09 USD
Assets:Clearing 585.09 USD
2026-01-02 ! "Owner pays the property's bill"
xfer: "holding-prop-2026-01-02-585.09"
Assets:Investments:Prop 585.09 USD
Assets:Clearing -585.09 USD
link_transfer with the same value then links the owner's bank line to the first entry; the side that has the value already is left as it is. xfer-none: is for an entry where no money moved; linking an entry takes it off. Your AI app offers ready-made guides for this work: ask it for the prompt "Set up an entity", "Record entity facts", "Build a chart of accounts", or "Link transfers between entities".
Each entity repository can also store its legal, ownership, and tax facts as custom "entity" directives, and external HTTPS reference links as custom "entity-link" directives:
2021-03-15 custom "entity" "legal_name" "Elm Street Holdings LLC"
2021-03-15 custom "entity" "state" "DE"
2021-03-15 custom "entity" "formation_date" "2021-03-15"
2021-03-15 custom "entity" "business_address" "120 Elm St, Austin, TX 78701"
2021-03-15 custom "entity" "registered_agent" "CSC, 251 Little Falls Dr, Wilmington, DE 19808"
2021-03-15 custom "entity" "members" "Jane Doe (personal) 60%, John Doe 40%"
2021-03-15 custom "entity" "managers" "Member-managed"
2021-03-15 custom "entity" "ein" "12-3456789"
2021-03-15 custom "entity" "tax_status" "partnership"
2021-03-15 custom "entity" "tax_year_end" "12-31"
2021-03-15 custom "entity" "tax_return" "Form 1065"
2021-03-15 custom "entity" "tax_due_date" "03-15"
2021-03-15 custom "entity-link" "operating-agreement" "https://drive.example.com/elm-oa"
field: "members"
set_entity_info records or updates these facts and links (writing to entity.beancount when present, or tail.beancount otherwise), and get_entity_info reads them along with the tax return due-date list across all entities. The EIN is masked as **-***NNNN in list_repos, status, logs, commit messages, and get_entity_info unless get_entity_info is called with the full EIN requested. When an entity's tax classification is set, annotate_account checks that tax: form mappings match that classification (for example, a partnership accepts Form 1065 and Form 8825, and a disregarded entity accepts tax: "none" or the owner's pass-through schedules).
check sees one repository at a time. check_across reads all of yours, and reports:
- a link with one side, on more than two entries, or with both sides in one repository;
- two sides that do not cancel, or that move money the same way;
- a side whose inter-entity account names another entity than the other side's repository, that has no inter-entity posting, or that leaves its amount to be inferred;
- an entry on an inter-entity account without a link, except an opening balance (an entry against
Equity:Opening-Balances): no money moved on that day; - an opening balance on an inter-entity account in one repository when the other repository has none for the same relationship, or when the two go the same way (the amounts may differ, since the owner may carry the investment at cost, but one side's must be the other's opposite);
- a statement source that two repositories claim;
- a mismatch between an entity's
memberscap table and theownership:annotations on a member repository's inter-entity accounts (adding up shares on both sides when several cap-table members or several ownership accounts name the same repository pair, such as two people or a trust in one household ledger).
A transfer often arrives as two plain bank lines: money leaves one entity's bank and arrives at the other's a few days later. list_unlinked_transfers finds such pairs. It proposes a link when two entries in different repositories have no link yet, their bank amounts cancel exactly, in one currency, they are at most 7 days apart, and each is the only match of the other. It looks at entries with one posting on a bank account (an account whose open has source:) and the rest either on *:Unknown accounts or on the inter-entity accounts of one entity. Each proposal names both entries and the xfer: value to set. An entry that matches several others is listed for you to decide. Nothing is linked until you approve it. link_transfer then sets the same xfer: value on both entries, with one commit in each repository. It refuses a pair whose bank amounts do not cancel. A side still on *:Unknown is linked, and check_across reminds you to book it to the inter-entity account.
Testing with Plaid's sandbox
The hosted service may run on Plaid's sandbox, which has test banks and test data only. Real banks need Plaid's production access. In the sandbox:
- Phone verification: the code is
123456, or choose to continue without a phone number. - Bank: "First Platypus Bank", the one without "OAuth" in its name.
- Login: username
user_good, passwordpass_good. A verification code, if asked, is1234.
Keep sandbox data in a repository of its own, never in your real ledger.
Troubleshooting
- The write tools are missing: you signed in read only. See "Write access".
- "Unknown app" when connecting an AI app: the AI app opened
/authorizewith a client ID that is not stored on the server. Remove the connector in your AI app and add it again so the app registers anew. - "appreise has no access to OWNER/REPO": the GitHub App is not installed on that repository. See "Private repositories".
- "appreise has no access to this repository on GitHub: it is not among the repositories you gave the appreise GitHub App": the repository was registered, but the app's repository selection no longer includes it. GitHub then answers 404, as if the repository did not exist. Open the link
list_reposgives (grant_url), choose the repository under "Repository access", save, and list the repositories again. - "main.beancount is missing" or "tail.beancount ...": the repository has another layout (
helpshows its state asblockedwith the reason). Adopt a new repository withadopt_repo(see "Repository layout"); on an indexed repository where plain directives were written afterinclude "tail.beancount",pull_reposwith write access moves thetail.beancountinclude back to the end. sync_bankswrites 0 lines, and holds them: no repository claims the sources. Useassign_bank_account; see "Statement sources".- "this sign-in shows no account that is not connected already": every account of that login is connected through another login. To add accounts, use
connect_bankwith theitem_idit names, and tick them in Plaid. - A bank shows
needs_user: its login expired. Reconnect it; see "Banks". - "this link has expired or was used": ask
connect_bankfor a new link. - "the matching bank line ... may be in repository ...": moving an entry to
Assets:Clearingwas refused, because another repository has a bank line of the opposite amount within a few days. The error names that line. If it is the entry's other side, book both sides to inter-entity accounts and link them withlink_transfer. If it is not (its description names another company, say), recategorize again with unrelated_match_reason saying why. The reason goes into the commit message. The error lists up to five such lines; the reason must hold for all of them. - "nothing to split" on a transfer between two statement accounts: recategorize its line to
Assets:Clearingfirst, then split it. - "Plaid stopped: ..." on the Link page: the connection failed inside Plaid. The page says what to do;
list_bank_accountskeeps the details under its link failures. See "Banks". - GitHub says "The redirect_uri is not associated with this application" when an upload or page link opens: the browser sign-in used a callback the GitHub App does not list. Since appreise/ledger#352 both sign-ins use the one registered callback,
https://<service>/oauth/github/callback; check that the app's "Callback URL" is exactly that address. No startup check can see this: only GitHub knows the app's settings. - "the assertion ... fails": the ledger does not reach the bank's balance. It usually lacks an opening balance (the bank's history starts later than the account), or has lines not booked yet (
list_inbox). checkwarns "unbacked-posting": an entry booked from one statement's line also posts to an account that has its own statement, but books no line of it. If that money moved, the account's own line books it too, so it counts twice. Recategorize the entry, usually toAssets:Clearing. The warning never failscheck.claim_sourcesays how many such entries an account has when it starts to take a statement.- "repository ... is not clean": it has uncommitted changes. Commit or pull them first.
- Any other failure: every
helpanswer has astatuspart: the service version, and each repository's state and commit as of its last pull. The state isclean,blocked,dirty,aheadorbehind(or several, such asblocked, aheadordirty, ahead),not cloned,disabled, orerror. It is read without pulling, so it answers even when a remote fails. When the service cannot answer at all,status.errorsays why. Callreport_bugto record a bug report with the service version, repository states, and recent failed calls attached automatically (leaving book contents, amounts, and account names out of the description), or use Report a bug next to User Guide, Help & Manual, and Status on the web pages to send a pre-filled email tooffice+ledger-bugs@hdlfactory.com.
Tools
One tool per line, in alphabetical order within each group, so that a new tool adds one line of its own.
- Repositories:
add_repoadopt_repocreate_ledgerdownload_repolist_reposmove_repopull_reposremove_repo
- Ledger:
add_accountannotate_accountattach_urlattach_urlsbalancesbookcheckcheck_acrossclose_accountcommit_pushget_entity_infoignore_lineimport_filelink_transferlist_accountslist_inboxlist_unlinked_transfersmatch_entriesmigrate_namesopen_tax_categoriespfspfs_pagerecategorizerecategorize_manyrecord_pricerefresh_property_valuesrefinancerename_accountreportreport_pagereview_categoriesset_entity_infosplitstamp_uidsstate_valueupload_link
- Banks:
assert_balanceassign_bank_accountclaim_sourceconnect_bankdisconnect_banklist_bank_accountssync_banks
- Lenders and viewers:
lender_accessviewer_access
- Opening balances:
open_balances
- Depreciation:
correct_estimatedepreciatelist_estimates
- Loans:
accrue_interest
- Entries no statement backs:
post_entry
- Removing an entry:
remove_entry
- Session:
helpreport_bugsign_out