There's a whole thread about rooting on the hardware board but here's all the flashing unlocking steps in one place for a simple method that worked for me without downloading any unofficial tools or drivers.
This method will wipe all your data and settings. I did this immediately after getting my Cosmo so there was nothing to keep.
First in your Cosmo open Settings -> System -> Advanced -> About phone
Press 7 times on Build number.
You can now open a previously hidden menu: Settings -> System -> Advanced -> Developer options
Enable OEM unlocking and USB debugging
It might be a good idea to write down info from submenus under Settings -> Network & internet -> Mobile network -> Advanced -> Access Point Names
Now download
This zip containing adb and fastboot.
Unzip it in the terminal and install the commands in your path or just change to the platform-tools directory and prepend ./ to all the following adb and fastboot commands.
Connect the Cosmo left side USB-C port to the Mac. I'm using a 16" MacBook Pro running macOS Catalina, version 10.15.2.
Each command to enter is listed in a CODE block and expected response in a QUOTE block:
adb devices
List of devices attached
ABCDEFGHIJKLMNOP unauthorized
There should also be a popup on the Cosmo screen:
Allow USB debugging?
The computer's RSA key fingerprint is: ...
Press OK and try again:
adb devices
List of devices attached
ABCDEFGHIJKLMNOP device
Note the change, unauthorized -> device
adb reboot bootloader
The Cosmo should now restart to a black background and tiny white text in the bottom left:
=> FASTBOOT mode...
Now the fastboot command should start working:
fastboot devices
ABCDEFGHIJKLMNOP fastboot
fastboot flashing unlock
The Cosmo should now ask for confirmation in tiny white text. Press right side of fingerprint sensor button. This will confirm wiping your device! Afterwards, verify the unlocked status:
fastboot getvar unlocked
unlocked: yes
Finished. Total time: 0.001s
Now it's done. Reboot to get back to Android:
fastboot reboot
The planets will spin for quite some time while the device gets wiped.
Afterwards I couldn't get mobile data to work. The fix was to power down, remove the SIM card tray, power on (getting to the homescreen) and off again, reinsert the SIM tray and power on.
You can also compare APN settings (Access Point Names) if you wrote them down in the beginning.
Please reply if there's any problems with these instructions.