Screening for osteoporosis is crucial for early detection and prevention, yet it faces challenges due to the low accuracy of calcaneal quantitative ultrasound (QUS) and limited access to dual-energy X-ray absorptiometry (DXA) scans. Recent advances in AI offer a promising solution through opportunistic screening using existing medical images. This study aims to utilize deep learning techniques to develop a model that analyzes chest X-ray (CXR) images for osteoporosis screening. This study included the AI model development stage and the clinical validation stage. In the AI model development stage, the combined dataset of 5122 paired CXR images and DXA reports from the patients aged 20 to 98 years at a medical center was collected. The images were enhanced and filtered for hardware retention such as pedicle screws, bone cement, artificial intervertebral discs or severe deformity in target level of T12 and L1. The dataset was then separated into training, validating, and testing datasets for model training and performance validation. In the clinical validation stage, we collected 440 paired CXR images and DXA reports from both the TCVGH and Joy Clinic, including 304 pared data from TCVGH and 136 paired data from Joy Clinic. The pre-clinical test yielded an area under the curve (AUC) of 0.940, while the clinical validation showed an AUC of 0.946. Pearson's correlation coefficient was 0.88. The model demonstrated an overall accuracy, sensitivity, and specificity of 89.0%, 88.7%, and 89.4%, respectively. This study proposes an AI model for opportunistic osteoporosis screening through CXR, demonstrating good performance and suggesting its potential for broad adoption in preliminary screening among high-risk populations.