If you’re setting up a new Mac, you can use the Setup Assistant. This will automatically transfer all of your iCloud Keychain passwords for you. But if you don’t use the assistant and want to copy over your passwords, here’s how to export and import your iCloud Keychain passwords, certificates, and keys on Mac.
How to import and export iCloud Keychain passwords