A facile two-step synthesis beginning with commercial monomers to prepare copolyimides by Tröger's Base (TB) formation provides membranes for the first time with tunable gas transport relative to hydrogen separations, CO2 plasticization resistance, and good mechanical and thermal properties.