Cockpit uses the usual tools to create and modify local user accounts. Examples are useradd, usermod and passwd. These same tools are available for use on the command line.
useradd
usermod
passwd