The calculated distance (air line) between Cody and Bozeman is approximately 125 miles respectively 202 kilometers.
By car or train, the actual journey to Bozeman is certainly longer, as only the direct route (as the crow flies) between Cody and Bozeman has been calculated here.