NFL star Richard Sherman just cut a plea deal with prosecutors to close out his infamous trespass case … and TMZ Sports has learned as part of the agreement, he won't have to serve any more time behind bars if he keeps his nose clean going forward.

According to court documents, Sherman pleaded guilty to one count of negligent driving and one count of criminal trespass on Monday.

In exchange, Sherman was sentenced to 90 days in jail, though he was given credit for 2 days time served, and the remaining 88 days are suspended.

Sherman was also sentenced to monitored supervision for 24 months, and he was also ordered to pay a $500 fine for speeding in a construction zone.