Three tracks on a dark grid converging into one red control point, with a single track continuing beyond it

How to avoid AI vendor lock-in with a model-neutral architecture

AI in engineering

Published
Reading time
5 min read

Lock-in forms in three places: the product, the model behind it, and the tools the team builds with. Each gets its own exit ramp: a product that works without AI, one model-neutral control point that, with the hosting setup, contains every model swap, and tooling the product doesn't need to run.

Most companies we talk to have no written answer to the question boards usually lead with about AI: what happens when the vendor goes away. “Goes away” covers a lot of ground: the vendor shuts down, raises its prices, changes its data terms, retires the model you built on, or is bought by a company you can’t work with. The usual answer is “we’d deal with it”, and in practice that means a rebuild under pressure.

If the system is designed for it, the honest answer is that nothing breaks. You design that in at three places. You can check each one. This page is the exit-ramp section of our operating model on its own; the whole model is in Running AI under governance.

The three places AI gets load-bearing#

AI attaches to a software organization in three layers, and lock-in forms separately in each.

In the product layer, features in the software you ship call a model. If the model disappears, the feature can fail, and the product can fail with it.

Behind those features sits the model layer: which vendor’s model answers the calls, how it is called, and whether anything you own only works with that one model.

The tooling layer is the AI assistants and agents the engineering team uses to write, review, and test code. If those are switched off, the team slows down and the product keeps running.

For each layer, remove the AI and record what still runs.

A product that runs without AI#

We build the core workflow to work without AI first and add AI afterwards to fill in the gaps. If every AI service disappeared tomorrow, the product keeps serving customers. The harder edge cases fall back to the human reviewers who check the work anyway. Every cost cap or shut-off exercises that path.

Predictive and analytical features run on standard statistical models on your own infrastructure. Forecasting, scoring, and anomaly detection have well-established methods that need no AI vendor at all.

The check is a table. List every feature that calls a model, and next to each write what the user sees when the call fails. Any row that says “the feature errors” is a feature that is load-bearing on a vendor, and it needs a fallback before it needs a better model.

One control point, model-neutral#

All of the product’s AI runs through a single internal control point, built on a model-neutral interface. Route every feature through that point, and reject direct vendor calls in code review. Behind it, the model is configuration: which vendor, which model, which version, which endpoint.

Swapping one model for another is then a change inside the control point and the hosting setup: engineers evaluate the replacement, update those two, and deploy them. That includes swapping a hosted commercial model for an open-weight one running on your own hardware. The product features need no change, because none of them knows which model it is talking to.

The interface has to stay neutral: vendor-specific parameters, response formats, and prompt tricks stay inside the control point, behind the interface, where replacing them is a change to one component. The moment a feature reaches around the control point to use something only one vendor offers, that feature is locked in.

No fine-tuning, no proprietary model#

Fine-tuning a vendor’s proprietary hosted model on your own data recreates the lock-in a model-neutral interface removed. If the provider doesn’t let you export the tuned weights, and proprietary hosted models typically don’t, a move to another vendor’s model means another tuning run.

So we deliberately avoid fine-tuning, and we avoid building a proprietary model that would lock a product to one vendor. Whatever makes a feature good lives where it can move: in the prompts, in the retrieval that feeds the model, in the library of verified examples it is shown, and in the evaluation set that decides whether a candidate model is good enough. All of that is yours, versioned in your own repositories, and it carries over to the next model, with adjustments where the evaluation set shows they’re needed.

When is the open-weight option the right one?#

The model behind any feature should be the output of an evaluation. Benchmark the candidates before committing, commercial against open-weight, on your own accuracy and cost criteria, and pay for a hosted model only where measured quality or established user trust justifies it over an open-weight one. From CRISP-DM to CPMAI: building an AI project lifecycle follows a predictive maintenance project through model evaluation, which it treats as a decision gate.

Self-hosting is an option to keep open and rarely the first step. Open-weight quality moves between one evaluation and the next, and the model-neutral control point keeps a switch inside it and the hosting setup when the economics justify it. The point at which self-hosting and pay-per-use cost the same is a computable break-even: the full cost of running the model at your volume, hardware and operations included, against the per-token bill for the same volume. Once volume approaches the crossover, run that study; before then, don’t assert the answer either way.

Re-evaluate it at each gate of the program, alongside the 30-day checkpoint and the 90-day review, because the answer changes as volume grows and as the candidate models change.

What does the team lose if the tools are removed?#

Without the coding tools, engineers keep maintaining the reviewed code in their own repositories at their previously measured pace, slower and with lighter review, and with no functional loss. The code is ordinary, reviewed, tested code, and none of it requires AI to maintain, because it passed the same review gates human code passes and a human engineer is the author of record on every change.

At each gate we use the measured delivery and quality results to pick the vendor for per-person tooling, and we swap it when a later gate says so. The delivery pipeline must run without a vendor’s agent: a build or a deployment that needs one to complete has made that vendor load-bearing.

What developer tooling costs, and how that spend is capped per person, is on the spend page: How to cap and control AI spend in an engineering organization. Is “percentage of code written by AI” a good metric? What to measure instead covers what passes through the review gates whether or not AI wrote the code.

Frequently asked questions

What is a model-neutral architecture?

All product AI calls go through one internal control point whose interface carries no vendor-specific parameters or formats. Moving to another vendor or to an open-weight model is then a change inside the control point and the hosting setup, with the product features untouched.

Does fine-tuning a vendor's model create lock-in?

Yes, when the provider doesn't let you export the tuned weights, which is typical of proprietary hosted models. Moving vendors then means another tuning run. Keep what makes a feature good in prompts, retrieval, verified examples, and evaluation sets, which you can carry to the next model.

When should you self-host an open-weight model?

When a measured break-even says so: the full cost of running the model at your volume against the per-token bill for the same volume, on quality you benchmarked yourself. Once volume approaches the crossover, run the study, and re-check it at each program gate.

Can an engineering team keep shipping if its AI coding tools are removed?

Yes. The code is ordinary, reviewed, tested code in your own repositories, and none of it needs AI to maintain. The team returns to its previously measured pace, slower and with lighter review, with no loss of function.

  • ai
  • governance
  • engineering-leadership
  • risk
Share
Portrait of Srđan Marković

Srđan Marković

CTO

Srđan Marković is the CTO of Red Black Tree. He writes about running AI in an engineering organization under governance, developer security and the operating decisions behind both.

Related articles