How to use CLI and Local API in Multilogin 6
Although our app supports headless mode, browser profiles require a graphical user interface to function properly. Here's how you can set it up. In just 3 simple steps, you’ll be ready to start using the Multilogin 6 Local API with the Command Line Interface (CLI)!
Step 1: define the app listening port
Define ports MLA
Here's how to predefine your default listening port in the app.properties file:
- Open Multilogin
- Go to “My account”
- Click “Open logs directory” – this will open the folder
/.multiloginapp.com/logs - Navigate one folder up to
/.multiloginapp.com - Use any text editor to open
app.properties - Add a new line to specify the port number:
multiloginapp.port=35000 - Save the changes
Make sure the port number is between 10000 and 49151.
You can also find the app.properties file in the .multiloginapp.com folder:
- Windows:
C:\Users\%username%\.multiloginapp.com - Linux:
/home/%username%/.multiloginapp.com - macOS:
/Users/%username%/.multiloginapp.com
The folder may be hidden, depending on your OS settings. To display this folder on Mac devices, you can use the following keyboard shortcuts:
-
Cmd + Shift + H– to display the current user's folder -
Cmd + Shift + .(period) – to display hidden folders and files

Step 2: launch the CLI
Before typing anything into the prompt window, make sure your Cmd/Terminal is open in the directory specified below.
Multilogin version 6.0 or higher:
-
Windows:
C:\Program Files (x86)\Multilogin\headless -
macOS:
/Applications/multilogin.app/Contents/MacOS/multilogin.app/Contents/MacOS -
Linux:
/opt/Multilogin/headless
Multilogin version 5.19 or lower:
-
Windows:
C:\Program Files (x86)\Multilogin -
macOS:
/Applications/multilogin.app/Contents/MacOS
UNIX system users:
You need to add execution permissions to the .sh file. Do it via the chmod +x command (for example, chmod +x headless.sh).
Start Multilogin in headless mode
- Windows:
headless.exe - Linux/macOS:
./headless.sh
Start Multilogin in headless mode on port 35000
- Windows:
headless.exe -port 35000 - Linux/macOS:
./headless.sh -port 35000
Log in to your Multilogin account
- Windows:
cli.exe -login -u [email protected] -p password123 - Linux/macOS:
./cli.sh -login -u [email protected] -p password123
Step 3: use Local API endpoints
Check our full list of Multilogin 6 API endpoints in our Swagger documentation!