TL;DR:
- AI drastically lowers the upfront cost of building custom software, making it viable to replace expensive SaaS subscriptions, provided the replacement is engineered for production rather than “vibe-coded.”
- Compounding 14.3% annual SaaS inflation, low license utilization (54%), rigid workflows, and third-party security risks are pushing CTOs to bring narrow, high-value tools in-house.
- Unsupervised AI code introduces high security flaw rates (45%), duplicates logic, and shifts spending into post-launch maintenance, which accounts for roughly 60% of a tool’s total lifecycle cost.
- The highest-ROI builds are greenfield, modular tools (such as BI dashboards and workflow automations) layered on top of existing systems of record, backed by CI/CD, strict governance, and clear ownership.
- With senior architectural oversight and AI-assisted delivery, AgileEngine helped a healthcare client replace 72 failed vendor dashboards in three weeks, cutting monthly operating costs by 80% and tripling query speeds.
Increase the ROI of software projects by over 3x with AI-augmented remote development and design solutions tailored to your business goals.
Book a consultationOne of our clients, a healthcare practice management platform, recently faced a problem many CTOs will recognize. Its analytics vendor experienced a massive outage, and more than 70 dashboards went dark overnight.
Two or three years ago, the standard fix would have been to sign with another vendor. A forward-looking team might have built a vendor-agnostic layer to make the next switch easier. Our client took a third, more ambitious route that’s becoming increasingly feasible thanks to AI: it replaced the vendor altogether with software it owns. An increasing number of companies now choose the same path.
This article walks through that case, the reasoning behind it, and the wider shift AI has triggered in build-versus-buy decisions. It also covers the condition that decides whether such a build pays off in the medium to long term.
How AI is changing the build versus buy math
AI has cut the cost of building software, so more companies now replace software-as-a-service (SaaS) subscriptions with tools they build themselves. But there’s a catch: a homegrown tool generates value only if the team builds it like production software.
The shift is already visible in industry reports and press coverage:
- McKinsey’s State of AI in 2026 survey found that 32% of respondents at AI-using organizations say their company has decided against buying at least one software product or feature because it could build it with agentic coding tools.
- Retool reports that 35% of teams have already replaced at least one SaaS tool with a custom build.
- Business Insider has profiled companies such as West Monroe, Gray, and Twilio that chose to build internal tools with AI instead of buying them from vendors.
The takeaway for engineering leaders: AI makes a minimum viable product (MVP) cheap to develop. It does not, however, make a vibe-coded tool cheap to own. The build only beats the subscription when the version that goes into production is properly engineered. Vibe coding is fine for testing an idea, but not for building business-critical software.
The case against buying more SaaS
Subscriptions may look cheap on the invoice, but their true cost keeps growing over time. Four costs tend to compound:
- Seats nobody uses. Organizations use only about 54% of the SaaS licenses they pay for. Among the large enterprises, that adds up to about $19.8M of waste a year.
- Features nobody uses. The average enterprise product has a feature adoption rate of 6%, meaning a small fraction of features drives most clicks. You pay for the rest anyway.
- Prices that keep rising. SaaS inflation reached 14.3% in September 2026, after a record 16.4% in June. That is several times the consumer inflation rate.
- Workflows that fit the vendor, not you. Off-the-shelf tools push teams to adapt their processes to the product. Customizing a package to close that gap is costly, and you pay that cost again whenever the vendor ships an upgrade.
Data ownership and security
Cost is only half the argument. The other half is control over where your data lives and who can reach it.
Regulation
The General Data Protection Regulation (GDPR) and evolving rules for data sovereignty, residency, and governance make every external processor a compliance question. Some leaders are already acting on this: one infrastructure consultant reports a strong push from C-suite executives to move applications on-premises over data sovereignty concerns.
Attack surface
Every new vendor opens a new door into your systems. The 2025 Verizon Data Breach Investigations Report found that third-party involvement in breaches doubled to 30%. The Salesloft Drift breach showed how this risk plays out: attackers stole Open Authorization (OAuth) tokens from a single chat integration and used them to pull data from customers’ Salesforce instances. Bringing a tool in-house closes that door. A custom solution stays under your control, and you can even air-gap it if needed.
Keep in mind that this control cuts both ways: a homegrown tool can become an attack vector too if your team doesn’t secure it properly. Whether it ends up safer than a vendor-provided solution depends on the security practices and engineering experience of the team that builds it.
Building got cheaper, but not everywhere
AI-assisted development makes new, self-contained tools far cheaper to build. That is exactly the profile of most SaaS replacements.
The gains are uneven, though. Stanford research cited in a 2026 DevOps Research and Assessment (DORA) report found that AI yields a 35–40% productivity gain on simple greenfield tasks. On projects that involve complex legacy codebases, the impact often drops to 10% or less.
This is good news for build-versus-buy decisions. An internal dashboard or workflow tool starts as a greenfield project, so it sits in the sweet spot for AI-assisted delivery. For a closer look at where AI speeds up production work and where it doesn’t, see our evidence-based guide to AI-assisted software development in production.
Why vibe-coded tools don’t save money
OpenAI founding member Andrej Karpathy coined “vibe coding” for a style of development where you “forget that the code even exists”. Martin Fowler considers this approach fine for disposable software with a small audience. By the same logic, vibe coding is a poor fit for mission-critical software. A tool that replaces a SaaS subscription may have a small internal user base, but its importance for business processes rules out the “fast and dirty” approach.
Security flaws
In Veracode’s testing of more than 100 large language models (LLMs), AI-generated code introduced security flaws in 45% of tasks. LLMs also tend to suggest nonexistent packages, and attackers can register those names to plant malicious code. The security community calls this attack slopsquatting.
In more extreme cases, the model itself can work against you. In October 2026, security startup Hirundo found that Alibaba’s Qwen3-Coder wrote more hackable code when told the app was for a US defense contractor: 70% of those apps could be breached, versus 59% for a Chinese contractor. The gap persisted even when the prompt explicitly asked for secure code, and Hirundo traced it to political alignment embedded in the model’s weights. Cases like this are rare, but they turn the choice of AI model into a security decision in its own right.
Maintenance and ownership
- Agents often break things when left alone. In the SWE-CI benchmark, most models finished fewer than 25% of long maintenance runs without a regression. All 20 models tested scored below human-written code on the maintainability index.
- Code quality erodes. GitClear’s research shows code duplication is up 81% and code reuse metric is down 70% compared with the pre-AI baseline.
- Tools become orphans. Retool found that 60% of builders have created tools outside IT oversight, and such tools often end up depending on a single creator. That gives them a bus factor of one: a single departure leaves no one who knows how the system works. From then on, maintaining the tool becomes slow, risky, and expensive.
- Agents with too much access can cause damage. In one notable 2025 case, Replit’s agent deleted a production database during a code freeze.
A fast start, a painful future
Most of a tool’s cost comes after launch: maintenance accounts for about 60% of its lifecycle cost. A tool that was quick to build but hard to maintain shifts spending into that most expensive phase.
As AI speeds up output, both the total load on teams and the risk of each change go up. Faros measured this effect in its Q3 2026 AI Engineering Report: the teams it studied saw a 125% increase in monthly incidents, 76% in unreviewed merges, and 300% in time spent on quality assurance (QA).
Per pull request, the picture is improving: incidents fell from 242.7% above the low-AI-adoption baseline in April to 14.5% above it in Q3. The risk of each change is trending back toward normal, even though it’s not quite there yet.
What an architected in-house tool looks like
For an internal tool that replaces a vendor, meeting production standards comes down to five things.
Production-grade delivery. The tool needs continuous integration and continuous delivery (CI/CD), tests, observability, and a named owner (individual or a team). As inference gets cheaper, the real cost of AI adoption “has shifted to governance cost,” according to the DORA report on the return on investment (ROI) of AI-assisted development. Practices from the human-paced era aren’t enough on their own: even teams with strong foundations saw quality drop as AI output grew.
Professional architecture. Experienced engineers design the system so it stays easy to change. One principle matters especially in AI-augmented delivery: modular design. Build small, independently deployable services with strict interface schemas, so the team can replace any one of them without touching the rest. When AI writes most of the code, regenerating individual modules is often cheaper than patching a tangled monolith. Good structure is what keeps that 60% maintenance share under control.
Documentation. Clear docs raise the bus factor for people and give AI agents the context they need. Faros reports that work restarts (i.e., tasks going back to in-progress) rose 67%, and they mark it as a signal of AI agents lacking the context to get work right the first time. Comprehensive documentation, including the detailed task descriptions, is one of the most direct ways to close that context gap.
Security and governance. Build in role-based access control (RBAC) and single sign-on (SSO) from the start. If the tool uses AI, a policy engine should make access decisions outside the LLM. Prompt injection ranks #1 on the Open Worldwide Application Security Project (OWASP) Top 10 for LLMs, and “excessive agency” ranks #6.
Run costs and spending limits. Another LLM risk on the OWASP Top 10 is “unbounded consumption,” or runaway token bills, which makes a strong case for setting hard caps on AI usage. Caps keep costs bounded, but to see whether AI spending pays off, measure it per outcome, not per seat.
How AgileEngine can help
Most organizations go through a J-curve when they adopt AI: a productivity dip that DORA calls the “tuition cost” of transformation. Working with a team that has already paid that tuition lets you avoid much of that dip.
That experience shapes how we work. Our lead engineers own the architecture and guardrails, while AI handles most of the implementation. Combined with remote delivery teams, this can keep the total cost below a multi-year SaaS renewal.
Cut software engineering and design costs by over 50% by engaging thoroughly vetted experts across 15+ global hubs.
Talk to our expertsA build versus buy decision matrix
It almost never makes sense to go “all buy” or “all build.” Martin Fowler’s advice on utility vs. strategic software applies well here: buy where you follow standard industry practice, and build what sets you apart.
In our experience, the winning builds are usually narrow tools, like reporting dashboards and approval workflows, that sit on top of a bought system of record: the core human resources, finance, or customer relationship management platform that holds a company’s official data. Replacing a platform like Workday or Salesforce outright is a different and far riskier project.
Klarna is a telling example. In 2024, its CEO said the company had “shut down Salesforce,” and many reports took that to mean AI had replaced it. Klarna later clarified that it had switched to a mix of other SaaS tools and in-house software, consolidating capabilities and layering AI on top.
To decide which way a given tool should go, run it through these five questions:
| Question | Lean toward buying | Lean toward building |
|---|---|---|
| Does the tool set you apart? | No, it is a commodity function | Yes, it encodes how you work |
| Is it a system of record? | Yes (human resources, finance, customer relationship management) | No, it sits on top of one |
| How well does the vendor fit your workflow? | Close fit, little customization | Constant workarounds |
| How sensitive is the data? | Vendor meets your compliance needs | You need full control or air-gapping |
| Can you own it long term? | No team to maintain it | A named owner and engineering support |
Good first candidates are the tools teams already replace most often, according to Retool: workflow automations, admin tools, and business intelligence (BI) dashboards.
Compare three to five years of total cost
When budgeting, a one-year view can distort the comparison: it hides both the subscription’s compounding price increases and most of the build’s maintenance costs. Model both sides over three to five years:
| Cost side | What to include |
|---|---|
| Subscription | Current fees, seat growth, and annual renewal increases |
| Build and operate | Build cost, maintenance (about 60% of lifecycle cost), hosting, and AI run costs |
Pro tip: when calculating build costs, factor in the cost of instability. DORA’s research has consistently linked AI adoption to lower delivery stability, and even small slips are expensive. In its example model, a change failure rate rising from 5% to 6% can cost $344k in downtime, though the real figure depends heavily on your organization’s scale. To run your own numbers, use DORA’s ROI calculator.
Case study: turning a reporting blackout into a long-term advantage
For the client we mentioned earlier, cost turned out to be the smaller part of the story. The biggest wins were independence and performance: the company no longer depends on a vendor’s uptime for its reporting, and the new platform, built in about three weeks, runs its heaviest queries 3x faster.
That independence is strategic. For a practice management company, rich data visualization and reporting are business-critical, so owning the dashboards means owning a core capability. As a bonus, the new platform is cheaper to run: its Amazon Web Services (AWS) fees are 80% below what the old subscription cost.
The impact summary
Our engineers designed, implemented, and tested the new platform, and they now handle its day-to-day maintenance. The project’s lead engineer used agent orchestration to deliver these results:
| Metric | Result |
|---|---|
| Dashboards restored | 72 business-critical dashboards |
| Migration coverage | 95% in version one |
| Monthly operating cost | 80% lower |
| Heaviest queries | 3.04x median speedup, keeping dashboards fresh |
Version one restored most of the reporting functionality. It is also faster and more reliable than the vendor solution, because the client now owns every layer.
Additional benefits
- Lower vendor risk. The platform’s sole vendor dependency is now AWS.
- Easier growth. Config-driven onboarding of new data sources replaces vendor-defined functionality, and the team documents every step.
In this engagement, the speed came from AI. The durability, however, came from engineering: tests, documentation, ownership, and a modular architecture optimized for AI-assisted maintenance.
Conclusion: own the software, not the risk
Custom development is now faster and cheaper than ever thanks to AI-augmented engineering. As a result, companies increasingly find they no longer need to rent SaaS by default and accept a vendor’s feature set, pricing, and uptime.
The shift comes with a caveat, though. The quality of the engineering process behind the replacement decides whether the move pays off. A vibe-coded tool trades a subscription bill for a maintenance bill, plus new security risks. A tool built by strong engineers and architects, with AI handling most of the implementation, gives you maintainable software you own. Over its lifetime, it can cost less than the subscription it replaces.
Weighing a SaaS renewal? Book a build-vs-buy review with AgileEngine’s experts. We’ll help you identify which tools to keep, which to replace, and what a production-grade build would cost.
FAQ
Narrow, greenfield applications that sit on top of core systems of record—such as business intelligence (BI) dashboards, internal admin panels, and custom approval workflows—yield the highest return. Because these tools are self-contained and encode your specific business logic, AI coding tools deliver 35–40% productivity gains without the friction of untangling legacy codebases.
Evaluate total cost of ownership (TCO) over a three-to-five-year window rather than looking at first-year build costs alone. Model subscription seat growth and annual renewal hikes against your build cost, cloud hosting, AI token run costs, ongoing maintenance (roughly 60% of lifecycle spend), and the potential operational cost of deployment instability.
Technical debt and security vulnerabilities caused by unreviewed, “vibe-coded” output. Without experienced engineers enforcing modular architecture, automated testing, and strict access controls, AI-generated tools frequently suffer from package hallucination attacks (slopsquatting), runaway token consumption, and poor maintainability that make future updates prohibitively expensive.
Core systems of record, like Salesforce, Workday, or NetSuite, handle standardized, commodity industry practices alongside deeply complex compliance, accounting, and data-integrity requirements. Rebuilding those foundational layers introduces massive operational risk, whereas buying the core platform and building custom AI-powered layers on top captures strategic differentiation safely.




















