Gauge invariance of the charged-particle worldline action
= Gauge invariance of the charged-particle worldline action
Under $A_\mu\mapsto A_\mu+\partial_\mu\chi$, the interaction changes by
$$
q\int\frac{d\chi(x(\lambda))}{d\lambda}\,d\lambda
=q\,[\chi]_{\rm endpoints}.
$$
Fixed-endpoint equations of motion are therefore gauge invariant.