Vendor lock-in is the situation where leaving a provider is painful enough that you stay even when a better or cheaper option exists. It is not unique to AI, but AI tools make it easy to slide into, because they are new, fast-moving and often bundle several services together.
How lock-in builds up
Nobody decides to be locked in. It accumulates through small conveniences:
- Prompts and instructions written inside one vendor's console or tuned to one model's quirks.
- Data and memory such as chat history, uploaded files and AI memory that cannot be exported in a usable form.
- Proprietary features like custom agents, special tool-use formats or plugins that only work on one platform.
- Hosting and infrastructure where an app builder also runs your database, sign-in and domain, so downloading the code gives you only part of the product.
- Fine-tuning done on a model you cannot take with you, since the resulting weights stay with the provider.
Why AI makes it sharper
Models change quickly. The best or cheapest option this quarter may not be next quarter, and providers can retire a model on a schedule you did not choose, as covered under model deprecation. Startups can also shut down, which turns a switching cost into a deadline. If your prompts, test cases and data only exist inside the vendor's product, a change that should take an afternoon takes months.
How to reduce it
You rarely need to avoid vendors altogether. You need an exit that works:
- Keep prompts, system prompts and test sets in your own repository.
- Build a small set of real tasks with known good answers, so you can compare a new model with evals quickly.
- Put a thin layer between your code and the provider, so the model name is a setting. Many services offer an OpenAI-compatible API, which helps, and a gateway or router can do this for you.
- Check that you can export your data in a standard format, and actually try the export.
- Prefer an open-weight model where portability matters most, since you can run the same weights elsewhere.
The practical takeaway
The test is simple: if this vendor vanished with 30 days' notice, what would you lose and how long would it take to rebuild? If you cannot answer, you have a dependency, not a choice. Do the export drill while everything still works.