Compound Ku-Shen Injection (CKI) is a traditional Chinese medicine preparation derived from Ku-Shen and Bai-Tu-Ling, commonly used in the adjunctive treatment of advanced cancers, including liver cancer. However, the underlying mechanisms of CKI's effectiveness in cancer treatment are not well defined. This study employs network pharmacology to investigate the traditional Chinese medicine (TCM) compatibility theory underlying CKI's action in treating liver cancer, with findings substantiated by molecular docking and in vitro experiments. Sixteen active components were identified from CKI, along with 193 potential targets for treating liver cancer. Key therapeutic target proteins, including EGFR and ESR1, were also identified. KEGG enrichment results showed that the neuroactive ligand-receptor interaction, cAMP signaling pathway, and serotonergic synapses make up the key pathway of CKI in the treatment of liver cancer. Molecular docking results confirmed that the key active ingredients effectively bind to the core targets. CCK-8 cytotoxic experiment results show that the CKI key components of oxymatrine and matrine can inhibit the growth of HepG2 liver cancer cell proliferation. A Western blot analysis revealed that oxymatrine suppresses the expression of EGFR, contributing to its therapeutic efficacy against liver cancer. our study elucidated the therapeutic mechanism of CKI in treating liver cancer and unveiled the underlying principles of its TCM compatibility through its mode of action.