Chief Keef will spend at least 90 days in a Cali rehab center because of a deal worked out in Cook County court, reports "Pioneer Press."

Keef, 18, got permission from Judge Earl Hofferman to head to Promises Treatment Center in Malibu rather than serve his sentence in Chicago.

Keef pleaded guilty Wednesday to a conditional discharge violation after he popped twice for drugs.

Chief Keef, real name Keith Cozart, will not be allowed to leave the facility. If, after 30 days, officials deem he's made sufficient progress, he'll be allowed to make new music.