(Bloomberg) -- Technically, SpaceX had 30 days following its record-shattering public debut to decide on a $60 billion takeover of the AI coding startup Cursor. In the end, all it took was two trading days.
Early Tuesday, SpaceX formally agreed to buy Cursor in a deal that will entitle the startup’s investors to SpaceX stock. In doing so, Elon Musk is signaling his desire for SpaceX’s xAI to rapidly rebuild and catch up to rivals including Anthropic PBC and OpenAI that have capitalized on demand for artificial intelligence-powered coding tools in a way that his AI business hasn’t.
It’s a shortcoming that Musk has personally acknowledged and had been trying to remedy long before Tuesday’s announcement: xAI employees had already been working for weeks alongside Cursor staff ahead of the potential acquisition. Cursor employees were, in fact, at xAI’s offices and collaborating on projects as part of a preexisting partnership, people familiar with the situation said, asking not to be identified because the information isn’t public.
As part of its acquisition announcement, SpaceX said it’s been working with Cursor to train a new AI model and aims to collaborate on developing more cutting-edge artificial intelligence capabilities.
Cursor’s AI assistant, launched in 2023, is designed to help programmers write and debug code more efficiently. It’s become one of the fastest-growing startups of all time and a central player in tech’s “vibe coding” era, as demand surges among software developers for tools that can build based on prompts. And now it stands as xAI’s best chance yet at making inroads in the growing market for AI coding.
Cursor now has more than 3,000 customers paying at least $100,000 each for its software on an annualized basis. In late April, the company’s annualized revenue hit $3 billion, according to a person familiar with the matter, signaling that demand for the company’s AI coding software continues to grow. That was after the startup’s annualized revenue, which projects sales for a 12-month-period based on recent performance, topped $2 billion in February, Bloomberg previously reported.
Yet, Cursor has also faced heightened competition from the likes of Anthropic and OpenAI, which have made meaningful strides improving their own AI coding tools. Cursor supports a wide range of models, including those from OpenAI and Anthropic, but has also been working to develop its own technology.
For Cursor, the tie-up with SpaceX provides it with ample computing resources necessary to build and support AI coding tools, thanks to the Musk-led firm’s considerable stockpile of chips. Although SpaceX has been renting out its data center capacity to competitors including Anthropic, Chief Financial Officer Bret Johnsen said last week that the company is not giving up on its own services, including its chatbot Grok.
For Musk’s company, the Cursor deal is poised to help it compete in the fierce AI talent wars. SpaceXAI, as the AI business is now commonly called, has suffered dozens of exits on both the engineering and the data training side and has struggled to recruit top talent. Musk brought in staffers from SpaceX’s Starlink to lead teams at xAI and had also tapped engineers from Tesla to help with coding efforts. Meanwhile, Cursor owns a firm that has helped support leading AI companies like OpenAI in recruiting efforts.
The deal between SpaceX and Cursor is expected to close in the third quarter.
Musk’s bets on AI have proven costly for SpaceX, which posted a $4.94 billion net loss last year as the company retroactively took on the debt of xAI’s investments. Capital expenditures fueling Musk’s plans nearly doubled to $20.7 billion last year. The biggest single spending block of that is dedicated to AI.
And yet SpaceX investors have continued to trade up the stock since its public debut. SpaceX’s shares surged more than 40% in its first two trading sessions. And the rally continued Tuesday, with the stock climbing 8% at 9:39 a.m. in New York. If the gains hold, SpaceX will have a market valuation of around $2.7 trillion and surpass Amazon.com Inc. as the fifth-largest publicly traded company in the world.
(Updates with more context throughout)
More stories like this are available on bloomberg.com
©2026 Bloomberg L.P.