What is a cogroup and what are coactions?

A very nice way to think about group actions on an object $X$ is as a group homomorphism from $G$ to $\operatorname{Aut}(X)$. is there something similar for cogroups?