Anaerobic fermentation of excess sludge (ES) for hydrogen production is a crucial strategy for resource utilization and environmentally friendly treatment. However, the low hydrolysis efficiency of ES and the depletion of produced hydrogen have become the limiting factors for low hydrogen yield. This study innovatively applied the bio-based surfactant alkyl polyglucoside (APG) to enhance the efficiency of dark fermentation for hydrogen production from ES. When the APG content was 100mg/g (calculated based on total suspended solids), the maximum hydrogen production reached 17.8 mL/g VSS, approximately 3.7 times that in the control group. Mechanistic analysis revealed that APG promoted the release of organic matter from ES. APG also facilitated the release of soluble protein and soluble polysaccharide, increasing the organic matter reduction rate to 34.8%, significantly higher than other groups. APG enhanced the accumulation of volatile fatty acids and promoted the proportion of small molecular carboxylic acids. Enzyme activity analysis revealed that APG promoted the activity of hydrolytic enzymes but inhibited the activity of hydrogen-consuming enzymes. The research results provide a green and environmentally friendly strategy for the efficient resource utilization of ES.