Low efficiency and poor stability are two major challenges we encounter in the exploration of non-noble metal electrocatalysts for the hydrogen evolution reaction (HER) in both acidic and alkaline environment. Herein, the hybrid of cobalt encapsulated by N, B codoped ultrathin carbon cages (Co@BC…