Forgebench
Log InBook A DemoTry The Sandbox

Resources  /  Blog  /  Build vs. Buy for AI Governance: A Decision Framework

Build vs. Buy for AI Governance: A Decision Framework

Product8 min read
Karunakar Mohapatra profile

Karunakar MohapatraNovember 10, 2026

Build vs. Buy for AI Governance: A Decision Framework article cover

Key Takeaways

  • Shadow AI was involved in 43% of breaches in 2026, up from 20% a year earlier, and 92% of AI-related breaches involved no proper AI access controls (IBM, 2026, via Varonis).
  • Organizations with an AI governance platform are 3.4 times more likely to achieve highly effective AI governance (Gartner, February 2026).
  • Building buys fit and control of the roadmap. Buying buys time and coverage. Each carries costs its advocates tend to understate.
  • Five factors decide which path suits an organization: regulatory perimeter, how proprietary the governance logic is, talent, compliance scope and time to enforcement.

Shadow AI was involved in 43% of data breaches this year, more than double the year before. In 92% of AI-related breaches, no proper AI access controls were in place (IBM, 2026).

The gap those numbers describe is not a missing policy. Most enterprises have one. What is missing is enforcement: nothing sits between an agent, its credential, and a model call with the authority to say no. That is the job of an AI governance control layer: the system that identifies every developer, application, and agent calling a model, decides what each may do, enforces budgets and policy before the call goes out, and records what happened.

Closing that gap forces a decision every technology leader now faces: build the control layer, or buy it. In most organizations, that decision is never formally taken. Build arrives informally, through engineering. Buy arrives through whichever procurement template already exists. This article makes the strongest case for each, and leaves the decision where it belongs.

Build in-house, buy a platform or assemble open source: less a choice between products than about which layer to own. Scope, not preference, should settle it.

Build versus buy is less a choice between two products than a choice about which layer to own. Scope, not preference, should settle it.

When should you build AI governance in-house?

Building is the instinctive choice for strong engineering organizations, and it has real merit.

Fit. A control layer built in-house can mirror the organization exactly: its directory, its data classifications, its approval workflows. Policy is written in the organization's own terms rather than translated into a vendor's model.

Control of the roadmap. Governance evolves at the organization's pace and against its priorities. Nobody waits for a vendor to support a new provider, protocol, or regulation.

Ownership of the critical path. Every model call passes through the control layer. Building it means owning its latency, its uptime and its failure behavior, with no third party in that path.

A head start from open source. Routing, retries, and provider abstraction are solved problems. A gateway such as LiteLLM can put every model behind one endpoint within weeks. It is the natural route when the team already runs open-source infrastructure in production, the use cases are few and stable, and compliance spans one or two frameworks rather than five.

Hard requirements. For some organizations, building is the only option. A regulatory or sovereignty boundary may rule out every commercial platform (FedRAMP High, IL5, UK SC/DV and certain sovereign-cloud estates fall here). Or the governance logic may be so specific that no vendor has modeled it, as with high-frequency trading decision policies or defense multi-INT fusion constraints.

Both cases are worth pressure-testing before committing. What looks like a regulatory edge case is often something an existing platform can already be configured to handle.

What building your own AI gateway and governance layer demands

The case for building rests on the build being complete, and that is where most estimates go wrong.

On a whiteboard, AI governance is a handful of features. In production, it is five disciplines: agent orchestration, tool-use safety, regulatory-grade audit, workflow integration, and model governance. The most deceptive pieces are the ones that look finished. An API key is not an identity you can verify, rotate, and tie to a directory. A log line is not a tamper-evident audit trail. A budget field is not enforcement.

Consider a familiar sequence. A platform team issues one API key per team to get a pilot moving. Months later, an engineer leaves, and the key she wired into a CI job keeps working, keeps spending, and shows up in the logs as "team-payments". Nothing was misconfigured. The key was simply never an identity. (Ungoverned Agents explains why an authentication record is not an actor record.)

Published estimates reflect how much scope matters. They range from 4 to 8 weeks for an MCP-only gateway to 12 to 18 months for full governance. Both are vendor figures, but the spread is instructive: the timeline depends almost entirely on whether identity, policy, budgets, and audit are in scope.

The open-source head start follows the same pattern. The first quarter feels like progress: one endpoint, every model behind it. The harder questions arrive later, usually from security or finance. Who owns this key? What was it allowed to call? Why did this team's spend triple last week? Answering them means adding identity and audit to a gateway already in production, and retrofitting them is harder than designing them in.

Suppose the build ships on schedule. The commitment has only begun. A provider retires a model version, and every policy that named it has to be found and rewritten. An agent starts calling a new MCP server, and the audit schema has no field for the tool it used. One governance vendor, Openlayer, puts the ongoing cost at $800K–$1.2M a year for four to six specialists. Treat that as a vendor estimate; the direction holds at a fraction of the size.

Coverage is the quieter casualty. Under schedule pressure, the hardest capabilities (bias detection, tracing across multiple models, mapping controls across compliance frameworks) are deferred, and they tend to resurface in an audit.

The scarcer resource is talent. A control layer that depends on two or three engineers is one resignation away from becoming an orphaned system.

When does buying AI governance make sense?

Buying is the instinctive choice for organizations under time pressure, and it has merit of its own.

Time to enforcement. A platform can be enforcing policy within weeks. That matters because teams do not pause AI adoption while governance is under construction. A product team waiting on the internal gateway pastes a provider key into an environment variable and plans to migrate later. Later rarely comes. Breaches involving shadow AI averaged $5.39 million in 2026, against a global average of $4.99 million, and 68% of breached organizations had no AI governance policy at all (IBM, 2026, via Varonis).

Coverage from day one. Identity, budgets, policy, guardrails, and audit arrive designed together, including the unglamorous parts a build tends to defer.

Upkeep carried elsewhere. New providers, retired models, new protocols such as MCP and new regulatory frameworks become the vendor's engineering problem rather than a standing line in your own roadmap.

Control where it counts. Buying can feel like handing a vendor the keys. It is worth examining which keys. Every governance system has two layers. The substrate is identity, policy enforcement and the record. The business logic is what runs on top: orchestrators, agents and workflows. The substrate answers the same question in every enterprise (what can this agent or credential do, on whose behalf, and is it staying within those bounds?), while competitive advantage lives in the layer above.

Market evidence. 76% of enterprise AI use cases are now purchased rather than built, and Gartner finds that organizations with AI governance platforms are 3.4 times more likely to achieve highly effective AI governance.

What buying demands

The case for buying rests on the vendor being the right one, and that deserves the same scrutiny.

  • A third party in the critical path. The platform's latency and availability become yours. Ask how it behaves when it fails: does traffic stop, or flow ungoverned?
  • Roadmap dependency. A vendor builds for its median customer. Requirements that sit far from that median may wait.
  • Data residency. Unless the platform runs in your environment, prompts and telemetry leave your boundary.
  • A customization ceiling. Requirements can outgrow what the platform can configure.
  • Exit cost. Ask what switching would take at month 18: a quarter of work, or a rewrite.
  • Ownership that stays internal. A platform enforces policy. Someone inside the organization still has to define it, own it, and answer for it.

How do you decide between building and buying?

Neither case wins in the abstract. Applied to a specific organization, one usually does. Score each factor on which way it points for yours.

FactorPoints to build whenPoints to buy when
Regulatory perimeterA compliance boundary rules out most vendorsVendors are already authorized inside your boundary
How proprietary the governance logic isThe rules encode something no vendor has modeledThe rules are identity, budgets, policy and audit
Engineering talent over three yearsHeadcount net of realistic attrition covers the build and its upkeepThe build depends on two or three people
Compliance frameworks in scopeOne or two, and stableSeveral at once, and changing
Time to enforcementThe organization can run unenforced for 12–18 monthsAgents are already in production

The rows do not carry equal weight. A hard regulatory boundary can outweigh every other factor. Weigh each by what your organization cannot compromise on.

The case for Forgebench

For organizations whose framework points toward buying, or toward a hybrid of the two, here is how Forgebench, SeedlingLabs' operating plane for enterprise AI, approaches the problem, and what it leaves open.

Forgebench is the control layer, delivered as one deployment. Credentials, policy, budgets, the gateway, guardrails, observability, audit and optimization arrive already integrated.

Its organizing idea is the credential. A developer holds one, an application holds one, an agent holds one, and governance travels with it: the budget, the policy, and the record attach to the credential, not to whichever system is orchestrating above it.

  • An identity, not just a key. Every developer, application, and agent holds its own credential, with single sign-on against your existing identity provider. Access follows joiners and leavers, not outliving them.
  • Enforcement, not a budget field. A call over its ceiling is refused before it reaches a provider, so it costs nothing. (Cost Control covers why a dashboard is not a ceiling.)
  • An audit trail, not a log line. Every governed call lands on one hash-linked record, so you can detect an edited or deleted entry.
  • Containment without a release. Tool policy, approval chains and ceilings change from the console, not through a deployment. Because the gateway, budgets, guardrails, and record ship as one system, a new provider or model does not mean re-validating controls across separately maintained tools.

It is designed to keep the advantages that make building attractive. The gateway and observability are built on established open-source components, LiteLLM and Langfuse, and Forgebench adds the governance layer above them: credential issuance, policy, budgets, and the record. It is model-agnostic and runs as SaaS or self-hosted, with air-gapped deployment available on Enterprise, so organizations with sovereignty requirements keep prompts and telemetry inside their own environment. It governs the substrate and leaves your orchestrators, agents, and workflows untouched, so the logic that differentiates you remains yours.

What it leaves open is roadmap fit, the risk no vendor can settle in an article. A pilot against your own requirements is the right test.

Forgebench architecture: AI apps and coding assistants connect through Forgebench, which sets credentials, federation policy and budgets before the call, runs gateway, guardrails and observability on the call path, and provides audit and optimization, before reaching 1000+ LLMs and MCP servers.

The decision is yours

Build versus buy is a decision about which layer to own. Some organizations should own all of it. Others will own the logic on top and buy the substrate beneath. Either way, the decision deserves to be made deliberately, before the first sprint or the first purchase order.

Four questions sharpen it:

  1. What can we not compromise on: a regulatory boundary, a precise fit, or time?
  2. Who maintains this in year three, and what happens if they leave?
  3. What does the enforcement gap cost us each month until controls are live?
  4. If we chose wrong, what would it take to switch at month 18?

If buying is on your shortlist, [see how Forgebench fits your architecture →]

Frequently asked questions

Should we build or buy AI governance?

It depends on five factors: regulatory perimeter, how proprietary the governance logic is, engineering talent, compliance scope, and time to enforcement. Building suits organizations with hard boundaries, proprietary logic, and a durable platform team. Buying suits those with agents already in production and limited time.

How long does it take to build AI governance in-house?

It depends on scope. A narrow gateway can take weeks. Full governance with identity, policy, budgets, and audit is commonly estimated at 12 to 18 months.

Is an open-source gateway enough for AI governance?

It covers routing and provider abstraction. Identity, budget enforcement, tool policy, and an audit-grade record still have to be built and maintained on top.

Does buying AI governance mean giving up control?

Not necessarily. A governance platform runs the substrate: identity, policy, budgets, and audit. Your agents, workflows, and business logic remain yours, and a self-hosted deployment keeps data inside your environment.

Cookie settings

Our Cookie Policy lists every cookie and what it does.