Poland has signed a five-year contract worth about $300 million with Palantir Technologies to bring artificial intelligence software to its army commanders.

The agreement, inked on Friday, gives Polish officers access to Palantir’s Maven Smart System. The platform sifts through battlefield data and highlights potential threats, and it is already used inside NATO command structures.

Defense Minister Wladyslaw Kosiniak-Kamysz said that no local supplier can yet match the system’s decision-making ability. He also confirmed that all keys, servers and information will stay under exclusive Polish military ownership, keeping sensitive data out of foreign hands.

Palantir stock climbed 2.89% to $168.31 in Friday’s premarket session, up from a Wednesday close of $163.59 before the Thanksgiving holiday.

The deal reignites a European conversation about depending on US defense technology. Some officials worry that American software could be switched off, hampering the continent’s ability to act alone. France’s domestic intelligence agency dropped its Palantir contract in June precisely over data sovereignty fears.

Poland is moving in the opposite direction, becoming one of the first large EU countries to roll out Palantir’s military AI widely. The country already spends more than 4% of GDP on defense, one of NATO’s highest ratios, and the contract fits a rapid modernization drive as tensions with Russia simmer.

The deal is not without domestic critics. In October, Poland’s ombudsman asked the defense ministry for detailed risk assessments, citing privacy and data protection concerns.