Kenyan comedian Eric Omondi has been freed following his arrest on Tuesday after leading a group of half-naked men in a protest outside parliament.
The group had carried banners while demonstrating against the high cost of living in the country. They demanded to meet the speaker to submit their grievances.
Police fired tear gas to disperse them and arrested 17 people.
On Wednesday they were charged with creating an unlawful assembly outside parliament but denied wrongdoing. They were each released on a cash bail of 10,000 shillings ($80; £65).
Their lawyers said the group had wanted to meet members of parliament to address the issue of poverty.
In February 2022, the comedian locked himself in a cube outside parliament to lobby MPs to increase the quota of locally produced music being played on radio and TV in the country.