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.