The top open-source alternatives to Moto Z4
are Team Win Recovery Project (TWRP).
One of the criteria for ordering this list is the number of mentions that products have on reliable external sources.
You can suggest additional sources through the form here.