Okla. Stat. tit. 22, § 459
The defendant, when arrested under a warrant for an offense not bailable, must be held in custody by the sheriff of the county in which the indictment or information is filed.
R.L. 1910, § 5768.