Git has a built-in option to the commit command to add Trailer Messages with --trailer so you could use it to add Co-authored-by trailer messages to your last commit with git commit --amend --trailer="Co-authored-by: name <email>".
You can also see commits grouped by trailer message using the shortlog command with something like git shortlog --group=trailer:co-authored-by.