The healthcare burden imposed by bacterial infections demands robust and accessible diagnostic methods that can be performed outside hospitals and centralized laboratories. Here, we report Pathogen Assay with Ratiometric Luminescence (PEARL), a sensitive and easy-to-operate platform for detecting pathogenic bacteria. The PEARL leveraged a color-changeable CRISPR-Cas12a sensor and recombinase polymerase amplification to elicit ratiometric bioluminescence responses to target inputs. This platform enabled robust and visualized identification of attomolar bacteria genome deoxyribonucleic acid according to the color changes of the reactions. In addition, the components of the color-changeable Cas12a sensor could be lyophilized for 3 month storage at ambient temperature and then be fully activated with the amplicons derived from crude bacterial lysates, reducing the requirements for cold-chain storage and tedious handling steps. We demonstrated that the PEARL assay is applicable for identifying the infections caused by Pseudomonas aeruginosa in different clinical specimens, including sputa, urines, and swabs derived from wounds. These results revealed the potential of PEARL to be used by untrained personnel, which will facilitate decentralized pathogen diagnosis in community- and resource-limited regions.