Anthocyanins are secondary metabolites which act as diverse functions during plant growth. Insects can discriminate host plants by their sensitive gustatory systems. It is hypothetical that chemosensory proteins (CSPs) play a crucial role in regulating this behavioral process. However, the underlying molecular mechanisms remain obscure. In the present study, we characterized a CSP SlitCSP8 from the Spodoptera litura (Fabricius) (Lepidoptera: Noctuidae). Quantitative real-time-polymerase chain reaction analysis demonstrated that SlitCSP8 was mainly expressed in the head of the 7th S. litura larvae, especially labrum. Further, recombinant SlitCSP8 was obtained using bacterial expression system. Fluorescence competitive binding assays demonstrated that the purified SlitCSP8 exhibited a strong binding affinity to anthocyanins, a natural compound derived from the host plant. Silencing SlitCSP8 through RNAi significantly reduced the sensitivity of S. litura larvae to anthocyanins-treated leaf disks, the development from larva to pupae was not affected. These data provide insight into the molecular basis that CSP8 can detect anthocyanins in host plants by chemosensory system of insects. It can be further used in designing novel optimal food attractant targeting to the CSPs for pest control.