The ex governor had been in police custody for over a week, facing charges of causing actual bodily harm, robbery with violence and destruction of property.
The court ruled that parties are at liberty to engage in alternative dispute resolution in a bid to settle if they so wish.
However, Chief Magistrate Stella Atambo said Sonko should cooperate with the investigating officer and heed to summons when required by the investigating officer.
Earlier Sonko had been admitted in hospital after he complained of stomach pains.
He was later whisked back to court in Kiambu accompanied by a nurse with reports that he had high blood blood pressure that prompted his admission.
Sonko was charged alongside others for violently entering into property of Landmark International properties.
The court was informed that Sonko had been charged with a serious offence and that if found guilty, he shall be served to serve custodial sentence. It is therefore likely that Sonko might interfere with the witnesses and court attendance.
The prosecution said, “There is a likelihood of Sonko or his followers directly or indirectly interfering with key witnesses if he is released on bail.”