Born in Penápolis, São Paulo, Pirani joined Santos' youth setup at the age of ten.[2] On 27 July 2018, he signed his first professional contract with the club, agreeing to a deal until June 2021.[3]
On 3 February 2020, Pirani further extended his contract, until December 2022.[4] The following 25 February, he made his first team – and Série A – debut, coming on as a half-time substitute for Fernando Pileggi in a 0–2 away loss against Bahia.[5]
On 21 May 2021, after establishing himself as a regular in the main squad, Pirani renewed his contract until December 2025.[8] In the 2022 season, however, he lost his starting spot under manager Fabián Bustos.[9]
Loan to Cuiabá
On 13 June 2022, Santos agreed to loan Pirani to fellow top-tier side Cuiabá until the end of the season,[10] with the move being effective on 18 July. He scored on his club debut, netting a last-minute equalizer in a 1–1 home draw against Atlético Mineiro three days later,[11] but only featured in nine more matches during the competition, as Douradonarrowly avoided relegation.
Loan to Fluminense
After being requested to return to Santos' first team squad by head coach Odair Hellmann in December 2022,[12] Pirani featured rarely, and moved to Fluminense also in the first division on 23 February 2023, on loan until the end of the year.[13] In his second game, he scored the winning goal in a 2–1 win over Flamengo, which led his side to the Taça Guanabara title.[14]
On 15 July 2023, Pirani's loan with Fluminense was cut short, as he was under negotiations with a club from the United States.[15]
D.C. United
On 27 July 2023, Major League Soccer side D.C. United announced the signing of Pirani on loan until the end of the year.[16] On 1 January 2024, the club activated his buyout clause, with the player signing a two-year deal.[17]