Install on Visual Studio Code
Install Test Companion in Visual Studio Code, Cursor, or VSCodium to generate, automate, and fix test cases without leaving your editor.
Install Test Companion from your IDE’s Extensions view. The same flow works in Visual Studio Code and in forks like Cursor and VSCodium.
The setup process has three steps:
Prerequisites
Before you install the extension, make sure you have:
- A BrowserStack account. If you do not have one, create one here.
- A current version of Visual Studio Code, Cursor, or VSCodium.
Install the extension
Install Test Companion from the Extensions view inside your IDE. This is the safest install path. Your IDE pulls the extension from the marketplace it trusts, so you avoid the risk of downloading a tampered .vsix file from an unknown source.
- Open the Extensions view in your IDE.
-
Keyboard shortcut:
Ctrl+Shift+Xon Windows and Linux, orCmd+Shift+Xon macOS. - UI: Click the blocks icon in the Activity Bar.

-
Keyboard shortcut:
-
In the search bar, type
Test Companion.
- Locate the Test Companion extension in the results list, published by BrowserStack.
- Click Install.
Verify the installation
After the install completes, look for the Test Companion icon in your IDE’s Activity Bar, the vertical strip of icons on the left edge of the editor.
Click the icon to open the Test Companion panel.

To use AI Agents in Test Companion, enable BrowserStack AI in your account settings. For further details, refer to our comprehensive documentation on activating AI preferences.
Sign in to BrowserStack
Connect the extension to your BrowserStack account.
-
Click the Test Companion icon in the Activity Bar to open the Test Companion panel.

- In the panel, click Sign in with BrowserStack.
- Your default browser opens. It prompts you to authorize the extension.
- Follow the prompts to sign in. If you do not have an account, create one on the BrowserStack site.
After you sign in, the browser redirects you back to your IDE. The Test Companion panel now shows your user information. The extension is ready to use.
Test Companion is installed and configured.
Next steps
Start exploring what Test Companion can do:
- Generate test cases: Write test cases from requirements using AI.
- Automate tests with AI: Convert manual test cases into executable automation scripts.
- Fix failed tests: Debug and fix test failures using Test Reporting & Analytics.
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!