Is the code open? Can I put this on my own server?
An older version of version of the Cloud9 core SDK is open source at https://github.com/c9/core. Instructions for downloading an older offline version of the CS50 IDE are available at https://cs50.readthedocs.io/ide/offline. Unfortunately the new versions are not open source at the time of this writing.