Drug delivery implants suffer from diminished release profiles due to fibrous capsule formation over time. Here, the authors use soft robotic actuation to modulate the immune response of the host to maintain drug delivery over the longer-term and to perform controlled release in vivo.