Nanoporous carbons are an emerging class of materials with important applications in energy storage. In particular, the ability of graphitic carbons to intercalate ions is exploited in commercial Li-ion batteries where the anode is (typically) made of graphite and Li ions become electrostatically bound to the carbon host as the battery is charged: electrons are …