How Cursor was built

How four MIT students built a $60B code editor on someone else's AI, every number with its source, and a prompt to check how exposed your own app is.

The whole story in eight steps, from four students at MIT in 2022 to a $60 billion sale in 2026.

  1. 1The start: four MIT students, 2022
  2. 2The shortcut: VS Code, with AI built in
  3. 3The growth: $100M to $2B a year
  4. 4The catch: it didn’t own the AI
  5. 5The rival: Anthropic launches Claude Code
  6. 6The fix: its own model, Composer
  7. 7The offers: OpenAI tried to buy it
  8. 8The exit: SpaceX, $60 billion
  9. →The lesson for builders, and a prompt to check your own app
1

The start: four MIT students, 2022

Michael Truell, Sualeh Asif, Arvid Lunnemark and Aman Sanger started the company, Anysphere, in 2022 while they were at MIT. According to Contrary Research, their first idea was AI for mechanical engineers (CAD software); by mid-2022 they had switched to the thing they used every day themselves: a code editor.

2

The shortcut: VS Code, with AI built in

They didn't write an editor from scratch. VS Code, Microsoft's free editor, is open source, so they took its code and built AI right into it. That's Cursor. It came out in March 2023, and in October 2023 they raised an $8 million seed round led by the OpenAI Startup Fund.

The takeaway: starting from something people already know let them spend all their time on the part that was new.

3

The growth: $100M to $2B a year

About 20 months after launch, in January 2025, Cursor hit $100 million in yearly revenue. Sacra called it the fastest climb to $100M of any software company it had tracked. It passed $1 billion in late 2025 (Fortune says October, CNBC says November), $2 billion in February 2026, and about $3 billion by late April 2026, just before the SpaceX deal.

These are annualised run rates (this month's revenue times twelve), the number startups usually report.

4

The catch: it didn’t own the AI

The smart part of Cursor, the AI model, came from other companies. Every time you asked it something, Cursor paid Anthropic or OpenAI, at prices those companies set. One of Cursor's own investors told Fortune it was burning a dollar to make ninety cents.

That line is one investor's words, not a reported figure, but it shows the problem: the more people used Cursor, the more it paid its suppliers.

5

The rival: Anthropic launches Claude Code

In February 2025, Anthropic launched Claude Code, its own coding tool. Cursor's biggest supplier was now one of its biggest competitors, and it could sell its own model at its own cost. By early 2026 Claude Code was at about $2.5 billion a year. Ramp's spending data shows Cursor's share of what companies spend on AI coding tools falling from 41% in June 2025 to about 26% in May 2026.

6

The fix: its own model, Composer

In October 2025 Cursor released Composer, an AI model of its own, so not every request had to go to a rival. By April 2026, Sacra estimates, Cursor was making a small gross profit.

7

The offers: OpenAI tried to buy it

OpenAI approached Cursor about buying it twice, in 2024 and early 2025, according to people familiar with the talks. Both times Cursor said no; it wanted to stay independent. OpenAI then looked at Windsurf, a rival editor, instead.

These talks were reported from unnamed sources; neither company confirmed them.

8

The exit: SpaceX, $60 billion

In April 2026 SpaceX agreed an option to buy Cursor. The full deal was signed in June and closed on August 14, 2026: $60 billion, paid in SpaceX stock.

And it isn't over: OpenAI has said it will stop offering its models inside Cursor on November 12, 2026.

The lesson: if your app runs on someone else's AI, remember Cursor

Building on top of OpenAI, Anthropic or Google is the fastest way to ship, and Cursor proves you can win big doing it. But your supplier sets your costs, can change them any day, and can launch the same product you sell. Three things to know about your own app:

  1. What every request costs you, and whether a heavy user makes you money or loses it.
  2. What happens if your model provider raises prices, changes limits, or switches off access.
  3. What your users would lose if they went straight to the provider: that's the part you actually own.

Check your own app

Open your project in Claude Code or Codex and paste this. It reads your code, finds every place you call an AI model, and tells you how exposed you are.

Check how much my app depends on other companies' AI models.

1. Find every place in this codebase that calls an AI model or AI API (OpenAI, Anthropic, Google, or any other). List each one: file, which model, and what the feature does for the user.

2. For each call, estimate the cost per request using the provider's current official pricing:
   - OpenAI: https://openai.com/api/pricing/
   - Anthropic: https://www.anthropic.com/pricing
   - Google Gemini: https://ai.google.dev/pricing
   Show your working (rough tokens in and out), and say which calls are the most expensive.

3. Tell me what happens if each provider:
   - doubles its prices,
   - rate-limits me,
   - or switches off the model I use.
   Which features break, and which ones can fall back to another model?

4. Tell me which of my features a user could get straight from ChatGPT or Claude, and which ones they can only get from my app (my data, my workflow, my integrations). Be honest.

5. Give me the three most useful changes to lower the risk, smallest first. Examples: caching repeated answers, sending simple requests to a cheaper model, adding a second provider as a fallback, or putting usage limits on free users.

Don't change any code yet. Just give me the report.

Revenue figures are annualised run rates reported by the outlets linked above. Where two sources give different dates, both are shown.

Last checked: October 2026

Hi, I'm Rahul. I'm documenting what I learn while building products.