Balancing the separation selectivity and regeneration energy of alkane isomers is a daunting challenge. Here the authors utilize flexible host-guest interactions to maximize the gas-framework interactions while achieving potential energy storage to set new benchmarks for alkane isomer separation.