Here we introduce for the first time a metal-free trianglamine-based supramolecular organic framework, T-SOF-1, with permanent intrinsic porosity and high affinity to CO2. The capability of tuning the pore aperture dimensions is also demonstrated by molecular guest encapsulation to afford excellent CO2/CH4 separation for natural gas upgrading.