Anti-contactin associated protein receptor 2 (CASPR2) encephalitis is a severe autoimmune encephalitis with a variable clinical phenotype including behavioral abnormalities, cognitive decline, epileptic seizures, peripheral nerve hyperexcitability and neuropathic pain. Here, CNTNAP2 is linked to viral encephalitis.