Unless the offence with which the person arrested is charged is shown to be an offence punishable by death or life imprisonment under the laws of the state in which it was committed, such court or justice may admit such person to bail by bond or undertaking, with sufficient sureties, and in such sum as such court or justice deems proper, conditioned for his appearance before such court or justice, at a time specified in such bond or undertaking, and for his surrender to be arrested upon the warrant of the governor; provided, however, that if such person is arrested for a crime committed in the commonwealth, any bail by bond or undertaking shall be assessed pursuant to sections 42, 42A, 57, 58 and 58A.
Mass. Gen. Laws ch. 276, § 20D