Background: Osteoporosis (OP) is determined as a chronic systemic bone disorder to increase the susceptibility to fracture. Ginsenosides have been found the anti-osteoporotic activity of in vivo and in vitro. However, its mechanism remains unknown.Methods: The potential mechanism of ginsenosides in anti-osteoporotic activity was identified by using network phamacology analysis. The active compounds of ginsenosides and their targets associated to OP were retrieved from Traditional Chinese Medicine Systems Pharmacology Database and Analysis Platform, Drug Bank, Pharmmapper, and Cytoscape. The Gene ontology (GO) enrichment analysis and Kyoto Encyclopedia of Genes and Genomes (KEGG) pathway analysis target genes were performed in String, Phenopedia, DisGeNET database, and Metascape software. The protein to protein interaction were created by String database and Cytoscape software. The molecular docking was used to investigate the interactions between active coumpounds and potential targets by utilizing SwissDock tool, UCSF Chimera, and Pymol software. Results: A total of eight important active ingredients and 17 potential targets related to OP treatment were subjected to analyze. GO analysis showed the anti-osteoporosis targets of ginsenoside mainly play a role in the response to steroid hormone. KEGG enrichment analysis indicated that ginsenoside treats OP by osteoblast differentiation signal pathway. Lastly, the molecular docking outcomes indicated that ginsenoside rh2 had a good binding ability with four target proteins IL1B, TNF, IFNG, and NFKBIA. Conclusion: IL1B, TNF, IFNG, and NFKBIA are the most important targets and osteoblast differentiation is the most valuable signaling pathways in ginsenoside for the treatment of OP, which might be beneficial to elucidate the mechanism concerned to the action of ginsenoside and might supply a better understanding of its anti-OP effects.