That is getting harder and harder. E.g. Unifi Video has a great on prem software to manage their video devices on your own devices but was depreciated in favour of a cloud based solution. At least MicroTik has so far steered clear of cloud solutions.
https://krebsonsecurity.com/2021/04/ubiquiti-all-but-confirm...