Skip to content
MultiloginHelp Center

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

  1. Go to the CLI folder:
    C:/Users/%username%/mlx/deps/cli
  2. Run xcli.exe

macOS

  1. Go to the CLI folder:
    /Users/%username%/mlx/deps/cli
  2. Run ./xcli:
    ./xcli

Linux

  1. Go to the CLI folder:
    /Home/%username%/mlx/deps/cli
  2. Run ./xcli:
    ./xcli

Follow the article for more details: How to start working with CLI.

Run default settings

  1. Sign in via xcli login --username your name --password your password:

Windows

  1. Paste this prompt to sign in: 
    xcli login --username 'your username' --password 'your password'
  2. Replace values of the flags  (--username and --password) with your email and password
Windows Command Prompt showing a successful Multilogin CLI login.

macOS

  1. Paste this prompt to sign in: 
    ./xcli login --username 'your username' --password 'your password'
  2. Replace values of the flags  (--username and --password) with your email and password
macOS Terminal showing a successful Multilogin CLI login.

Linux

  1. Paste this prompt to sign in: 
    ./xcli login --username 'your username' --password 'your password'
  2. Replace values of the flags  (--username and --password) with your email and password
Ubuntu terminal showing a successful Multilogin CLI login.
  1. Collect one or more profile IDs you wish to gather cookies
  2. 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_id

macOS/Linux

./xcli cookie-robot --profile-id profile_id
Windows terminal running the Multilogin cookie-robot command and showing SUCCESS.

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-id

 An object containing a profile ID number. Multiple entries can be added.

Windows

xcli cookie-robot --profile-id profile_id --profile-id profile_id

macOS/Linux

./xcli cookie-robot --profile-id profile_id --profile-id profile_id

Unable to see CookieRobot working? Headless mode is activated by default! If you want to deactivate it, add :false after the profile ID:
Multilogin CLI cookie-robot command with a profile ID followed by :false.

Windows:

xcli cookie-robot --profile-id profile_id:false

macOS/Linux:

./xcli cookie-robot --profile-id profile_id:false

--website

--website

An object containing a website that will be crawled by the CookieRobot, such as --website=https://google.com. Multiple entries can be added.

Multilogin CLI cookie-robot command with two --websites arguments.

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-mode

Want 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.5 will run 50% of the websites in the list
--process-cookie-consent

Controls 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. 

Stay in the loop

Catch the latest updates, exchange advice, explore practical use cases.

Get product updatesTelegram channelAsk other usersTelegram chatExplore use casesDiscord community