A Ukrainian court on Monday released arrested former Georgian president Mikheil Saakashvili, who vowed to "pressure the authorities" to end corruption.
Ukrainian prosecutors had sought house arrest for Saakashvili, who is accused of trying to stage a coup sponsored by Russia.
But judge Larysa Tsokol ruled not to grant this request, letting the opposition politician go free for the duration of the probe, a decision met with applause from supporters in the courtroom and Saakashvili, who called the judge "courageous."
Saakashvili told journalists after the hearing that he plans to continue his political activities with the goal of "constitutional, calm, but very necessary transfer of power in the country," accusing the Ukrainian authorities of corruption and "usurping power."
He added however that he "has no presidential ambitions" himself.
Saakashvili is under investigation for alleged cooperation with Russia-linked "criminal groups" and has denounced his prosecution as an attempt to remove him from public activities.
"I don't consider myself a detainee, I consider myself a prisoner of war," he told journalists before the Monday hearing.
Supported by a number of Ukrainian lawmakers in the courtroom and several hundred protesters gathered outside the court, Saakashvili called the trial "a shame" of current authorities that has inspired critical media coverage.
"Look at the Western press, they've gone crazy!", he said emotionally."One terrible article after another is the shame of Ukraine."
"Putin is winning, he is laughing, he is roaring with laughter," Saakashvili said, ridiculing the concept that he and Russian authorities could possibly be plotting together.
Ukrainian prosecutors allege that Saakashvili cooperated with allies of former Ukrainian president Viktor Yanukovych, currently in hiding in Russia, and took money from the Russians.
Saakashvili, 49, entered Ukrainian politics after serving as president of Georgia following the Georgian "Rose Revolution" he spearheaded in 2003.
A pariah of the Kremlin after Georgia fought a short war with Russia in 2008, Saakashvili was a vocal champion of the three-month uprising in Kiev that toppled the Moscow-backed Yanukovych government in 2014 and turned Ukraine towards a pro-EU course.
Ukrainian President Petro Poroshenko rewarded Saakashvili for his efforts by appointing him governor of the important Black Sea region of Odessa in 2015 before the two men fell out and his Ukrainian passport was annulled.
Saakashvili was arrested last week in Kiev after an attempt to detain him earlier dramatically failed when supporters swarmed the van where he was being held.
He has gone on hunger strike to protest the "false accusations" against him.
He is also wanted in his native Georgia for alleged abuse of power.