← All insights
Best PracticesMay 26, 20266 min read

The Hidden Costs of Building AI Agents In-House: A Year-Two Reality Check

Share
Article cover placeholder

TL;DR

The honest year-two cost of building AI agents in-house: operating layer, model provider integration maintenance, compliance work, opportunity cost, maintenance scaling, hiring, and incident exposure. With the platform alternative compared on the same accounting.

The Hidden Costs of Building AI Agents In-House: A Year-Two Reality Check

The most common AI build-versus-buy decision goes through three phases. Year one: build looks cheaper, team is excited, leadership approves. Year two: the operational costs the build glossed over start to show. Year three: leadership wonders why the AI program is consuming senior engineering time that should be on the company's actual product.

This is the year-two reality check for the build option. Not arguments that building is wrong — there are real cases where it is right — but the honest accounting of what build actually costs once the first agents are live.

What the build pitch usually claims

The pitch for building in-house typically argues:

  • "Open-source frameworks (LangChain, CrewAI, etc.) are free; the platform vendors are charging for what we can do ourselves"
  • "We have engineers who can build this; the time is already paid"
  • "We get full control over every aspect of our AI stack"
  • "We avoid vendor lock-in"
  • "We can move faster without a vendor in the loop"

Each claim has truth in it. Each claim also conceals the next-twelve-months cost.

Hidden cost 1: the operating layer

The frameworks are free. The operating layer around them is not.

For a meaningful agent estate (5-20 production agents), the operating layer includes:

  • Audit logging that meets AI Act Article 12 requirements
  • Per-agent and per-pipeline observability (traces, costs, latency, errors)
  • Multi-LLM routing with per-task model selection
  • Prompt and tool versioning
  • Per-team budget controls with hard caps and alerts
  • RBAC for agents, knowledge bases, and tools
  • PII redaction at the gateway
  • Production deployment pipelines, rollback, canary release
  • Incident response runbooks
  • Multi-tenancy if applicable

Each of these is engineering work. For a 5-20 agent estate the build cost lands at 1.5-4 FTE-years over the first 18 months and 0.5-1.5 FTE-years per year ongoing. At fully loaded engineering cost of EUR 150-200k per FTE, that is EUR 300k-800k upfront and EUR 100k-300k per year ongoing — for the operating layer alone, before any agent development.

Hidden cost 2: model provider integration maintenance

The model landscape evolves faster than any other layer of the stack. Frontier models ship new versions every 3-6 months with API changes, capability changes, and pricing changes. New providers emerge and old ones change terms. Open-weight models release frequently.

For an in-house stack, keeping up means:

  • Tracking each provider's roadmap and deprecations
  • Updating integration code when APIs change
  • Re-evaluating which model is best for each task as new models ship
  • Negotiating contracts and pricing with each provider
  • Managing the provider sub-processor list for compliance

This work absorbs 0.3-0.8 FTE continuously. Platforms do it once for many customers; in-house teams do it once per company.

Hidden cost 3: compliance and audit work

The EU AI Act, GDPR, NIS2, sectoral regulations layer over the AI estate. For a build approach:

  • Per-agent risk classification documentation
  • DPIA for each agent that processes personal data
  • Article 12 logging implementation (with the content content regulators actually want)
  • Article 14 oversight workflows
  • Conformity assessment for high-risk Annex III systems
  • Annual bias audits where applicable
  • Regulator-ready evidence pack creation

The compliance engineering work for a 5-20 agent estate runs 0.5-1.5 FTE in the first year (heavy work) and 0.3-0.7 FTE ongoing. Platforms ship a lot of this as features; in-house teams build it.

Hidden cost 4: the "we have engineers" trap

The argument that internal engineers are "free" because they are already employed has a hidden cost: opportunity cost.

Senior engineers building the AI operating layer are not building the company's actual product. For most companies the product is the strategic differentiator, not the AI operating layer. Diverting senior engineers from the product to build undifferentiated infrastructure trades product velocity for AI tooling that the company will eventually replace with a platform anyway.

The opportunity cost is not on the AI budget line. It shows up as slower product velocity, missed product opportunities, and senior engineering attrition when the team realises they are doing platform work instead of product work.

Hidden cost 5: maintenance scaling

Year one: 5 agents, 1-2 engineers on the platform layer, manageable. Year two: 15 agents, 2-3 engineers, growing. Year three: 25 agents, 3-5 engineers on platform plus 2-3 on compliance, becoming a small organisation.

The build cost scales non-linearly with agent count because the integrations, the compliance evidence, the model maintenance all grow with the estate. A platform vendor amortises this across customers; the in-house team carries the full marginal cost.

At year three the in-house AI infrastructure team is typically larger than the product team that uses the agents. Few CTOs see this coming in year one.

Hidden cost 6: hiring and retention

AI platform engineering is a specific skill set. The engineers who build this well are in demand and expensive. Hiring takes 3-9 months per role. Retaining them in a team that is doing undifferentiated infrastructure work is harder than retaining them in a team that is doing product work.

The fully loaded cost per AI platform engineer in EU markets in 2026 is typically EUR 150-250k. The hiring cost (time, recruiting, ramp) adds 30-50% to the first-year cost per hire. The cost of failed hires that leave within 12 months is significant and underestimated.

Hidden cost 7: incident exposure during gaps

In the windows when something is partially built but not finished — the audit log that works but does not capture everything, the PII redaction that handles most cases but not all, the budget control that alerts but does not block — the company runs production AI with a partial safety net.

The incidents that occur in these windows can be expensive. A serious PII incident under GDPR can cost EUR millions. A serious AI Act incident can cost a similar order. The probability of any one incident is low; the cumulative probability over an 18-month build-out is meaningful.

The platform alternative

A platform alternative for the same 5-20 agent estate over the same period:

  • Platform subscription: EUR 50-300k per year depending on scale
  • Per-run model costs: pass-through to the providers, same as build approach
  • Internal engineering: 0.5-2 FTE for agent development (the value-adding work)
  • Compliance work: 0.2-0.5 FTE per year (much reduced by platform features)
  • No model provider maintenance burden
  • No operating layer build cost

12-month total: EUR 250k-1m depending on scale.

12-month total for the build approach (honestly accounted): EUR 600k-2.5m depending on scale, with year-two costs continuing.

The platform option is 30-60% cheaper for most estates, with substantially less risk and faster time to value. The build option wins only in specific cases: very large estates (hundreds of agents) where platform per-agent pricing becomes the dominant cost; very unique requirements that no platform satisfies; cases where AI is the company's actual product.

When build is the right answer

Build is the right answer when:

  • AI is your product, not a tool you use to build your product
  • You have ML engineering capability that exceeds what platforms offer
  • Your requirements are genuinely unique and platforms cannot satisfy them
  • You have committed capital for a 18-36 month build-out
  • The estate is large enough that platform per-agent pricing becomes unworkable

For most enterprises adopting AI as an operational capability, none of these apply. The build pitch sounds attractive in the first conversation; the build reality plays out badly enough that most teams who go that route migrate to a platform within 2-3 years anyway, having paid for both.

What we tell prospective customers

This article reflects what we tell prospective customers honestly: build is right for some companies, buy is right for more. The honest path is to model both options with the same accounting (full operating layer costs, full compliance costs, full opportunity costs) and let the numbers decide.

The dishonest version is comparing a vendor's subscription price to the cost of an open-source framework and concluding the framework is cheaper. That is comparing the subscription to the licence, not to the total operating cost.

For more on the build-vs-buy decision the build vs buy article goes deeper on the architectural and operational trade-offs. For the comparison between AgentWorks and the popular frameworks the AgentWorks vs LangChain article lays out the framework-vs-platform distinction.

About the author

· Founder, AgentWorks

Erwin Berkouwer is the founder of AgentWorks — an AI agent platform purpose-built for European teams that need EU AI Act-ready governance, multi-LLM choice across OpenAI, Anthropic, Google and Mistral, and transparent per-token € pricing.

Read more about Erwin