maybe the pi zero is ok.
For a pi4 you have to provide power though the usb-c connector and it needs up to 3A.
This is also why implementing pi-kvm is so complicated.
I don't actually know if you could power the zero fully through the OTG port, although I wouldn't be that surprised.
Power on the Zero is connected to the pins, the power USB connector and the OTG USB connector. Afaik, there are no components in-between.
https://shop.pimoroni.com/products/usb-c-pwr-splitter?varian...
maybe the pi zero is ok.
For a pi4 you have to provide power though the usb-c connector and it needs up to 3A.
This is also why implementing pi-kvm is so complicated.