← Back to the journal

DataFocus · Journal

Is a self-hosted AI data stack worth it in 2026? For one layer of four, yes

Self-host the layer that holds your business definitions, permissions and audit trail; keep models and most applications swappable or rented. Falling inference cost supports this, but operating cost and skills are real counterweights.

For one layer of the stack, yes; for the rest, usually not. Split an AI data stack into four layers: the foundation model, the context-and-governance layer (business definitions, entity mappings, permissions, approvals and the audit trail), the data engine, and the end-user applications. Rent the model, because its price falls many-fold every year and it is swappable behind an API. Buy commodity applications, because three-quarters of enterprise AI use cases are already bought rather than built, usually for good reason. Decide the engine by whether you already operate one. Self-host the context layer, because it is the only part that encodes your business, and the part most SaaS contracts let you leave behind. The counterweight is real: an engine you run is an engine you patch, back up and staff.

What does the evidence say about running AI components yourself?

Self-run AI is already mainstream in the infrastructure layer. Linux Foundation research published in June 2025 found that among organizations using AI, 89% incorporate open source AI somewhere in their infrastructure, and two-thirds say open source AI is cheaper to deploy. Meta commissioned the report and has an interest in open models, so read it as direction, not census.

The comfort predates generative AI. Red Hat's State of Enterprise Open Source 2022, a survey of 1,296 IT leaders, found 89% rated enterprise open source at least as secure as proprietary software: dated figures, but they show the security objection to running software yourself had already lost before the current wave.

Scale matters too. Stanford HAI's 2025 AI Index reports that 78% of organizations used AI in 2024, up from 55% a year earlier. At that coverage, where the business knowledge behind AI lives is an architecture decision, not a procurement detail. None of this says "self-host"; it says the question is which parts.

Why rent the model?

Because the model is the one component that gets cheaper and more interchangeable every year. The same Stanford HAI 2025 AI Index reports that inference cost for a system performing at GPT-3.5 level fell more than 280-fold between November 2022 and October 2024. Epoch AI's March 2025 analysis of inference prices found the price at a fixed capability level falling between 9x and 900x per year, depending on the milestone. A component on that curve is a utility: metered, switched when the price moves, never a strategic position.

Two consequences follow. A private model deployment needs a specific justification: data that cannot leave the network, or volumes high enough that owned capacity beats metered tokens. And whatever you build around the model must survive a swap. Definitions baked into one vendor's fine-tune or permissions enforced by a system prompt are lost on the day you switch, and the price curve says you will.

Why does the context layer behave differently?

Because it does not get cheaper. What "delivered" means in your contracts, whether "Customer A" in the CRM and "CUST-0A17" in the ERP are the same company, which revision of the discount policy is in force, who may see which rows in which region: this knowledge takes years to accumulate, is specific to you, and is worthless to anyone else. It is also what a model lacks when it fails in the way practitioners complain about most. In Stack Overflow's 2025 Developer Survey, 46% of respondents distrust the accuracy of AI tools against 33% who trust it, and 66% named "AI solutions that are almost right, but not quite" as their biggest frustration. In enterprise data work, "almost right" usually means plausible SQL against the wrong definition of revenue: a context failure, not a capability failure.

Google Cloud's 2025 DORA report frames the same point from the data side: AI's primary role is "an amplifier, magnifying an organization's existing strengths and weaknesses." Without a governed context, a model amplifies whatever ambiguity your systems already carry; behind one, it amplifies the definitions you agreed on. The layer, not the model, decides which you get.

Regulation agrees. The European Commission's Data Act, applicable from 12 September 2025, sets rules for customers switching between providers of data-processing services; whatever your jurisdiction, the right to leave with your own definitions belongs in the contract.

What is the case against self-hosting anything?

Three arguments, each needing an answer before you commit.

Most companies buy, and most are right to. Menlo Ventures' 2025 State of Generative AI in the Enterprise (December 2025) estimates enterprise spending on generative AI at $37 billion in 2025, up from $11.5 billion in 2024, and reports that 76% of AI use cases are purchased rather than built. Menlo is an investor and these are estimates, but the direction is unambiguous: for meeting notes, code completion and document drafting, a finished product beats a project.

Free software carries an operations bill. Servers, storage, backups, upgrades, monitoring, patching and on-call time arrive whether or not a licence fee does. DataFocus's own deployment guidance says so: "You pay for servers, model calls and third-party services." A no-fee edition removes a line from the licence budget, not the operations budget.

Skills are the binding constraint. A distributed SQL engine, a warehouse and a model gateway in production need people who have run them before. Without them, a SaaS product run by specialists is safer than a self-hosted stack nobody can upgrade.

None of them touches the context layer. They argue against self-hosting layers where you add no differentiation and carry the full operating burden: most layers, not all.

A decision rule, layer by layer

Treat the four layers as four decisions. The table is a framework this blog proposes, not survey output.

LayerSelf-host whenRent or buy whenWhat you lose if a rented vendor exits
Foundation modelData cannot leave the network, or volume makes owned capacity cheaper than tokensDefault: prices fall fast and models swap behind an APINothing durable; re-point the API
Context and governanceDefault: it encodes the business and must outlive every vendorOne narrow use case with no plan to reuse its definitionsDefinitions, entity mappings, permission rules, approval history, audit trail
Data engine and warehouseYou already run one, or residency rules require itNo platform team and modest volumesData you can export; pipelines and tuning you cannot
End-user applicationsThey need deep write access to core systemsDefault for commodity tasks with low data sensitivityWorkflows and habits, replaceable in weeks

The last column is the test. Rent anything whose loss costs you a re-pointing exercise; own anything whose loss costs you the record of how your business defines itself.

For the context layer, four checks separate a SaaS you can safely buy from one you should run yourself:

  1. Export. Can you extract definitions, entity mappings and access policies in a form another system can load? If the answer is a PDF, you are renting your own knowledge.
  2. Permissions. Does an agent see only what the authorizing user may see, enforced server-side across queries, summaries, caches, logs and exports, not by a prompt? IBM's Cost of a Data Breach Report 2025 found that 13% of organizations had a breach involving their AI models or applications, and 97% of those lacked proper AI access controls.
  3. Approval. Does an AI-proposed change take effect only after a named person approves it, with the approval bound to a specific version so that a later edit forces a new review?
  4. Trace. Can every answer be traced to the SQL that ran, the definition version in force and the scope returned?

A SaaS product that passes all four and meets your residency rules is a defensible buy. One that fails export or trace is a liability that grows with every definition you add; self-hosting that layer is worth the operating cost.

A worked example: a manufacturer with 40 analysts

Consider a hypothetical mid-size manufacturer: 40 analysts across finance, supply chain and quality, a platform team of three, an ERP and a CRM that disagree about customer identity, and a mandate to put AI in front of operating data this year.

Model: rented. No residency rule forbids an external model for aggregated operating data, and volumes are far below the point where owned GPUs beat metered tokens. The administrator configures the model service, reads what the platform sends to it, and signs that off against the data policy.

Context and governance: self-hosted. The definitions of "on-time delivery", "scrap rate" and "active supplier" were argued over for two years; the mapping that says CRM account 4471 and ERP vendor V-0919 are the same company is the output of a reconciliation project. This is what a vendor exit would cost, and where the four checks apply.

Data engine: one analytical engine, self-hosted, because the team already runs the ERP database and because the context layer needs an engine to execute against. One engine, not a platform.

Applications: bought. Meeting notes, code assistance and document drafting come from vendors, with low data sensitivity and no write access to the ERP.

The incremental burden is one engine and one context layer, patched and backed up by the existing team. The protection is that the next model swap or application vendor exit costs a re-pointing exercise, not a rebuild. The numbers are illustrative; the structure is the point.

How does a self-hosted context layer look in practice? DataFocus OT as one example

DataFocus OT is one product built for that middle layer, so its public documentation shows what the four checks mean mechanically. The site describes DataFocus as "The enterprise foundation for AI": a business ontology that gives AI a map of the business it can understand, a governed way in, and actions that a person approves.

The layer split is explicit. DataFocus OT is self-hosted on the customer's own servers. Administrators configure the large-language-model service, and with an external model the customer confirms what is sent to it under its own data policy: the model-layer decision from the table, made as a configuration step. In OT Flash the administrator can also see daily and monthly model token consumption under device authorization: a metered line the platform team can watch. A real compute engine sits underneath, Apache Doris in Flash and Trino and others in Heavy, and answers come from the SQL that actually ran rather than figures estimated by a language model.

Against the four checks:

  • Export. Owning your context, the homepage says, means the enterprise can Migrate: definitions, mappings and policies should be exportable, and the edition guidance has teams confirm ontology export scope before migrating.
  • Permissions. An agent gets only what the authorizing user may see; requests outside its grant do not reveal whether the data exists; withdrawing access takes effect at once. Administrators reuse existing enterprise accounts and resource permissions and check server-side visibility for queries, summaries, caches, logs and exports.
  • Approval. AI can only submit a draft, which takes effect after a person approves it. Every change records before and after, the diff and who approved it; approval binds a specific version and scope, and a version change forces a new review.
  • Trace. Every call records sources, definitions and returned scope. Every query returns the SQL that ran, the tables it used and a data fingerprint, and every agent action is recorded in an audit log.

The two editions follow the engine row of the table. OT Flash uses Apache Doris as both compute engine and warehouse, for one business domain whose data fits a single analytical engine. OT Heavy continues a Hadoop, Hive, Trino and Iceberg architecture with ETL and AutoML built in, for enterprises that already operate a big-data platform.

The cost arithmetic applies unchanged. The download page states that the Community Edition runs on a single node with unlimited users and no license fee, that the software is closed source with its terms shipped in each package, and that the licence "does not cover servers, model calls or operations." Both editions are distributed free from the download page and the GitHub repositories for OT Flash and OT Heavy, where installers and release notes are published. System requirements and supported platforms are in each edition's release notes; plan resources around data volume, concurrency and model requirements.

When is self-hosting the context layer the wrong call?

  • One low-sensitivity use case, already covered by a SaaS tool, with no plan to reuse its definitions.
  • Nobody who can own upgrades, backups and access reviews for one more system. An ungoverned self-hosted layer is worse than a governed rented one.
  • Your definitions already live in a SaaS platform that passes all four checks, export included. The layer is then already yours in the sense that matters.

Next step

Before the next AI contract, map your current tools to the four layers and run the four checks on whichever one holds your definitions. To see how one self-hosted context layer is structured, read the DataFocus OT product brief and the edition comparison on the download page.