You can retrieve the source code of KlayGE through Mercurial, a distributed source control system. There are three repositories currently:

It is accessible by anyone with a Mercurial compatible tool, such as TortoiseHg, to download the source code.