- Home
- Automate Tasks via API
- CLI Automation Operations
- How to Run CookieRobot in Multilogin CLI
How to Run CookieRobot in Multilogin CLI
Author Yelena V (Updated on March 16, 2026)
Updated on March 16, 2026
By building a browsing history, cookies can make your profile appear more like a real user. The best time to collect cookies is after creating the profile! This way, your profile will have a natural cookie history before visiting important websites.
Our script runner API provides a cookie-robot command that allows you to start collecting cookies in less than 4 steps!
cookie-robot
Run Default Settings
- Open your Multilogin CLI
- Log in using
xcli login --username yourname --password yourpass
xcli login --username yourname --password yourpass
- Collect one or more profile IDs for which you want to collect cookies
- Enter
xcli cookie-robot --profile-id “profileid”→ Your browser will open in headless mode and start collecting cookies!

xcli cookie-robot --profile-id “profileid”
If the profile is already running, make sure it is started with the appropriate automation flags, otherwise the script will not run.
Custom Settings
There are multiple customizable parameters that affect how the crawling process works. They allow users to adjust settings such as the target website and the crawling order. By fine-tuning these options, users can optimize the script's performance according to their specific needs.
–profile-id
--profile-id
An object containing the profile ID number. Multiple entries can be added.
Can't see CookieRobot working? This means headless mode is enabled by default! If you want to disable it, add :false after the profile ID:
:false
–website

--website
Specifies the websites that CookieRobot will scrape, for example –website=https://google.com. Multiple entries can be added.
--website=https://google.com
If –website is not specified, the default list will be used: AliExpress, Amazon, eBay, Fiverr, Google, Reddit, Twitch, Twitter, Yahoo, YouTube, Wikipedia.
--website
We recommend collecting cookies from multiple sources to get a more realistic fingerprint. Check Collecting Cookies: Our tips article for details.
–random-order
--random-order
- –random-order=true → Shuffle items and visit websites randomly
--random-order=true

- –random-order=false → Keep everything in order and visit the listed websites
--random-order=false
–fraction-mode
--fraction-mode
Want to run only a portion of the websites, instead of running all websites by default? Choose a floating-point number between 0.0 and 1.0 (0% to 100%) as the fraction.
- –fraction-mode=0.5 will run 50% of the websites in the list in random order.
--fraction-mode=0.5
–process-cookie-consent
--process-cookie-consent
Due to privacy laws such as GDPR (What is GDPR?), many websites display an 'Allow Cookies' button, as the law requires obtaining user consent before tracking cookies.

- –process-cookie-consent=true → CookieRobot will automatically click the consent button (default)
--process-cookie-consent=true
- –process-cookie-consent=false → CookieRobot will ignore cookie pop-ups. This feature is useful in the following situations: you are browsing non-EU websites that do not display a cookie banner, you are not concerned about GDPR compliance (for example, using a global IP outside the EU)
--process-cookie-consent=false
- You are browsing non-EU websites that do not display a cookie banner
- You are not concerned about GDPR compliance (for example, using a global IP outside the EU)
–closeBrowser
--closeBrowser
If you want to close the profile after the script runs, you can change this parameter. Conversely, you can do the opposite.
- Set to "true" → the profile will be closed (default)
"true"

- Set to "false" → the profile will remain open
"false"
In this article
- Run default settings
- Custom settings
- –profile-id
- –website
- –random-order
- –fraction-mode
- –process-cookie-consent
- –closeBrowser
Multilogin Community
Stay informed, share your thoughts, and interact with others!
Read more related content
Related Articles
- What is CLI automation?
- Understanding CLI command flags
- How to use the script runner in Multilogin CLI
- How to enable 2FA (two-factor authentication) in CLI