How to create preset profile templates with Python
If you're automating website actions, you probably want your profiles ready to roll immediately – without the hassle of manually selecting a Multilogin proxy and importing cookies. Good news: we’ve got a script for that! 🛠️
Why use preset profile templates?
This handy script automates the entire process for you. Here’s what it does:
- Get a Multilogin proxy through the API
- Create a profile through the API
- Import cookies into the profile
- Repeat the process, if needed
There is a known UI bug when creating profiles with Multilogin proxy in API: proxy details will appear at the Custom tab. Keep this in mind! 🚨
Customize the script
- Extract the contents from
profile_template.zipinto your local folder - Open the
.envfile with any text editor - Customize the values in your
.envfile:-
AUTHORIZATION_TOKEN: your Multilogin X access token -
PROXY_TYPE:http/socks5 -
BROWSER_TYPE:mimic/stealthfox -
PROXY_COUNTRY: use the 2-digit convention (check here) -
FOLDER_ID: your Multilogin X folder ID -
RANGE_START: first number of profile to be created (used in the profile name) -
RANGE_END: last number of profile to be created -
COOKIE_TYPE:google/ebay/etsy/bing/mixed/facebook/amazon, or other
-
AUTHORIZATION_TOKEN = <your token string>
# socks5 or http
PROXY_TYPE = socks5
# mimic or stealthfox
BROWSER_TYPE = mimic
# Multilogin proxy coutry
PROXY_COUNTRY = us
FOLDER_ID = <your profile folder ID>
# number of profile to be created. Will be used in the profile name
RANGE_START = 1
RANGE_END = 6
COOKIE_TYPE = amazon
# list of cookie type: ['google','ebay','etsy','bing','mixed','facebook','amazon']Run the script
Make sure your agent is connected before starting the script.
- Open the command prompt (Win) or Terminal (macOS)
- Locate the folder where you extracted the files
- Run the script using Python:
python profile_template.pyThe script will loop through and create multiple profiles if needed. Easy, right? 😎 This is an example of a successful output:

If you run into any issues, double-check the .env settings and your token as it might have expired.