Let $$\mathcal S$$ be an abelian group of automorphisms of a probability space $$(X, {\mathcal A}, \mu )$$ with a finite system of generators $$(A_1, \ldots , A_d).$$ Let $$A^{{\underline{\ell }}}$$ denote $$A_1^{\ell _1} \ldots A_d^{\ell _d}$$ , for $${{\underline{\ell }}}= (\ell _1, \ldots , \ell _d).$$ If $$(Z_k)$$ is a random walk on $${\mathbb {Z}}^d$$ , one can study the asymptotic distribution of the sums $$\sum _{k=0}^{n-1} \, f \circ A^{\,{Z_k(\omega )}}$$ and $$\sum _{{\underline{\ell }}\in {\mathbb {Z}}^d} {\mathbb {P}}(Z_n= {\underline{\ell }}) \, A^{\underline{\ell }}f$$ , for a function f on X. In particular, given a random walk on commuting matrices in $$SL(\rho , {\mathbb {Z}})$$ or in $${\mathcal M}^*(\rho , {\mathbb {Z}})$$ acting on the torus $${\mathbb {T}}^\rho $$ , $$\rho \ge 1$$ , what is the asymptotic distribution of the associated ergodic sums along the random walk for a smooth function on $${\mathbb {T}}^\rho $$ after normalization? In this paper, we prove a central limit theorem when X is a compact abelian connected group G endowed with its Haar measure (e.g., a torus or a connected extension of a torus), $$\mathcal S$$ a totally ergodic d-dimensional group of commuting algebraic automorphisms of G and f a regular function on G. The proof is based on the cumulant method and on preliminary results on random walks.