You’ll never run code locally, and only run the official version off their server. Their lawyers will shut down the clones, and their cash reserves will make sure you can never afford pc parts again.
I don’t see how you can have a one-to-one reproduction of code running on a server. At best you can guess at something that provides a similar output, but it’s never going to be the same as the original.