Cobalt selenide (CoSe2) emerges as a highly promising anode material for lithium-ion batteries (LIBs) owing to its high theoretical capacity and cost-effectiveness. Despite these merits, its practical utilization faces challenges stemming from substantial volume fluctuations and limited electronic conductivity. To tackle these issues, a plum-branch-like structure of CoSe2@N-doped carbon that embedded in one-dimensional N-doped carbon fibers (CoSe2@NC/CFs), is successfully synthesized through an in-situ confinement method. Well-defined CoSe2@NC nanoparticles, featuring diameters between 20∼30 nm, are uniformly dispersed on both the inner and outer surfaces of the carbon fibers. The distinctive architecture of CoSe2@NC/CFs ensures an increased number of active sites, elevated electronic conductivity, alleviated volume expansion, and accelerated reaction kinetics. Consequently, the CoSe2@NC/CFs exhibits remarkable cycling performance and exceptional rate capability. Operating at a current density of 1000 mA g−1, the CoSe2@NC/CFs anode sustains a capacity of 664 mA h g−1 with no obvious capacity decay over 500 cycles. Even at a high current density of 5000 mA g−1, it maintains a capacity of 445 mA h g−1 with a mere 0.02 % capacity decay per cycle. This study introduces a novel approach to anode material design, showcasing significant advancements in lithium-ion battery technology.