how to use ai with pennylane

How to Use AI with Pennylane for Financial Analysis

By Anthony Barbey · July 10, 2026 · 6 min read

How to Use AI with Pennylane for Financial Analysis


Pennylane holds your whole accounting picture: the ledger, the invoices, the accounts, the full detail of what your business earned and spent. That completeness is exactly what makes it a good input for AI. It is also why the naive approach falls short faster than people expect.

Because a full ledger is not a model. It is a record of what happened, coded by account. Turning it into a P&L you can plan on, a budget you can compare against, or a forecast you can defend, is a separate job. Claude can do a lot of that job. This article walks the workflow that works, shows where it quietly breaks, and covers how to make the output last longer than the session you built it in.


The Simplest Version: Export and Ask

You do not need an integration to start. Pennylane can export your ledger and your P&L. Claude reads those files well.

  1. In Pennylane, export the ledger or the P&L for the period you care about.
  2. Open Claude, attach the file, and ask a real question: "Build me a monthly P&L from this ledger, group the accounts into revenue, COGS, and opex, and tell me where margin moved."
  3. Iterate. "Which cost line grew fastest this year?" "What was my gross margin by quarter?" "Which accounts drove the swing in Q3?"

For a one-off read of your accounts, this is genuinely enough. Claude groups the accounts, computes the totals, and explains what it sees. If you wanted to understand last year, you are done.

The limits show up the moment you want something repeatable and defensible.


Where the Naive Workflow Breaks

Three failures appear as soon as you go past a one-off read.

The account grouping drifts. Ask Claude to build a P&L from the same ledger twice and the mapping of accounts to lines can shift. It is inferring structure from account names each time, with no fixed chart of accounts anchoring it. Acceptable for a glance, not for a P&L you sign.

It forgets. Next month you export again, open a new chat, and Claude has no memory of how you mapped the accounts, which lines you split out, or what your budget was. You re-explain the entire structure every session. The analysis is disposable by design.

There is no model underneath. Claude describes what the ledger says. It does not hand you a structure you can forecast on. The moment you want actuals versus budget, or a reforecast of the rest of the year on real numbers, you are back in a spreadsheet, wiring it by hand, and the AI is out of the loop.

None of this makes the workflow wrong. It makes export-and-ask a reading tool, not a modelling tool. Knowing the difference is what separates people who use AI on their accounts from people who trust the result.


Making It Repeatable: Give Claude a Persistent Layer

The fix is not a sharper prompt. It is giving Claude somewhere to put the ledger that persists between sessions, with a fixed structure it does not re-invent each time.

Concretely, three things:

  • A fixed mapping. Your Pennylane accounts map to the same P&L and balance-sheet lines every time, so the numbers are comparable month over month instead of re-inferred from account names.
  • A structure that holds. Your ledger lands in a model with explicit relationships between variables, not a flat grouping. Change one assumption and the linked figures follow instead of breaking silently.
  • Memory across sessions. The model, its conventions, and its history stay put. Next month, Claude continues instead of starting over.

This is the layer that turns "Claude read my Pennylane export" into "Claude keeps my P&L current." Tools built for this exist. Layerz is one: it connects to Pennylane, pulls your ledger into a structured model, and lets Claude drive it through MCP, so the mapping, the actuals, and the reforecast all persist. But the principle matters more than the tool. Whatever you use, the job is the same: separate the structure from the data so the structure can be reused.


A Workflow That Survives Next Month

Here is the durable version, tool-agnostic:

  1. Connect once, not export every time. A live connection to Pennylane beats a monthly export. Fewer steps, no stale files, repeatable sync.
  2. Fix the mapping once. Decide how your accounts map to your P&L and balance-sheet lines, and keep it. Comparability is the entire point of a monthly number.
  3. Keep actuals and plan separate. Land the Pennylane figures as actuals next to your budget on the same structure, so "are we on plan" is a glance, not a rebuild.
  4. Let the agent do the running. With an MCP connection, Claude pulls the month, updates the actuals, and reforecasts the rest of the year from the chat, keeping full context.
  5. Export clean when you need to share. A board or a sponsor wants Excel, not a chat log. The output should drop to a clean, auditable workbook any time.

The gap between step 1 here and export-and-ask is the gap between a reading and a system.


One Honest Limitation to Know

A tool reading from Pennylane reads your books. It does not write back to them, and it should not: your accounting stays your source of truth. The mapping from accounts to model lines is set up once per model, and new accounts appearing later may need a quick re-map. Worth knowing so you treat the AI layer as a modelling surface on top of Pennylane, not a replacement for it.


The Takeaway

Using AI with Pennylane is real and useful today, and you can start with nothing more than an export and a good question. That gets you a read of your accounts.

Getting a P&L you trust every month is a different job. It needs a persistent layer under the AI: a fixed mapping, a structure that holds, and memory across sessions. Add that, and Claude stops being a tool you re-explain your accounts to and becomes one that keeps your model current.

If you want the connected version, here is how to connect Pennylane to Layerz. If you would rather stay on exports for now, the workflow above still works. The point is to know which one you are doing.

Anthony Barbey

Anthony Barbey · Founder, Layerz

Anthony spent his career in finance and consulting, close to the modeling workflows of M&A, transactions, and advisory. He now builds Layerz, the finance workspace that keeps Claude in the context of your model so it doesn’t drift, forget between sessions, or burn tokens on grids.

Related articles

Ready to build models that are defensible by design?

Layerz separates model structure from data so every number is traceable.

Explore Layerz →