While DNA amplifier-built nanobiosensors featuring a DNA polymerase-free catalytic hairpin assembly (CHA) reaction have shown promise in fluorescence imaging assays within live biosystems, challenges persist due to unsatisfactory precision stemming from premature activation, insufficient sensitivity arising from low reaction kinetics, and poor biostability caused by endonuclease degradation. In this research, we aim to tackle these issues. One aspect involves inserting an analyte-binding unit with a photoinduced cleavage bond to enable a light-powered notion. By utilizing 808 nm near-infrared (NIR) light-excited upconversion luminescence as the ultraviolet source, we achieve entirely a controllable sensing event during the biodelivery phase. Another aspect refers to confining the CHA reaction within the finite space of a DNA self-assembled nanocage. Besides the accelerated kinetics (up to 10-fold enhancement) resulting from the nucleic acid restriction behavior, the DNA nanocage further provides a 3D rigid skeleton to reinforce enzymatic resistance. After selecting a short noncoding microRNA (miRNA-21) as the modeled low-abundance sensing analyte, we have verified that the innovative NIR light-powered and DNA nanocage-confined CHA nanobiosensor possesses remarkably high sensitivity and specificity. More importantly, our sensing system demonstrates a robust imaging capability for this cancer-related universal biomarker in live cells and tumor-bearing mouse bodies, showcasing its potential applications in disease analysis.