Quick start
Your first code, where you can already connect to a running browser and make the transition to the site. In this example we do not use Local API requests
Action Algorithm:
- Start your profile manually using 0DETECT dashboard
- Wait for the browser to appear, the start button will turn red
- In the context menu of this profile «More options» the menu item «API» will become available, click on it
- In the modal window that appears, click on the button with the desired programming language. In this way you will copy two variables with the necessary values

Code example
import time
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service
# We copy this from 0Detect dashboard
profile_id = "687a27d67f8be2d32f379576"
devtools_port = 30878
# We copy this from 0Detect dashboard - Options
chrome_driver = "C:\\Users\\Black Power\\AppData\\Roaming\\0detect browser\\Zorro\\chromedriver.exe"
chrome_options = Options()
chrome_options.add_experimental_option("debuggerAddress", f"127.0.0.1:{devtools_port}")
service = Service(chrome_driver)
driver = webdriver.Chrome(service=service, options=chrome_options)
driver.get('https://duckduckgo.com/')
time.sleep(10)
driver.close()
Result of script execution
The browser will automatically open the link https://duckduckgo.com/ (opens in a new tab)
Important points
- The variables profile_id, devtools_port, chrome_driver should be copied in your dashboard. You will have different values.
- The devtools_port variable may have a different value each time the browser is started. So if the browser is restarted, devtools_port has already changed and needs to be updated in the script.