Skip to main content

Accounting agents (administration)

For the person setting up the accounting agents: which AI model each task uses, and what never reaches a model, what each agent may do alone, the auto-post rules, and MCP tokens.

AI models​

Settings → AI models lists each accounting task — reading bills, categorising bank lines, the month-end close, collection drafts, asking the books — with the model that answers it.

  • A model per task. Each task can use Claude (the default), OpenAI, or your own model: any service answering OpenAI's /chat/completions (vLLM, Ollama, Azure OpenAI, a gateway in front of Bedrock). Choose Change on the task, the kind, the model name (empty uses the vendor's default; your own model must be named), its address for your own model, and the key.
  • Keys are stored encrypted, checked against the service before they are stored, and never shown again. A key connected once serves every task that uses that kind of model.
  • A task with no model of its own uses the AI assistant's (Settings → Integrations → AI assistant). That is a choice made in advance; it is not a fallback.
  • Test connection makes one real call and shows what came back. For Read documents it shows the model a tiny image: a model that does not read documents is found out there, not on the first bill.
  • No fallback, ever. A model that is down, refuses the key, answers in the wrong shape, or gives an answer that fails the task's checks sends the item to the review queue with the reason. No other model is tried.
  • What the models answered lists every call: the task, the model, the outcome, why it was not used, and the tokens it cost.

Changing a model needs Manage integrations (provider.manage); seeing them and testing one, See AI models (ai_model.read, Manager and Accounting).

With no model at all, an agent that needs one does not fill Needs attention with a failure per item, and the collections agent drafts no reminder whose text is the error. Instead each switched-on agent raises one notice, AI isn't set up for …, with a link to Settings → AI models. The agent's next run after a model is set up clears it. The assistant's panel points at Settings → AI models too; a list's Ask AI and Ask the books are not offered at all until a model is connected.

What never reaches a model​

Bank credentials and full account numbers never go to any model. Before anything is sent, every run of more than four digits that is not an amount, a date or the document's own number is replaced with [redacted], and fields such as account and routing numbers, tokens and keys are dropped. Bank lines go with the account's name and last four digits only. A build gate refuses any agent code that reads the vault or an account's number fields.

What each agent may do alone​

Settings → Accounting agents lists each accounting agent.

  • On / off, and who it acts for: an agent works with the Accounting role's permissions, as its owner, and everything it does is audited as the agent (agent:categoriser). Whoever switches it on owns it until somebody chooses Act for me.
  • Runs: every hour, daily at an hour, or only when started; and a monthly budget in model tokens (empty: the company's agent budget is the only bound).
  • Autonomy, per action:
    • Off — the agent does not do it.
    • Propose (the default) — it proposes, a person decides in the review queue.
    • Auto-post within rules — it acts alone only where an auto-post rule covers the item, the amount is within the rule's limit, and the item passed every code check. Anything else is still proposed, with the sentence saying why.
  • An action that moves money (a payment, a write-off) or that a person always decides (sending a reminder) cannot be set to Auto-post: the option is shown, disabled.

How much the agents do alone, at the top of the page, switches the whole company between Propose and Auto above confidence (the default for a company set up from now on) — see Needs attention and the autopilot.

Auto-post rules​

A rule names the items it covers — at least one of an account, a counterparty (matched as "contains"), a bank account or a bank category, or the least confidence it posts alone from (0 to 1, computed by code from evidence, never the model's word), optionally an amount range — and its limit, the most one item may post alone in the company's currency. For example: Stripe fees — counterparty contains "Stripe", account Bank fees, up to 50.00. A 12.40 Stripe fee posts alone; a 75.00 one is proposed: "75.00 is over the rule's limit of 50.00, so it was proposed."

Switch a rule off and the next item is proposed. Every change to a rule, an autonomy or a switch is audited. Changing any of this needs Manage accounting agents' autonomy (agent_autonomy.manage), which only Admin holds out of the box.

MCP clients​

An MCP client — Claude Desktop, an IDE — connects to /api/v1/mcp. Each person creates their own token for it on Settings → AI models → MCP: a name for the client, what it may do, and how many days it lasts (at most 90). The token is shown once.

  • Read: the client lists and calls only the read tools of the apps you have on, and only those your own permissions allow.
  • Read and propose: it may also ask for changes. A change is never made on the client's say-so — not even when it sets confirm. It becomes a proposal in Finance → Review queue for a person to decide. An auto-post rule on MCP clients naming the tool lets a change within the rule's limit run alone, logged with Undo; anything that moves money is always proposed.
  • Revoke a token to cut the client off at once; an expired token is refused the same way. Every use is counted on the list.

The product's own sign-in keeps working for first-party clients, under the same rule: a change is proposed, not made.

The bill coder (A8)​

The bill reader codes each line on its own (see the user guide). What it reads:

SettingDefaultWhat it does
agents.autopilot.min_confidence0.9The company's one bar. A bill line below it is flagged in Needs attention and its bill is not submitted alone.
agents.bill_coder.ask_modelonWhether the model is asked for a line the supplier's history and default cannot code with confidence. Its word is capped at 0.75, so a model alone never clears the default bar.

Under the autopilot (auto above confidence), accounting.bill_reader.submit is a routine action: its rule submits a drafted bill for its approver when the bill's least sure line reaches confidence_min, within the amount limit. Submitting moves no money; approval and posting stay with people. Lines a person confirms or corrects are audited (bill_line_coding.confirmed, .corrected, .rejected, with before and after).

The categoriser's accounts and guesses (A10)​

The categoriser is offered the bank feed's categories that fit the way the money went (expenses, cost of sales and a few balance-sheet kinds for money out; income, loans drawn and owner's money for money in), each with its description — never a bank's ledger or a system account. Its examples are the company's past lines from the same merchant (the line's words with the bank's boilerplate, digits and months left out). In the feed its suggestion is tagged AI guess and ranks after a rule, a code match, history and the supplier's default. Whatever the autonomy and its auto-post rules say, a guess no past line agrees with is held for a person (Item.held). The golden set is evals/categoriser/v2 (prompt version 2).

A10 changes​

  • Each agent's switch is labelled On or Off as it is.
  • Usage shows Not run yet for an agent that has never run, and otherwise the units used this month with the date of its last run.
  • Settings paths in messages now read Settings → Accounting agents and, for a model, Settings → AI models.

Expense claim accounts (round-3 review)​

SettingDefaultWhat it does
expense_claims.extra_account_codes (Claims may also use accounts)[]Account codes a claim line may be booked to besides the operating and other expense accounts, which are all a claim offers by default — a laptop bought on a personal card coded straight to equipment, say.

Equity, cost of sales and balance-sheet accounts are never offered unless named here. A claim line naming an account outside the list is refused.