The Detection of Crime Branch (DCB) sought 21-day custody of Kirmani after producing him before the Special Prevention of Terrorist Activities Act (POTA) court Judge Geeta Gopi.
An arrest warrant was issued against Kirmani in 2003 for his alleged involvement in "anti-national" activities.
He was wanted by DCB for last 10 years in connection with a case under the POTA Act (which was repealed after UPA-I came to power).
DCB told the court that Kirmani took part in a "proxy war" against India with direct or indirect support of Pakistan's ISI and other terror outfits to avenge post-Godhra riots.
DCB also alleged that Kirmani had sent a number of Muslim youngsters to Pakistan-based training camps run by terror outfits, including LeT and Jaish-E-Mohammad, to spread terror in India.
DCB wants to interrogate Kirmani regarding past incidents of terror attacks across the country and to know about existence, if any, of terror modules.
According to DCB, Qavi too allegedly participated in the "proxy war" against India with the support of ISI, besides other terror outfits from across the border to avenge "killing of Muslims" in post-Godhra riots of 2002.
