A K–Na liquid alloy allows a dendrite-free high-capacity anode; its immiscibility with an organic liquid electrolyte offers a liquid–liquid anode–electrolyte interface. Working with a sodiated Na2MnFe(CN)6 cathode, the working cation becomes K+ to give a potassium battery of long cycle life with an acceptable capacity at high charge/discharge rates.