Quickstart for Browser Extensions
Get started with our Browser Extension in 5 minutes or less
Installation
Use one of the following links to install the Sourcegraph Browser Extension for your favourite browser.
NOTE: If you were using our self-hosted version of Firefox Extension and are looking to upgrade, please check our migration guide.
Configure to use your Sourcegraph instance
By default, the browser extension communicates with sourcegraph.com, which has only public code.
To use the browser extension with your private repositories, you need to set up a private Sourcegraph instance and connect the extension to it.
Follow these instructions:
- Install Sourcegraph. Skip this step if you already have a private Sourcegraph instance.
- Click the Sourcegraph extension icon in the browser toolbar on the browser tab for your private Sourcegraph instance then open the settings page.
- Enter the URL (including the protocol) of your Sourcegraph instance (such as
https://sourcegraph.example.com
) - Make sure the connection status shows "Looks good!"
Grant permissions for your code host
- GitHub.com - no action required.
- GitHub Enterprise, GitLab, Bitbucket Server, Bitbucket Data and Phabricator - you need to grant the extension permissions first.
To grant these permissions:
- Navigate to any page on your code host.
- Right-click the Sourcegraph icon in the browser extension toolbar.
- Click "Enable Sourcegraph on this domain".
- Click "Allow" in the permissions request popup.