Need private packages and team management tools?Check out npm Teams »


6.0.8 • Public • Published

WebdriverIO Browserstack Service

A WebdriverIO service that manages local tunnel and job metadata for Browserstack users.


The easiest way is to keep @wdio/browserstack-service as a devDependency in your package.json.

    "devDependencies": {
        "@wdio/browserstack-service": "^5.0.0"

You can simple do it by:

npm install @wdio/browserstack-service --save-dev

Instructions on how to install WebdriverIO can be found here.


WebdriverIO has Browserstack support out of the box. You should simply set user and key in your wdio.conf.js file. This service plugin provides supports for Browserstack Tunnel. Set browserstackLocal: true also to activate this feature.

// wdio.conf.js
export.config = {
    // ...
    services: [
        ['browserstack', {
    // ...


In order to authorize to the BrowserStack service your config needs to contain a user and key option.


Set this to true to enable routing connections from Browserstack cloud through your computer. You will also need to set browserstack.local to true in browser capabilities.

Type: Boolean
Default: false


Set this to true to kill the browserstack process on complete, without waiting for the browserstack stop callback to be called. This is experimental and should not be used by all. Mostly necessary as a workaraound for this issue.

Type: Boolean
Default: false


Specified optional will be passed down to BrowserstackLocal. See this list for details.

Type: Object
Default: {}

Known Issues

  • It's more of how webdriverio desigend the multi-process model. It is extremely hard if not impossible to reliable transfer localIdentifier to child-processes. We recommend to use it without the identifier at this moment, which will create an account-wide local tunnel.

For more information on WebdriverIO see the homepage.


npm i @wdio/browserstack-service

DownloadsWeekly Downloads






Unpacked Size

12.3 kB

Total Files


Last publish


  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar