Two experiments were conducted to investigate the immune‐enhancing effect of dietary supplement with Astragalus polysaccharides (APS) on the Pacific white shrimp, Litopenaeus vannamei. In experiment 1, the optimal APS dose was determined based on the immune responses of shrimps fed APS diet for 30 days. In experiment 2, the effect of APS supplementation on immune response of shrimp suffering white spot syndrome virus (WSSV) challenge was determined. Results showed that the total haemocyte count and phagocytic activity in shrimps fed APS diets significantly (p < .05) increased in comparison with those fed the basal diet. Dietary supplement with APS markedly (p < .05) increased the activity of phenoloxidase (PO), total superoxide dismutase (SOD), lysozyme (LZM), acid phosphatase and alkaline phosphatase in shrimp hemolymph, but decreased the maleic dialdehyde (MDA) content. Significantly higher (p < .05) activity on PO, SOD and LZM and lower (p < .05) MDA content have also been found in shrimps suffering WSSV challenge. Therefore, APS could be used as a safe and effective feed additive in shrimp aquaculture, and the optimal dose of APS for the Pacific white shrimp was suggested to be 0.2 g/kg based on our results.