Skip to main content

AU FP&A. Cash, budgets and variance on Australian 30 June years. Pixel art of a bar chart with a rising arrow beside the AU FP&A wordmark in slab-serif block letters.

OzFPA is an Australian extension of openfpa, by Guiderail, for accountants and analysts doing forecasting and month-end work: 30 June financial years, Xero AU account mapping, GST and BAS cash timing and payroll on-costs.

OzFPA builds monthly, weekly and daily cash forecasts, a three-way monthly forecast (profit and loss, balance sheet and cash flow, with GST and payroll liabilities paid on their due dates) and a management briefing from a company's own records. Every assumption is declared in a file you can read, and the funding decision stays with a person.

Start here: the worked Lumbridge case · setup · Australian scope and source dates · the case explained on the web

Source examples also cover refreshing the cash forecast from actuals, passing the opening balances to close controls, tracing WIP into project cash and separating restricted cash.

Continue with the 3-month close simulation, supplier payment plans, grant-to-cash handoff and Ridgeline receipt-delay and hiring sensitivities.

Worked example

The Lumbridge worked example is synthetic, and a human approves the assumptions and funding decision.

Input: Lumbridge Services' fabricated records, NSW payroll assumptions and dated customer receipts and payments for October to December 2026.

Lumbridge Services is a fictional Newcastle maintenance business. Its Varrock and Falador service lines are Old School RuneScape references; no game knowledge is needed. All amounts are AUD.

Try it without Python: download the Excel workbook, or get the sample pack with its source files. Use desktop Excel with automatic calculation. Read the case and compare both scenarios in your browser before opening the file.

To reproduce it from a clone, use Python 3.14 and the locked development environment:

uv sync --locked --extra dev
uv run --locked --extra dev python examples/lumbridge-services/models/generated/lumbridge.py

Output: briefing.md, lumbridge.xlsx, monthly and cash schedules in examples/lumbridge-services/output/.

The briefing, the monthly and cash schedules and the JSON summary from that run are committed under examples/lumbridge-services/output/, so the result can be read without installing anything; the workbook is rebuilt locally. A rendered chart of the 13-week cash line with the 45-day delay, exported from the workbook in Excel, is on the site at https://duguid.com.au/assets/examples/lumbridge/cash-preview.png with its capture record.

Forecast measure Receipt on time Receipt 45 days late
Quarter revenue $180,000.00 $180,000.00
Quarter profit before income tax $35,957.55 $35,957.55
October closing cash $32,040.00 ($11,960.00)
Lowest daily closing cash $16,800.00 ($25,160.00)
December closing cash $67,320.00 $67,320.00

Human decision: Can the business meet its next payments if a customer pays late, and should the owner defer discretionary equipment spending?

In desktop Excel, change Assumptions!B2 from 0 to 45. This delays one $44,000 receipt and creates a $25,160 cash shortfall on 6 November without changing profit. Restore 0 after use. The workbook supports only whole-day receipt delays from 0 to 120; CSVs and briefing text are fixed exports.

Read the assumptions and limits before using the example. This synthetic case does not establish client outcomes or forecast accuracy, and the commands above create files without establishing native Excel recalculation.

Harbour Light provides a separate Victorian wholesale example with FY2027 reporting and quarterly BAS cash timing; other examples use synthetic and public data.

Package

Package lifecycle: published. The distribution is au-fpa-pack, the import is pyfpa and the command is openfpa. Version 0.9.0 is on PyPI as au-fpa-pack and has an immutable GitHub release; a clone stays the way to develop it.

On Python 3.14 or newer, run python -m pip install au-fpa-pack. Never install the PyPI distribution named pyfpa: it is an unrelated project that also installs a top-level pyfpa package.

Connect a local MCP client

Install the release that includes the stdio server with python -m pip install au-fpa-pack==0.9.0. Configure the client's command as openfpa and its arguments as mcp-serve and the absolute path to an existing working folder. To launch the server manually from that folder, run openfpa mcp-serve .. The client sends one JSON-RPC message per line on standard input.

Version 0.9.0 negotiates 2025-11-25, 2025-06-18, 2025-03-26 and 2024-11-05 through initialize. An unknown version receives an offer of 2025-11-25. Version 0.9.0 also answers revision 2026-07-28, which has no handshake: server/discover lists the supported revisions, each request names its revision in _meta, and a revision the server lacks gets error -32022 with that list. tools/list exposes cash13_workbook, which writes a 13-week cash forecast workbook under the working folder, and variance_summary, which summarises supplied budget and actual figures.

From an accounting export to the 13-week workbook

In a source checkout until the next release, openfpa cash13-from-export derives the 13-week cash config from a balance sheet export and aged receivables and payables exports: opening cash from the named bank accounts, each receivable and payable in the week it falls due and, when you name BAS accounts, the BAS on its quarterly due date. Every assumption is written at the top of the YAML file and returned in the JSON summary, and a required field heading it cannot map is refused by name. Through MCP, pass the same inputs as export to cash13_workbook to go from the exports to the workbook in one call:

{"config": "cash13.yaml", "out": "cash13.xlsx",
 "export": {"balance_sheet": "xero_bs.csv", "bank_accounts": ["090"],
            "window_start": "2026-10-01", "receivables": "aged-receivables.csv",
            "payables": "aged-payables.csv", "bas_accounts": ["GST", "826"]}}

With the Lumbridge Services files in the server folder, this writes cash13.yaml and a workbook closing at 65,200: 30,000 opening cash, 66,000 of receipts, 13,200 of supplier bills and a 17,600 BAS on 28 October 2026. The CLI reference gives the accepted headings and refusals.

Skills

The OzFPA skills/ folder holds 17 skills. Sixteen are the pack's own, grouped by what they are for:

  • Australian rules: fpa-au-drivers, fpa-au-gst-bas, fpa-au-payroll, fpa-au-xero
  • Onboarding and building: fpa-learn-business, fpa-configure-actuals, fpa-scaffold-model, fpa-excel-model
  • Running the month: fpa-monthly-close, fpa-cash-runway, fpa-board-briefing, fpa-cfo-judgment
  • Learning from outcomes: fpa-capture-correction, fpa-backtest-learn, fpa-research-loop, fpa-portfolio-learn

The seventeenth, skills/generated/sku-profitability, is the worked example of a company-specific skill the workflow writes, not a skill the pack ships for every company.

.claude-plugin/plugin.json declares the repository as the au-fpa-pack plugin, at the package's version, licensed Apache-2.0 AND MIT (the MIT part is Guiderail's upstream work). The repository is also its own marketplace, so Claude Code installs the skills with:

/plugin marketplace add ryanduguid/OzFPA
/plugin install au-fpa-pack@au-fpa-pack

Alternatives and scope

OzFPA is built for local Australian cash, GST, BAS and tax-timing modelling from records a firm supplies, rather than a hosted subscription or live bank-feed service:

  • openfpa: the upstream workbench, for work that needs no Australian rules.
  • Offline receipts, actions and reforecasting: predicted_receipts times open invoices from observed customer payment lag, risk_week_actions ranks debtor-chase and payment-timing levers (never facility draws), weekly_actuals_score checks closed weeks against actuals, and reforecast_from_actuals rolls the 13-week forecast forward without nightly polling or live bank feeds.
  • Budgets and BAS timing: pyfpa.io.xero_budget reads 2 saved JSON responses from Xero's Accounting API (GET /Budgets/{BudgetID} and GET /Accounts, without credentials or network calls; see the Xero recipe) and carries them through BAS, PAYG, FBT and public-holiday-adjusted payment dates (built to published API documentation; not run against a live Xero organisation).
Kernel packages, upstream workbench and reference

Kernel packages and how each is reached

The CLI and the skills reach 3 OzFPA kernel packages:

Package What it is for How it is reached
pyfpa/memory Company memory on disk: the .fpa/ workspace, intake, sources, mappings, connectors, corrections, experiments, entrypoints and the retrieval index. The openfpa CLI. Every workspace command in the CLI reference goes through it.
pyfpa/research The champion and challenger loop: a company objective, scored epochs and a model registry that only a recorded human approval changes. openfpa status reads the model registry. The loop itself runs from skills/fpa-research-loop against the Python API.
pyfpa/portfolio Cross-client learning: a portfolio manifest, priors mined and validated across clients, and recurring generated skills promoted into a shared library. Promotion is default-deny: mining and validation propose, and nothing reaches the library without a PromotionApproval the practitioner records for that exact candidate. The Python API only. No CLI command reaches it, and today the one documented route is skills/fpa-portfolio-learn.

Promotion is the one place the pack would move one client's information into another client's work, so it refuses to until you record the decision. The approval is an acknowledgement of a judgement you made, not authentication and not legal proof that the client consented. Running locally means nothing goes out over the network; it does not by itself make that reuse permissible, so read SECURITY.md and the fpa-portfolio-learn guardrails first.

Guides

The OzFPA guides are grouped as how-to and reference pages.

How-to

Reference

Background

Contribute

Frequently asked questions

Which PyPI package should I install? Install au-fpa-pack on Python 3.14 or newer (python -m pip install au-fpa-pack). Its import name is pyfpa and its CLI command is openfpa. Never install the PyPI package named pyfpa, which is an unrelated project.

How do I build a 13-week cash forecast from my accounting export? Export a balance sheet and, if you want invoices and bills in the forecast, aged receivables and aged payables as CSV files, then run 2 steps from a source checkout (git clone https://github.com/ryanduguid/OzFPA, then cd OzFPA). Step 1 writes the config; here it uses the Lumbridge Services example files and the bank account code 090:

uv run openfpa cash13-from-export .   --balance-sheet examples/lumbridge-services/data/xero_bs.csv   --bank-account 090 --window-start 2026-10-01   --receivables examples/lumbridge-services/data/aged-receivables.csv   --payables examples/lumbridge-services/data/aged-payables.csv   --bas-account GST --bas-account 826   --out cash13.yaml

Step 2 builds the workbook: start uv run openfpa mcp-serve . from your client (see Connect a local MCP client) and call cash13_workbook with {"config": "cash13.yaml", "out": "cash13.xlsx"}. The example closes at 65,200. Review the assumptions at the top of cash13.yaml first.

Which accounting exports can it read? CSV only. A balance sheet in either of the 2 layouts read_xero_report reads (a flat Code,Account,Amount file, or the report layout exported from your accounting system's Reports), and aged receivables and payables CSVs with a contact, an invoice or bill number, a due date (YYYY-MM-DD or DD/MM/YYYY) and an amount due. Headings are matched without case; the CLI reference lists the accepted ones. An export it cannot read is refused with the file, line and value.

What does it do with GST and BAS? It does not split GST on each invoice: an invoice is taken at its amount due. When you name your GST and PAYG accounts with --bas-account, it pays their balance on the quarterly BAS due date for the quarter ending on the balance sheet date, or banks it as a refund. The balance sheet must be at a quarter end, and the due dates come from the maintained schedule in pyfpa.au.

Does my data leave my computer? No. The export step, the workbook builder and the MCP server read and write local files only, and the server opens no network port. The export step and the workbook builder make no network call: they ran with every network connection blocked and produced the same results. The server confines every path to the working folder you give it.

What does it not do? It does not connect to your accounting system, predict when customers really pay, or give financial or tax advice. The limits of the export step list what it cannot know, such as payroll, loans and tax instalments.

Does OzFPA connect to live bank feeds or Xero accounts? No. All calculations, forecasts and MCP tools run locally on files you supply, with no credentials or network calls. For Xero budgets, pyfpa.io.xero_budget reads saved JSON responses from GET /Budgets/{BudgetID} and GET /Accounts.

Do I need desktop Excel to check the generated workbooks? Yes, to verify live formula recalculation. Python generates the .xlsx workbooks without running Excel's calculation engine, so open them in desktop Excel with automatic calculation enabled before relying on calculated outputs.

How does cross-client learning prevent client data leakage? pyfpa/portfolio is default-deny. Mining and validation only propose candidates; nothing enters the shared library until a practitioner records an explicit PromotionApproval for that candidate. Read SECURITY.md and skills/fpa-portfolio-learn before promoting anything.

What does the local MCP server expose? openfpa mcp-serve <folder> speaks newline-delimited JSON-RPC 2.0 over stdio and confines every file path to <folder>. It exposes cash13_workbook (build a 13-week cash forecast workbook) and variance_summary (compare modelled and actual amounts).

Can OzFPA build a 13-week cash forecast from my accounting exports? Yes, from a source checkout until the next release. openfpa cash13-from-export reads a balance sheet export and optional aged receivables and payables CSVs and writes the 13-week config: opening cash from the bank accounts you name, each invoice and bill in the week it falls due and, when you name BAS accounts, the BAS on its quarterly due date. Through MCP, pass the same inputs as export to cash13_workbook to get the workbook in one call. The CLI reference lists the accepted headings.

How are overdue invoices and bills treated? An overdue line lands in week 1 and a line due after the forecast window is left out. The assumptions at the top of the YAML file and in the JSON summary give how many lines fell in each case and their totals.

What does the export step not derive? Payroll, super guarantee and other recurring costs; add them to the config yourself. When you name BAS accounts, it settles the quarterly BAS only and refuses a balance sheet date that is not a quarter end.

Is OzFPA financial or tax advice? No. It is a local planning aid; assumptions, rates, thresholds and funding decisions remain with a qualified practitioner. See DISCLAIMER.md.

Licence

Ryan Duguid's original work is licensed under the Apache License, Version 2.0. Guiderail's upstream code remains under MIT, as recorded in NOTICE. When redistributing this work or a derivative, preserve the applicable attribution notices in NOTICE as required by section 4(d). Versions released before this change keep the licence they were released with.

The licence does not cover the scripture quotation in the footer. Scripture quoted by permission. Quotations designated (NET) are from the NET Bible® copyright ©1996, 2019 by Biblical Studies Press, L.L.C. netbible.com All rights reserved.

Planning aid, not professional advice, an assessment, a private ruling or a statutory lodgement; confirm rates, caps, thresholds and treatments against current rules. See DISCLAIMER.md.


'The plans of the diligent lead only to plenty.' Proverbs 21:5 (NET)
Reusing this code? See NOTICE for attribution. AI agents: see AGENTS.md.
Made in Newcastle, Australia by Ryan Duguid.

Metadata

Release files for au-fpa-pack 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for au-fpa-pack 0.9.0
File Size Uploaded Provenance Actions
au_fpa_pack-0.9.0.tar.gz 479.8 kB With provenance Details for au_fpa_pack-0.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for au-fpa-pack 0.9.0
File Interpreter ABI Platform Actions
au_fpa_pack-0.9.0-py3-none-any.whl Python 3 none any Details for au_fpa_pack-0.9.0-py3-none-any.whl

Total release size: 751.4 kB

Release files / au_fpa_pack-0.9.0.tar.gz

Download URL au_fpa_pack-0.9.0.tar.gz
Size 479.8 kB
Tags Source
SHA-256 checksum
How to use checksums
78319659e701f0568c96f0d5831ffd67cfd45ee3f9ce33f856393f3c48390e7e
BLAKE2b-256 checksum
How to use checksums
04692964cec16b72dfb27a513305256ff0a034882b04883bcbb7295caf1adaa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / au_fpa_pack-0.9.0-py3-none-any.whl

Download URL au_fpa_pack-0.9.0-py3-none-any.whl
Size 271.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3e7f5c0bf89204f7c280bc0e7b602aaca172a57a72f5a59e2a7b0bf8fd22a0c
BLAKE2b-256 checksum
How to use checksums
0f7375e5021d29043c590ee5112beaf77a107fd76f2801656e732addee56de83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for au-fpa-pack 0.9.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for au_fpa_pack-0.9.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page