Principal Magistrate Justus Kituku released Brian Kassaine after it emerged that there was no evidence to directly or indirectly link him to Monica Kimani's death.
Also, Mr. Kassaine had agreed to cooperate with the police as key witness to testify against TV anchor Jacque Maribe and Joseph Irungu.
In his ruling, the magistrate however insisted that Mr. Kassaine must report to DCI headquarters every Thursday and is to deposit his passport in court.
And his statement in the events that occurred at Royal Park Estate in Lang'ata where the couple lives also contributed to his freedom having had his report corroborating with that of detectives.
On the fateful day, Kassaine said, Irungu, the key suspect, knocked at his house and asked him to pick a gun which he had tried to commit suicide hours earlier.
Further, he said, Irungu also asked him to assist with paraffin which he was to use to burn clothes allegedly he was wearing at the crime scene.
It's this compelling evidence that enabled the prosecution to admit him as State witness after finding no motive in the gruesome murder.
Both Maribe and Irungu will take plea on Monica's murder case on Monday after the prosecution asked for more time.
Mr. Kassaine admitted that he has given Irungu the pistol he used to attempt suicide and it emerged that it was licensed contrary to media reports.