Carbon (C) and nitrogen (N) metabolisms participate in N source-regulated secondary metabolism in medicinal plants, but the specific mechanisms involved remain to be investigated. By using nitrate (NN), ammonium (AN), urea (UN), and glycine (GN), respectively, as sole N sources, we found that N sources remarkably affected the contents of diterpenoid lactone components along with C and N metabolisms reprograming in Andrographis paniculata, as compared to NN, the other three N sources raised the levels of 14-deoxyandrographolide, andrographolide, dehydroandrographolide (except UN), and neoandrographolide (except AN) with a prominent accumulation of farnesyl pyrophosphate (FPP). These N sources also raised the photosynthetic rate and the levels of fructose and/or sucrose but reduced the activities of phosphofructokinase (PFK), glyceraldehyde-3-phosphate dehydrogenase (GAPDH), phosphoenolpyruvate carboxylase (PEPC) and pyruvate dehydrogenase (PDH). Conversely, phosphoenolpyruvate carboxykinase (PEPCK) and malate enzyme (ME) activities were upregulated. Simultaneously, citrate, cis-aconitate and isocitrate levels declined, and N assimilation was inhibited. These results indicated that AN, UN and GN reduced the metabolic flow of carbohydrates from glycolysis into the TCA cycle and downstream N assimilation. Furthermore, they enhanced arginine and GABA metabolism, which increased C replenishment of the TCA cycle, and increased ethylene and salicylic acid (SA) levels. Thus, we proposed that the N sources reprogrammed C and N metabolism, attenuating the competition of N assimilation for C, and promoting the synthesis and accumulation of andrographolide through plant hormone signaling. To obtain a higher production of andrographolide in A. paniculata, AN fertilizer is recommended in its N management.