Background Sugarcane is one of the most crucial energy crops that produces high yields of sugar and lignocellulose. The cellulose crystallinity index (CrI) and lignin are the two kinds of key cell wall features that account for lignocellulose saccharification. Therefore, high-throughput screening of sugarcane germplasm with excellent cell wall features is considered a promising strategy to enhance bagasse digestibility. Recently, there has been research to explore near-infrared spectroscopy (NIRS) assays for the characterization of the corresponding wall features. However, due to the technical barriers of the offline strategy, it is difficult to apply for high-throughput real-time analyses. This study was therefore initiated to develop a high-throughput online NIRS assay to rapidly detect cellulose crystallinity, lignin content, and their related proportions in sugarcane, aiming to provide an efficient and feasible method for sugarcane cell wall feature evaluation. Results A total of 838 different sugarcane genotypes were collected at different growth stages during 2018 and 2019. A continuous variation distribution of the near-infrared spectrum was observed among these collections. Due to the very large diversity of CrI and lignin contents detected in the collected sugarcane samples, seven high-quality calibration models were developed through online NIRS calibration. All of the generated equations displayed coefficient of determination (R-2) values greater than 0.8 and high ratio performance deviation (RPD) values of over 2.0 in calibration, internal cross-validation, and external validation. Remarkably, the equations for CrI and total lignin content exhibited RPD values as high as 2.56 and 2.55, respectively, indicating their excellent prediction capacity. An offline NIRS assay was also performed. Comparable calibration was observed between the offline and online NIRS analyses, suggesting that both strategies would be applicable to estimate cell wall characteristics. Nevertheless, as online NIRS assays offer tremendous advantages for large-scale real-time screening applications, it could be implied that they are a better option for high-throughput cell wall feature prediction. Conclusions This study, as an initial attempt, explored an online NIRS assay for the high-throughput assessment of key cell wall features in terms of CrI, lignin content, and their proportion in sugarcane. Consistent and precise calibration results were obtained with NIRS modeling, insinuating this strategy as a reliable approach for the large-scale screening of promising sugarcane germplasm for cell wall structure improvement and beyond.