MostLogin Developer Guide
1. Overview#
MostLogin is a Chromium-based fingerprint browser with multi-window management.
Through the Local API, developers can programmatically control windows and integrate with automation frameworks. When a window is opened, MostLogin returns:CDP debugging URL (for CDP-based automation)
HTTP URL (for CDP over HTTP)
Chromedriver path (driverPath
) (for WebDriver/Selenium)
Selenium (via Chromedriver)
Playwright (via connect_over_cdp
)
Puppeteer (via browserWSEndpoint
)
2. Environment Setup#
Install and start the MostLogin client.
Enable the Local API service.
Confirm the Local API listening address (default: http://127.0.0.1:30898
).
Ensure firewall rules allow local connections to the exposed ports.
3. Local API Capabilities (What You Can Do)#
For detailed endpoints, parameters, and examples, see the Detailed API Reference at the end of this document.
Create, update, delete, and list Folders.
Create, update, delete, and list Profiles.
Assign a Proxy to a Profile.
Assign a Folder to a profile
Create, update, delete, and list Proxies.
Optionally test proxy connectivity.
Retrieve window runtime information (ws
, http
, pid
, driverPath
, status).
Automation integration helpersObtain connection details for CDP or Chromedriver.
Use ws
with Playwright/Puppeteer.
Use driverPath
with Selenium.
4. Typical Workflow#
1.
Use the Local API to open a window for a specific Profile.
2.
Read the response to obtain ws
, http
, pid
, and driverPath
.
3.
Connect your automation framework (Selenium/Playwright/Puppeteer) using those values.
4.
Run your automation logic.
5.
Use the Local API to close the window (or close it gracefully in your framework first, then confirm with the API).
5. Integration Examples#
5.1 Selenium (WebDriver via Chromedriver)#
5.2 Playwright (CDP over HTTP)#
5.3 Puppeteer (CDP over WebSocket)#
Prefer CDP (ws
/ http
) for Playwright and Puppeteer.
Prefer WebDriver (driverPath
) for Selenium.
If both are available, choose based on your framework and tooling.
6. Best Practices#
Close gracefully: end automation tasks before closing the window via API.
Track PIDs: monitor pid
to avoid orphaned processes.
Unique IDs: use profileId
(if provided by the API) to target a specific window.
Version alignment: ensure driverPath
matches the Chromium build used by MostLogin when using Selenium.
Network hygiene: verify proxy availability before assigning it to a Profile.
7. Troubleshooting (FAQ)#
1.
Cannot connect over CDP after opening a profile windowVerify the port is open locally and not blocked by firewall/security software.
Ensure the window is still running and not closed by the user or system.
2.
Version mismatch errors in Selenium/PuppeteerConfirm that driverPath
(Chromedriver) matches the Chromium version embedded in MostLogin.
Update your client libraries if they are too old for the current CDP protocol.
3.
Confirm the Proxy is correctly associated with the Profile (and that the API call succeeded).
Test the Proxy independently to rule out connectivity or authentication issues.
8. Detailed API Reference#
Replace this section with your full endpoint documentation (paths, methods, parameters, examples).
Modified at 2025-08-19 09:13:04