How to run CookieRobot in Multilogin CLI
CookieRobot opens selected websites and collects cookie data automatically for browser profiles.
➡️ To run CookieRobot in Multilogin CLI, launch Multilogin → open CLI → sign in → get the browser profile ID → run xcli cookie-robot --profile-id profile_id on Windows or ./xcli cookie-robot --profile-id profile_id on macOS/Linux.
Our Script runner API offers a cookie-robot command, allowing you to start collecting cookies in no more than 5 steps!
This guide covers CookieRobot automation for browser profiles.
Before you start
- Launch Multilogin so you have the latest CLI version
- Open Multilogin CLI
- Have your Multilogin login details ready
- Get the IDs of the browser profiles you want to use
Open Multilogin CLI
Launch Multilogin, then open Command Prompt or Terminal, go to the CLI folder and run CLI executable:
Windows
- Go to the CLI folder:
C:/Users/%username%/mlx/deps/cli - Run
xcli.exe
macOS
- Go to the CLI folder:
/Users/%username%/mlx/deps/cli - Run
./xcli:./xcli
Linux
- Go to the CLI folder:
/Home/%username%/mlx/deps/cli - Run
./xcli:./xcli
Follow the article for more details: How to start working with CLI.
Run default settings
-
Sign in via
xcli login --username your name --password your password:
Windows
- Paste this prompt to sign in:
xcli login --username 'your username' --password 'your password' - Replace values of the flags (
--usernameand--password) with your email and password

macOS
- Paste this prompt to sign in:
./xcli login --username 'your username' --password 'your password' - Replace values of the flags (
--usernameand--password) with your email and password

Linux
- Paste this prompt to sign in:
./xcli login --username 'your username' --password 'your password' - Replace values of the flags (
--usernameand--password) with your email and password

- Collect one or more profile IDs you wish to gather cookies
-
Enter
xcli cookie-robot --profile-id “profile id”→ your browser will open in headless mode and start collecting cookies!
Windows
xcli cookie-robot --profile-id profile_idmacOS/Linux
./xcli cookie-robot --profile-id profile_id
If profiles are already started, make sure they are started with appropriate automation flags, otherwise the script will not start.
Customize settings
There are several customizable parameters that influence how the crawling process works. They allow users to adjust settings such as the target website, crawling order, and more. By fine-tuning these options, users can optimize the script’s performance to their specific needs.
--profile-id
--profile-idAn object containing a profile ID number. Multiple entries can be added.
Windows
xcli cookie-robot --profile-id profile_id --profile-id profile_idmacOS/Linux
./xcli cookie-robot --profile-id profile_id --profile-id profile_idUnable to see CookieRobot working? Headless mode is activated by default! If you want to deactivate it, add :false after the profile ID:![]()
Windows:
xcli cookie-robot --profile-id profile_id:false
macOS/Linux:
./xcli cookie-robot --profile-id profile_id:false
--website
--websiteAn object containing a website that will be crawled by the CookieRobot, such as --website=https://google.com. Multiple entries can be added.

Windows
xcli cookie-robot --profile-id profile_id --website="url"macOS/Linux
xcli cookie-robot --profile-id profile_id --website="url"If no --website is specified, the default list is used: AliExpress, Amazon, eBay, Fiverr, Google, Reddit, Twitch, Twitter, Yahoo, YouTube, Wikipedia.
--random-order
--random-order--fraction-mode
--fraction-modeWant to run just a portion of the websites, instead of all of them as default? Choose a float number between 0.0 and 1.0 (0% to 100%) as the fraction.
-
--fraction-mode=0.5will run 50% of the websites in the list
--process-cookie-consent
--process-cookie-consentControls whether CookieRobot tries to interact with supported cookie-consent pop-ups.
-
--process-cookie-consent=true→ CookieRobot will click the consent button automatically (default) -
--process-cookie-consent=false→ CookieRobot will ignore cookie pop-ups.