Conditioned deletion of SHP-1 in NaV1.8+ neurons aggravated bone cancer pain and diminished the inhibition of PD-L1 on TRPV1 currents and pain. Here, CD274 is linked to bone neoplasm.