Updated
Build your own ERP with AI in 2027: what it takes, and when to buy
You can now build your own ERP with AI coding tools: for a technical team, a working order, invoice and ledger prototype takes weeks. The hard part starts when the books depend on it. In Germany, a system that keeps the books must make every entry unchangeable, keep records for up to ten years, open its data to a tax audit and feed your tax advisor, and nobody certifies that it does.
So the build-or-buy question has moved. The bottleneck used to be writing the code. Today it is owning a compliant finance system for ten years, and that is the cost to weigh against a bought one.
Why are companies thinking about building their own ERP now?
Three things changed at once. AI coding assistants write a working internal tool in days. Growing companies run into the limits of off-the-shelf systems early, because their billing, stock or approval logic does not fit the template. And the alternative, a legacy ERP project, takes many months and a consultant for every change.
The result is a reasonable instinct: if the system has to be shaped around the business anyway, the team might as well build it. Many teams already have the pieces: a database of orders, a script that creates invoices, a spreadsheet that turns bank exports into a cash view. Connecting them into one system looks like a short step.
It is a short step for operations. Orders, stock, projects and internal approvals are your own business logic, and a self-built tool can fit them better than anything bought. The finance core is different, because the law and your tax advisor set its rules.
What does an ERP have to do that a prototype does not?
A prototype records transactions. A system that keeps German books has to meet obligations that only show up in an audit or at year-end.
- Unchangeable entries. A booking may not be changed in a way that hides its original content, and no change may leave it unclear whether an entry was made originally or afterwards (§ 146 para. 4 AO, the German Fiscal Code). A database table that anyone with access can update does not meet this. You need an append-only journal, period locks and a correction path that leaves the original visible.
- Retention. Books and annual statements must be kept for ten years, booking documents for eight (§ 147 AO). Your system, or its data in readable form, has to outlive several rewrites and the developer who built it.
- Audit access. During a tax audit, the tax office may inspect the data in your system, have it evaluated to its specifications, or ask for it in a machine-readable format (§ 147 para. 6 AO).
- Procedural documentation. The GoBD (German digital bookkeeping rules) expect a written description of how your system works, understandable to an expert third party within a reasonable time. For a self-built system, you write it, and you keep it current with every change.
- Tax and handoff. The advance VAT return (UStVA) calculated from the ledger, and a DATEV export your advisor can import without retyping.
- E-invoicing. Under the transition rules in § 27 para. 38 UStG, paper and PDF invoices to German businesses are only allowed in 2027 if your prior-year turnover was 800,000 euros or less, and then no longer from 2028. Your system has to produce and validate XRechnung or ZUGFeRD files. The details are in e-invoicing in Germany.
None of this is difficult to code once. All of it has to stay right every year.

Who confirms that a self-built system is compliant?
Nobody, in advance. The German tax administration says in the GoBD that the variety of systems rules out general statements about whether a piece of software is compliant, and it issues no positive attestations, neither in an audit nor in a binding ruling. Certificates from auditors or IT specialists can help when choosing a product, but they do not bind the tax office (GoBD paras. 179 to 181).
That is true for bought software as well. The difference is who carries the work. A vendor that sells to many German companies maintains the hash chain, the period lock, the export formats and the documentation of its software, and updates them when rules change. A company that builds its own does all of that itself, and the managing directors stay responsible for proper books either way.
What does a self-built ERP cost after the first year?
The first version is the cheap part. The cost sits in the years after.
- Rule changes. Charts of accounts, VAT rules, e-invoice formats and bank file formats change every year or two. Each change is a small project that someone has to notice, build and test before the deadline.
- Key people. The developer who wrote the ledger logic is often the only one who understands it. When that person leaves, the company owns a finance system that nobody can change safely.
- Distraction. Every week your engineers spend on the VAT logic is a week they do not spend on your product.
- Workarounds. Self-built systems collect exceptions as fast as bought ones. Over time they pile up into the same ERP complexity debt that teams wanted to escape.
AI tools lower the cost of each change. They do not remove the need for someone to own the result and answer for it in an audit.
When does it make sense to build your own ERP?
Build where your business is different. Buy where the law makes everyone the same.
Building is a good choice for tools around the core: an internal dashboard, a pricing calculator, a warehouse app for a process nobody else has, glue between two systems. These carry your competitive logic, change often, and have no retention or audit duties of their own as long as the bookings land in a proper ledger.
Building the ledger itself, receivables, payables and VAT makes sense only if you have a finance engineering team that will exist for ten years and a tax advisor willing to review your system. Very few growing companies have both.
How do you decide between building and buying?
Put both options through the same five questions:
- Who keeps the ledger compliant with § 146 and § 147 AO for the next ten years, and who writes the procedural documentation?
- What does one change cost: a new entity, a new billing model, a new approval rule?
- How does the tax advisor receive the data, and who tests that handoff each month?
- What happens when the person who built or configured it leaves?
- How long until the first month closes in the new system?
Our ERP selection criteria turn these into a scorecard, and ERP implementation shows how to roll out in modules instead of one big cutover.

How does Agent F sit between building and buying?
Teams that consider building usually want one thing: a system shaped around their business. Agent F is an AI-native ERP built to give that without owning the code. The Agent F ERP Factory learns your requirements, business logic and workflows, and the gaps between the tools you use today, then configures the ERP around them: the modules you need, approval rules, chart of accounts and workflows. Every new module or changed process is a configuration update.
The compliance core comes with it and is maintained for you: an append-only, hash-chained journal (GoBD), period locks with an audited correction path, every entry linked to its source document, tax-auditor access, UStVA, ZM and OSS calculated from the ledger, XRechnung and ZUGFeRD validated before sending, and the DATEV export for your advisor. Rules run first, AI proposes where they leave gaps, and a person approves. Implementation typically takes 4 to 10 weeks, against 12 to 18 months for a legacy ERP. Your engineers can still build the tools around it through API keys and webhooks.
Before you start building, write down which parts of your process are truly unique and which are the same for every German company. Build the first list, and test whether a configured system covers the second.
Learn how Agent F works, or see it on your own data at agent-f.ai/demo.
This article is for general information only and does not constitute tax or legal advice. Parts of it were generated with AI. Please consult your tax advisor or legal counsel before acting on it, and feel free to reach out at team@agent-f.com with any questions or for support.