SpaceX announced Tuesday it has agreed to a deal with AI coding startup Cursor. The arrangement could result in either an acquisition of the firm or a $10 billion investment. This move is part of CEO Elon Musk's broader push to transform the aerospace company into an artificial intelligence leader ahead of a potential initial public offering.

The deal underscores a strategic effort to accumulate AI capabilities before a possible historic IPO. SpaceX previously acquired Musk's other AI venture, xAI, in a February transaction. That earlier deal valued the combined entity at $1.25 trillion, according to the New York Times.

Cursor, described as the original 'vibe coding' startup, has already raised more than $3 billion in funding. The company has recently been in talks to secure additional capital. The potential $10 billion investment figure represents a significant commitment from the aerospace and satellite firm.

If finalized, the agreement would signal SpaceX's willingness to spend aggressively on AI technology before public market investors can influence its valuation. The pre-IPO buildup aims to position the combined entity as a dominant force in both space and artificial intelligence sectors.

Industry observers are watching to see if this deal closes, as it would represent a major consolidation of AI talent and technology under the SpaceX umbrella ahead of its market debut.