# For ERP teams · Booki

> What a one-screen pilot takes, and what is not ready yet.

Source: https://booki.dev/erp-teams

For ERP and accounting teams

# Agents already use your product.

Your customers point browser agents at your screens today. Booki makes a screen something an agent can work cheaply and safely, under your rules and in your audit trail. You adopt it one screen at a time.

5.9×

cheaper to register one supplier invoice, measuredClaude Opus 5.5 on a rebuild of the supplier-invoice screen from ERP system 1 against Booki: $0.181 against $0.031 an invoice, 24 tool calls against 4, 32.3 s against 12.4 s. Right 5/5 and 5/5.

5/5

invoices right with a far cheaper modelClaude Haiku 5.5 got 5 of 5 right on Booki and 4 of 5 on the rebuilt ERP system 1 screen, at $0.0014 an invoice. On agent-first screens a cheaper model does the job.

1

screen to start a pilotYour API, database and sign-in stay as they are.

## Kort fortalt

For ledere i norske ERP- og regnskapsselskaper.

Kundene deres bruker allerede AI-agenter i nettleseren mot skjermbildene deres. Agentene leser hele siden etter hvert klikk, gjetter hvilket felt som er hvilket, og bokfører uten at noen regel blir sjekket.

Med Booki jobber agenten gjennom navngitte handlinger med reglene deres innebygd. Den bokfører og betaler innenfor reglene dere setter, som beløpsgrenser og åpne perioder, og sender resten til en person. Revisjonssporet viser hva agenten gjorde og hva en person gjorde.

Dere tar det i bruk ett skjermbilde om gangen, med samme API og backend. Koden er åpen (MIT), og en pilot kan måles før og etter på én oppgave.

## What happens today

A browser agent on an ordinary accounting screen.

The agent

What it costs you

It reads the whole screen as text, again after every click.

Someone pays for that in tokens and waiting time: your customer, or you if it is your assistant.

It guesses which field is which from labels and layout.

A wrong account or amount gets posted, and your support team hears about it.

Fields have no names, so it finds them by their position on the page.

One layout change and the amount goes into the wrong field.

Your audit trail records the signed-in user.

When the auditor asks who approved, the answer is a person who never saw it.

[See it measured on the home page](https://booki.dev/): the same invoice, booked once with browser tools and once through Booki.

## Benchmarks on Norwegian websites and accounting apps

Compare the same task with and without Booki. Choose an accounting task here, or try a public website below.

### Method and receipts

The measured results use actual token counts and provider list prices. The scripted receipts below replay a known sequence of steps and estimate tokens from character counts. [Read the benchmark method](https://github.com/Walgermo/booki/blob/main/benchmarks/agent/METHOD.md)

#### Measured model results

6.5×

cheaper per task, measured$0.011 against $0.069 on ERP system 1, Claude Opus 5.5, median of 5 runs, billed at list price.

4 → 1

tool calls5 model turns against 2, by the same model on the same task.

22.1 s → 5.8 s

start to finishThe model's own time included. Right 5/5 on ERP system 1, 5/5 on Booki.

5/5

right with a cheap modelClaude Haiku 5.5 on Booki, 40× cheaper input than Opus, at $0.0003 a run. On the rebuilt screens: 5/5 and 4/5.

### Scripted benchmark receipts

Estimated Booki cost: $0.012. Without Booki the estimate was 13× as much on ERP system 1 and 18× on ERP system 2.

**Booki+ ERP**Receipt · 2 model turns

Total**$0.012**

2,941 tokenscheapest

**ERP system 1 (rebuilt)**Receipt · 27 model turns

Total**$0.149**

298,195 tokens13× Booki

**ERP system 2 (rebuilt)**Receipt · 29 model turns

Total**$0.210**

438,272 tokens18× Booki

One line per model turn, with what the agent did; one square per 1 000 tokens billed for that turn.

**Show run details**

- ERP system 1 · DOM map26 calls, 27 model turns. The monthly figures are only in a tooltip, so it hovered every bar, switched year for last December, and read each tooltip.
- ERP system 2 · DOM map28 calls, 29 model turns. Canvas bars, and the tooltip never names the month, so it moved the pointer bar by bar and kept count.
- Booki1 call, 2 model turns. One snapshot: every month, the overdue buckets and the KPIs as numbers. No pixels.

Why not a screenshot?

- ERP system 1: 4 calls, 34,749 tokens billed (3,702 of them image), $0.053. Cheaper than hovering, but bar heights only give round numbers: it could not answer exactly, so it does not count as done.
- ERP system 2: 6 calls, 58,273 tokens billed (4,084 of them image), $0.069. Cheaper than hovering, but bar heights only give round numbers: it could not answer exactly, so it does not count as done.

With real models

The same task given to a model through the browser tools on each screen, run five times each. Right means the books ended up correct, checked after every run. Time is end to end, the model's own time included; cost is what the gateway billed at list price. Every model that was run is shown. The large models were right on both, so for them Booki saves cost and time; for the cheap ones it is whether the books come out right.

| Model | ERP system 1 | ERP system 2 | Booki |
| --- | --- | --- | --- |
| Claude Opus 5.5 | 5 / 54 calls · 22.1 s · $0.069 | 5 / 512 calls · 42.2 s · $0.124 | 5 / 51 calls · 5.8 s · $0.011 |
| Claude Sonnet 5.5 | 5 / 56 calls · 18 s · $0.036 | 5 / 519 calls · 40.2 s · $0.082 | 5 / 51 calls · 3.6 s · $0.003 |
| Claude Haiku 5.5 | 5 / 516 calls · 56.3 s · $0.006 | 4 / 528 calls · 63.7 s · $0.010 | 5 / 51 calls · 3.3 s · $0.000 |
| DeepSeek V4.1 Flash | 4 / 521 calls · 71.7 s · $0.013 | 4 / 524 calls · 66.5 s · $0.018 | 5 / 51 calls · 4 s · $0.001 |

Medians over five runs, through Vercel AI Gateway, 21 Nov 2026. `pnpm proof`

| Per run | ERP system 1 | ERP system 2 | Booki |
| --- | --- | --- | --- |
| Tool calls | 26 | 28 | 1 |
| Model turns | 27 | 29 | 2 |
| Tool definitions, tokens | 4,598 | 5,215 | 871 |
| Transcript, tokens | 17,188 | 24,547 | 1,951 |
| Input billed, tokens | 298,195 | 438,272 | 2,941 |
| Output, tokens (at least) | 346 | 213 | 3 |
| Cost, no caching | $1.1997 | $1.7573 | $0.0118 |
| Cost, with caching | $0.1491 | $0.2097 | $0.0100 |
| Cost of 100,000 runs, as compared | $14,906 | $20,974 | $1,182 |
| Tool time, median | 1.1 s | 1.4 s | 6 ms |
| Result checked | Correct | Correct | Correct |

Run

Claude Code · 21 Nov 2026

Agent

Scripted steps with the answer supplied

Task

Les tallene på dashbordet og svar med eksakte beløp i kroner: (1) inntekter og kostnader i oktober 2026; (2) hvilken av de siste tolv månedene (november 2025 til oktober 2026) som hadde høyest inntekt, og hvor mye; (3) hvor mye av kundefordringene som er forfalt mer enn 30 dager. Ikke endre noe.

Browser tools

Playwright MCP 0.0.84 · Chrome 158

Booki

Booki agent bridge

Tokens

Characters ÷ 4. Input billed = every turn re-sends the transcript

Prices

Opus 5.5 · $4 in · $20 out · $0.2 cache read, per million tokens

Speed

Tool time, median of 3 runs. No model time

Rerun

pnpm --filter agent-benchmark h2h

## Why the ERP system 1 screen was hard

What mapping its voucher screen showed, read only. Each one costs an agent calls, or lets it do what it should not.

- Account and VAT pickers are jQuery UI widgets with no names, so an agent picks them by their order on the page.
- Every pick opens a dialog with an unlabeled search box and one list mixing accounts, customers, suppliers and employees.
- The amount field has no label.
- Icon buttons are named by their icon font: “close”, “content_copy”.
- “Bokfør bilaget ved lagring” is ticked by default, so “Opprett” posts at once, with no rule in between.
- The menu and the older forms live in Shadow DOM, which tools that read a flattened page can miss.

## What one screen changes

The same screen, built on Booki controls.

Reads

One compact snapshot of each control: amounts in minor units, the balance, what is wrong, and which actions are allowed right now.

Acts

Named actions such as setMinor, addLine and proposeCoding. Your rules run inside them, and a refusal comes back as a sentence the agent can act on.

Governs

Posting and paying run on their own when your rules allow them: a balanced voucher, an open period, under an amount limit. What falls outside goes to a person. Approving and signing off stay a person's decision.

Records

Every change the agent makes carries the actor agent:<id>, so the audit log tells an agent's work from a person's.

Serves both

Your customers' agents and the assistant you build into the product use the same contract. You describe a screen once, in the screen.

## Why now

### You no longer decide whether agents use your product

Agents that drive web pages now ship inside browsers and assistants your customers already pay for. What you still decide is whether your screens are safe and cheap for them to work.

### Your own assistant needs a tool for every screen

Without this, that means a second API layer for the model, kept in step with the UI by hand. With Booki the screen is the tool, and it changes when the screen changes.

### Accounting has rules generic agent tooling does not know

Separation of duties, attestation, locked periods, VAT boxes, an audit trail. These controls carry those rules, so you do not teach them to each agent.

## What a pilot takes

One screen. Your API, database, sign-in and other screens stay as they are.

1. 01Pick one screenOne where customers ask for automation or agents already struggle: supplier invoice approval, bank reconciliation, expense claims.
2. 02Swap its fields, or define your ownUse the Booki controls, under your own tags and names if you like, or give a control of your own a primitive: its behaviour once, then its parts in your framework. The controls are unstyled; the default look is a set of --bk-* tokens you map to your own.
3. 03Keep your backendEach control reports changes through callbacks such as onInvoicesChange, and you save the way you do today. Your API checks the same rules with @booki-aui/core/server.
4. 04Connect the agent and the audit logcreateBookiAgent for your assistant, or WebMCP for agents in the browser. attachAudit sends every agent change to your audit log.
5. 05Measure one task, before and afterTokens, steps, wrong postings, and person-only steps the agent took. The benchmark in the repository runs that comparison against a real model with your API key.

The whole screen, wired to your API

```
import {
  BookiAccessProvider,
  BookiLocaleProvider,
  SupplierInvoiceInbox,
  attachAudit,
  createBookiAgent,
} from "@booki-aui/react"
import "@booki-aui/styles"

const agent = createBookiAgent({ agentId: "assistant" })
attachAudit(agent, (event) => api.audit.append(event), "assistant")

export function InvoiceApproval({ user, invoices }) {
  return (
    <BookiLocaleProvider defaultCountry="NO">
      <BookiAccessProvider actor={{ id: user.id, roles: user.roles }}>
        <SupplierInvoiceInbox
          invoices={invoices}
          onInvoicesChange={(next) => api.invoices.save(next)}
        />
      </BookiAccessProvider>
    </BookiLocaleProvider>
  )
}
```

## Fits your stack

Measured or tested in this repository, not promised.

Frameworks

React 19 (supported). Vue 3.5, Svelte 5, Solid 2 and Web Components for Angular and pages rendered on the server are experimental. One set of definitions, so the same control has the same actions everywhere.

Size

AmountField is 14.7 kB gzip, the whole of @booki-aui/react 99.7 kB, plus 15 kB for the agent bridge. Import per control: @booki-aui/react/amount-field.

Server

Renders on the server with renderToString; a test does it with no DOM present.

Styling

Unstyled. The optional stylesheet is CSS variables and data-slot selectors, so your design tokens can replace it.

Network

None. The library makes no requests; the agent bridge runs in the page.

Tests

About 500 unit and bridge tests, run on every change.

Licence

MIT.

**Your own tags and names, and a control of your own**

```
import { createChange, createParts, definePrimitive } from "@booki-aui/react"
import { amountField } from "@booki-aui/primitives/amount-field"

// A Booki control under your own names and tags: the primitive, your parts.
export const Belop = createParts(amountField, { root: "div", currency: "span", input: "input" })

// A control of your own: its behaviour once as a primitive, then its parts.
// The same primitive renders in React, Vue, Svelte, Solid and Web Components.
const projectPicker = definePrimitive({
  name: "project-picker",
  options: { projects: "value", value: "string", onValueChange: "callback" },
  state: (options) => ({ value: options.value ?? "" }),
  api: (context) => {
    const change = createChange(context)
    return {
      setProject: (id: string, event?: Event) => {
        if (!context.options().projects.some((p) => p.id === id)) {
          throw new Error(`No project "${id}".`)
        }
        return change("value", id, { reason: "set-project", event })
      },
    }
  },
  slots: (slot) => ({
    root: slot({ role: "group" }),
    select: slot({
      attrs: (state) => ({ value: state.value }),
      on: { input: (event, { api }) => api.setProject(event.target.value, event) },
    }),
  }),
  agent: { actions: ["setProject"] },
})

export const ProjectPicker = createParts(projectPicker, { root: "div", select: "select" })
```

## Security model

What an agent can reach on a Booki screen, and what it cannot.

Reads

Only the state a control declares. The bridge redacts account numbers, IBANs and KIDs. It can still report whether a secret control is open or visible.

Does

Only the actions a control lists, with typed arguments. Your rules run inside them and refuse with a sentence.

Within your rules

Steps marked data-agent-confirm, such as posting or paying, run when your allow function says yes, for example under an amount limit. Approving, signing off and releasing are not agent actions at all.

Text on screen

An agent may be told things by text on a page. Booki cannot stop a model from reading that, but it limits what the model can do with it to the actions above.

Your server

Still decides. The screen checks role, period and approvals for speed and clarity; @booki-aui/core/server runs the same rules in your API, with the caller your sign-in established. An agent with every role is still refused a person's decision.

## The same rules on your server

The screen is for speed and clarity; the server is the gate. Try it against this site's API.

- Agent posts a balanced voucher dated 31 October
- Agent posts a voucher that does not balance
- Agent posts into September, which is closed
- Agent approves a supplier invoice
- Kari, manager approves the same invoice
- Ola, controller releases a payment run he approved

Live: `POST /api/books` on this site, with `guardPostVoucher`, `guardDecideApproval` and `guardReleasePayments` from `@booki-aui/core/server`. The agent holds every role and is still refused a person's decision.

**An API route with @booki-aui/core/server**

```
import { guardPostVoucher, toHttp } from "@booki-aui/core/server"

// POST /api/vouchers. Who is calling comes from your sign-in, never from the body.
export async function POST(request: Request) {
  const actor = await session(request) // { id, kind: "person" | "agent", roles }
  const { lines, date } = await request.json()

  const verdict = guardPostVoucher(
    { actor, entity: "nordlys-as", locale: "nb" },
    { lines, date, rules: { periods: await periods(), accounts: await chart() } },
  )
  if (verdict.ok) await books.post(lines, date, verdict.actor) // "agent:bookkeeper" or "nina"

  const { status, body } = toHttp(verdict) // 401, 403, 409 or 422 with the control's own sentence
  return Response.json(body, { status })
}
```

## What is not ready

Read this before you plan a pilot.

- The agent bridge it is built on is in beta (0.1.0-beta.18). Its API may still change.
- Outside React the controls come as parts, so you write the markup around them (rows, options). The agent cursor works everywhere through <booki-agent-cursor>.
- Not published to npm yet. Install from the repository for now.
- No production users yet. The real-model runs are small, five per screen and model, on rebuilt screens, and two tasks are withdrawn until they are run again.
- Server guards cover posting, approvals, payment release, period close, invoices and VAT. Other writes need guard() with a rule of your own, and you wire the caller from your own sign-in.
- Labels are English and Norwegian. Sweden, Denmark, the UK and Germany have English labels and example VAT codes, as experimental starter profiles.
- One maintainer so far. If the project stops, you keep an MIT copy of plain React code running against your own backend; nothing depends on a service.

Open source under the MIT licence. The library runs in your app and sends nothing anywhere. [Open an issue](https://github.com/Walgermo/booki) to say which screen you would pilot.

Pilot one screen

## Pick the screen agents struggle with most.

Say which one in an issue, or open the demo ERP and run a whole month-end first.
