We offer APIs to help you manage local binary instances. You can use them as follows.
Check the status of all Local binaries that are currently running.
curl -X GET "https://www.browserstack.com/local/v1/list?auth_token=YOUR_ACCESS_KEY&last=5&state=running"
Disconnect an active Local Testing connection through the binary command-line interface.
curl -X DELETE "https://www.browserstack.com/local/v1/QUERTY1?auth_token=YOUR_ACCESS_KEY"
For more info, refer to the Local API for debugging binaries page for more details.