N.Y. Criminal Procedure Law § 530.30
1. When a criminal action is pending in a local criminal court, other than one consisting of a superior court judge sitting as such, a judge of a superior court holding a term thereof in the county, upon application of a defendant, may order recognizance, release under non-monetary conditions or, where authorized, bail when such local criminal court: