The tag origin=* seems to be exactly what you’re looking for:
https://wiki.openstreetmap.org/wiki/Key:origin