3kh0/portal-2
GamesAn archival mirror of the leaked Portal 2 and Source engine development tree for preservation and research.
What this is
This repository is an archival mirror of a development tree attributed to Portal 2 and the Source engine, containing 16,768 files and roughly 2.43 GB uncompressed. It includes client, server and shared gameplay code for Portal and Portal 2 under game/, plus engine components for rendering, networking, audio, particles and scripting. It also bundles Hammer editor source, Valve Project Creator (VPC) scripts and precompiled libraries, and directories associated with other projects such as ep3, cstrike2, dota, infested and swarm. The archive itself states that a directory's presence does not prove that project's source is complete.
This is a code and asset archive, not a playable build or a maintained fork. It is aimed at people studying Source engine internals, comparing leaked-era code, or keeping a historical copy.
Get a copy
One of the libraries is tracked with Git LFS because of its size. Install LFS first, then clone:
git lfs install
git clone https://github.com/3kh0/portal-2.git
Alternatively, download the branch as a ZIP. The maintainer has not built or verified this snapshot as complete.
Provenance and legal status
The archive came from a link shared in a Reddit post and a GoFile archive named portal2_src; the maintainer says the screenshots posted publicly match this repository's file sizes and contents. Even so, that is evidence, not proof of authenticity. Original code and assets belong to Valve and their respective authors, and this unofficial mirror is presented for educational purposes only. There is no declared license. The bundled Valve code, tools and assets carry their own copyright and do not become open source through this mirror.
Build expectations
There are no build instructions, dependency lists or verified toolchain versions here. The tree includes VPC scripts and precompiled libraries, but building Source-era projects typically requires a matching toolchain, platform SDKs and assets that the archive may not fully supply. Treat the codebase as a reference archive rather than a ready-to-compile project.
HotRepo's take
The repository's first recorded snapshot is its new-list entry for 2026-12-01 in the C++ language list, reporting 100 stars and 25 forks gained in the window that began 2026-11-30. The value here is historical and archival rather than practical: readers get a large, partly organized Source tree to inspect, with no build guarantee, no license, and legal exposure tied to leaked Valve material.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.