I remember that during our annual product roadmap planning at RazorpayX, each pod was expected to come up with a few projects that would help build a moat for the platform. A moat, in simple terms, is a competitive advantage that makes it difficult for rivals to copy your success or steal your customers. It gives a business some confidence that customers won't easily switch to a competitor.
For most software businesses, building a moat has always been an important part of their long-term strategy. But the rules are changing with AI. The cost of building software and producing intelligence has dropped drastically over the last couple of years. Today, a small team can build products in weeks that would have previously taken months or even years. Almost every new founder I speak with has a question at the back of their mind: What if OpenAI, Anthropic, or another big AI company enters my category? What can I build today so that my customers don't leave tomorrow?
Traditional Moats
Traditionally, software businesses have relied on a few common moats. I find these three to be the strongest:
-
High Switching Costs: Moving years of data, retraining employees, rebuilding integrations, or getting out of multi-year contracts makes it difficult for customers to switch. Think of an enterprise that has spent years setting up its workflows on Salesforce. Moving to another CRM is not an easy decision.
-
Network Effects: People use the product because everyone they need to connect with, or everything they need, is already on it. You cannot simply switch to a new communication app if your entire company is on Slack.
-
Distribution: Having a self-owned or a reliable distribution channel, such as SEO, a community, or an existing customer base, helps you acquire customers at a much lower cost. Microsoft Teams is a great example. By bundling Teams with Office 365, Microsoft was able to distribute it to millions of enterprise users without having to acquire each customer from scratch.
In my view, these moats still hold true for most large software businesses today. In fact, AI might make some of them even stronger as established companies already have customers, data, integrations, and distribution. But for a new startup, building these advantages can take a lot of time. So what can startups focus on in their early years?
Moat 1 — Speed
By speed, I don't mean just the speed of writing code or shipping features. I mean speed across every aspect of building a product — user research, creativity, design, experimentation, and decision-making. It's about how quickly your team can pick up signals from customers, the market, and competitors, connect the dots, and evolve the product. With AI tools becoming more capable, teams need to continuously experiment with new tools and rethink how they work to operate at a completely different level of speed.
I think there are three important aspects of speed:
- Speed of Building: How quickly can you turn an idea into a working product and put it in front of customers?
- Speed of Learning: How quickly can you understand what worked, what didn't, and why?
- Speed of Adapting: How quickly can you act on those learnings and change your product, strategy, or even business model?
You might not crack the market with your first launch, but if you can learn quickly, iterate, and keep launching, you have a much better chance of staying in the game. A team that learns something new every two weeks has many more opportunities to improve than one that takes three months to complete the same cycle. Speed alone might not be a permanent moat, especially when everyone has access to similar AI tools. But the ability to consistently learn and adapt faster than your competitors is much harder to copy. As the saying goes, it's hard to beat someone who doesn't give up.
Moat 2 — First-Party Data
First-party data is the data collected or generated when customers use your software. Let's take the example of a CRM. It has information about how your sales team operates, which types of leads convert better, what your best salespeople do differently, and what mistakes lead to losing customers. Most CRMs today are good at storing and displaying this information, but there is a much bigger opportunity. What if the CRM could continuously learn from this data and help the business improve its sales process? If the product gets smarter with every interaction and helps customers make better decisions, it becomes much harder to replace.
A personal example is ChatGPT. Over time, it has learned about my background, work experience, dietary preferences, health reports, travel interests, and several other things. Recently, when I was planning a Europe trip, it remembered that I am vegetarian and suggested staying near areas with good vegetarian restaurants. I didn't even have to mention that preference again. This is where I see its moat. Another AI model might be better at answering questions, but switching means teaching it everything about me again. The more context a product builds about its users, the more useful it can become.
I think the real moat is not just collecting data but turning that data into useful intelligence. A product that simply stores information can be replaced by another product that imports the same data. But a product that understands your workflows, remembers your preferences, learns from your decisions, and improves its recommendations over time is much more valuable. This creates a flywheel:
- Customers use the product and generate unique data.
- The product uses that data to deliver better insights and outcomes.
- Better outcomes encourage customers to use the product more.
- More usage generates even more data, making the product increasingly useful.
Moat 3 — Cost of Tokens
Think of a software company as a car. There are multiple important parts of this car, and without them it is impossible to run the company. But tokens are the oil of the car.
Every time an LLM processes information, reasons through a problem, or generates a response, it consumes tokens. Whoever can produce or acquire the same tokens at a lower cost has an advantage. They can offer better pricing, operate with higher margins, or use the savings to build a better product.
There is a lot of depth to this problem, from optimizing infrastructure and GPU utilization to accessing cheaper computing power and electricity. But startups don't necessarily need to go that deep to find meaningful savings. There are several layers where costs can be optimized:
- Model Selection: Using smaller or specialized models for simpler tasks instead of relying on expensive frontier models for everything.
- Context Optimization: Sending only the relevant information to the model instead of filling the context window with unnecessary data.
- Inference Infrastructure: Using techniques like caching, batching, fine-tuning, or self-hosting models when they make economic sense.
The Never-Ending Pursuit
With technology changing at such a rapid pace, I've realized that even these moats might not hold forever.
It might become easy to move your memory and personal context from one AI product to another. Token costs are already falling, and at some point, further optimization might not provide a significant competitive advantage. There is also a growing school of thought that better agent harnesses and context management can produce better results without necessarily using more tokens or best models.
That brings me to the title of this article: The Pursuit of Moats. I don't think there is one fixed moat on which you can build a generational company. In some ways, it has always been a pursuit. At every stage of the product and business, you need to find new moats, strengthen existing ones, and sometimes let go of those that no longer matter. The moats will keep changing, and the companies that survive will be the ones that can keep building their next moat before the current one disappears.
That's what makes it exciting and fun to keep building.