The Knicks agreed to a four-year, $15 million deal to retain sharpshooter Steve Novak on Monday.

Novak, 28, was claimed off waivers from the Spurs before the start of the 2011-12 season and shot 47 percent from 3-point range in 54 games with the Knicks.

The Knicks retained early Bird rights on Novak an independent arbitrator ruled, which allowed the franchise to exceed the salary cap to keep him.

Novak will officially sign his contract with the Knicks on Wednesday, when the free agent moratorium is lifted.