without legal access to source codes your concept will come to a end
Or you write everything from scratch. Replacing some cli commands is easy or add something new but replacing important components with certainly lots of side effects and without access to internals will propably break a lot of. I imagine that difficult.