The Knicks may get to see their biggest free-agent addition of the offseason in red, white and blue before he’s in orange, white and blue.

Julius Randle has been added to USA Basketball’s training camp roster for the upcoming FIBA World Cup, The Post’s Brian Lewis confirmed.

Several top players have withdrawn from the roster in recent days, giving Randle a shot to make the team that will try to defend its back-to-back titles. The tournament runs Aug. 31-Sept. 15 in China.

Randle previously represented the US in tournament play as part of the 2012 gold-medal team at the FIBA Americas U18 Championship.

After the Knicks whiffed on the top tier of a coveted free-agent class, they went to Plan B and signed Randle to a three-year, $61 million deal. The 24-year-old power forward, a former lottery pick, is coming off a career year in which he averaged 21.4 points and 8.7 rebounds per game for the Pelicans.