Abstract When properly deployed, the immune system can eliminate deadly pathogens, eradicate metastatic cancers, and provide long-lasting protection from diverse diseases. Unfortunately, realizing these remarkable capabilities is inherently risky as disruption to immune homeostasis can elicit dangerous complications or autoimmune disorders. While current research is continuously expanding the arsenal of potent immunotherapeutics, there is a technological gap when it comes to controlling when, where, and how long these drugs act on the body. Here, we explore the ability of a slow-releasing injectable hydrogel depot to reduce the problematic dose-limiting toxicities of immunostimulatory CD40 agonist (CD40a) while maintaining their potent anti-cancer efficacy. We leverage a previously described polymer-nanoparticle (PNP) hydrogel system that exhibits shear-thinning and yield-stress properties that we hypothesized would improve locoregional delivery of the CD40a immunotherapy. Using PET imaging, we demonstrate that prolonged hydrogel-based delivery redistributes CD40a exposure to the tumor and the tumor draining lymph node (TdLN), thereby reducing weight loss, hepatotoxicity, and cytokine storm associated with standard treatment. Moreover, CD40a-loaded hydrogels mediate improved local cytokine induction in the TdLN and improve treatment efficacy in the B16F10 melanoma model. PNP hydrogels, therefore, represent a facile, drug-agnostic method to ameliorate immune-related adverse effects and explore locoregional delivery of immunostimulatory drugs.