Judicial magistrate in-charge Krishna Gopal passed the order after the accused were produced before the court.
Alam is already in judicial custody till November 11 in a case registered against him at GRP Patna police station.
The court direction today was in connection with another case registered against him with Gandhi Maidan police station in the same incident.
Alam was arrested from a toilet of platform number 10 of Patna Railway station after he triggered the first blast on October 27 ahead of BJP prime ministerial candidate Narendra Modi's rally at Gandhi Maidan.
Besides these two, a third person Ainul alias Tarique was arrested in connection with multiple explosions here on the day. He, however, died in a hospital on November 1.