The Build vs. Buy Line Just Moved. Most Enterprises Haven't Noticed.
Starbucks began building internal AI software to replace Microsoft applications. Klarna cut 1,200 SaaS applications while deploying an internal AI assistant handling the work of 700 agents. Shopify's CEO Tobi Lütke mandated in early 2025 that AI must be evaluated before approving any new headcount or software license — if AI can solve it, the SaaS subscription doesn't get renewed. A Retool survey of 817 enterprise builders in early 2026 found 35% had already replaced at least one SaaS tool with a custom build; 78% planned to build more this year.
Something has shifted in the software math that held for twenty-five years, and most enterprises haven't priced it in yet.
Why the twenty-five-year math held
For a generation, the buy-vs-build calculation on enterprise software was simple: buy. SaaS won because building non-differentiating internal tools was uneconomic — you needed a full engineering team, a product manager, a designer, a security review, and an ongoing maintenance commitment. So enterprises rented Salesforce, ServiceNow, Workday, and Microsoft 365, and paid per seat forever.
The moats were three: switching costs, integration complexity, and — the load-bearing one — the sheer impracticality of building custom. If a mid-sized company wanted a CRM in 2015, the alternative to buying Salesforce was two years and $2M of internal engineering that would need to be maintained forever. Nobody made that trade.
AI is tackling the third pillar.
What actually changed
Not the model capability directly. What changed is the productivity of a small internal engineering team building on top of the models. Six months of custom app development is now four weeks. Integration work that took senior-engineer months is now a Claude Code session. The cost of building internal software has, in Retool CEO David Hsu's words, "collapsed."
The consequence: for a whole category of software — workflow orchestration, internal dashboards, CRUD apps, custom process tools — the buy-vs-build math has flipped. Klarna framed its 1,200-app cut as "building proprietary tools rather than licensing generic platforms." Shopify's mandate is more direct — new SaaS purchases require proof that AI can't do it in-house first. Both are early. Neither is exotic.
A framework worth using
The important part of this shift is not that everything moves in-house. That reading is wrong and expensive. The line between what an enterprise builds and what it buys has moved — and most organizations are still operating on the old map. A useful frame separates enterprise software into three categories, each with a different answer.
Systems of record — still buy. Epic. SAP. Workday's HR core. Bloomberg terminals. Anything with embedded regulatory content, industry-standard data schemas, or real network effects. The moats here are genuine and orthogonal to AI capability. Building your own general ledger isn't a competitive advantage — it's a five-year project that ends worse than what you replaced.
Workflow-with-a-UI layer — increasingly build. Internal dashboards, custom process orchestration, department-specific workflow tools, admin panels, reporting layers, purpose-built CRUD apps. This is where the buy-vs-build math has flipped hardest, because it's where AI-assisted development has closed the productivity gap most completely. It's also where the average enterprise's SaaS spend hides — the vendors here have no moat beyond switching costs, and those erode when the alternative takes four weeks.
Competitively relevant tooling — build if it touches your differentiation. Anything that touches your unique customer relationship, proprietary data, or judgment layer. The Klarna assistant isn't a customer service tool — it's a competitive edge built on Klarna's own transaction history. Citi Sky isn't a chatbot — it's a wealth product built on Citi's proprietary research. If a piece of software touches something only your firm has, the case for building it in the AI era is stronger than at any point in the last twenty-five years.
The organizational discipline is knowing which category each of your SaaS renewals falls into. Most enterprises can't answer that.
The vendors know
Watch what the SaaS incumbents are doing and you'll see the same recognition. Salesforce's Agentforce is a "we'll build the agents for you" pitch that hedges against customers building alone. ServiceNow's Forward-Deployed Engineering embeds engineers in customer environments to preserve the vendor relationship. Microsoft's Copilot Studio is "build your own on top of us." Every major SaaS vendor is running defensive plays against the same realization: the AI making their products more capable is also making their customers more capable of building alternatives.
The strategic question isn't whether to replace your ERP. It's which layers of your stack you're renting out of habit rather than economics, which of your vendors is quietly on borrowed time, and which of the tools you've been treating as commodities is actually competitively relevant enough that you should be building it yourself.
The line moved. Most maps haven't caught up.
Sources:
Retool, "The Build vs. Buy Shift: How Vibe Coding and Shadow IT Have Reshaped Enterprise Software," February 17, 2026 (817 enterprise builders surveyed; 35% have replaced at least one SaaS tool with custom build, 78% expect to build more in 2026, 60% built outside IT oversight). https://retool.com/blog/ai-build-vs-buy-report-2026
Newsweek, "Enterprises Are Replacing SaaS Faster Than You Think," February 17, 2026 (David Hsu on the collapse of custom software build cost). https://www.newsweek.com/nw-ai/enterprises-are-replacing-saas-faster-than-you-think-11521483
CIO Magazine, "The SaaS reckoning: Why AI is about to reprice enterprise software," May 20, 2026. https://www.cio.com/article/4173257/the-saas-reckoning-why-ai-is-about-to-reprice-enterprise-software.html
Kersai, "AI Breakthroughs July 2026" (Starbucks internal AI software replacing Microsoft applications). https://kersai.com/ai-breakthroughs-july-2026/
Shispare, "Will AI Replace Enterprise Software? What the Data Is Actually Telling Us," June 3, 2026 (Klarna's 1,200 SaaS applications cut; Shopify's Lütke mandate; Sebastian Siemiatkowski quote on proprietary tools). https://shispare.com/blog/will-ai-replace-enterprise-software-what-the-data-is-actually-telling-us/