The invention discloses a climbing robot walking along an overhead line, and the climbing robot comprises a support structure which comprises a controller. One side part of the support structure is provided with a front cantilever device, a center cantilever device and a rear cantilever device. The three cantilever devices are connected with the support structure through a cantilever device pedestal, and the front cantilever device and the rear cantilever device are located at two ends of the support structure. The front and rear cantilever devices each comprises a walking drive mechanism located at the top, an unfolding mechanism, a flexible rotating mechanism, a clamping mechanism, and a lifting mechanism which is located below, wherein the unfolding mechanism, the flexible rotating mechanism and the clamping mechanism are located at the central part. The center cantilever device comprises a walking drive mechanism at the top, an unfolding mechanism and a flexible rotating mechanismwhich are both located at the central part, a lifting mechanism located below, and a charging mechanism located at the front side of the center cantilever device. The climbing robot achieves the stable walking and climbing along an overhead line (220kV-500kV), and can be installed on a shock-proof hammer and a suspension line clamp on the overhead line in a crossing manner. The climbing robot is strong in obstacle crossing capability, is high in obstacle crossing efficiency, is large in climbing angle, is stable in structure, is light in weight, is simple in operation, and is good in real-timeperformance.