# 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.

-   [Install Sourcegraph for Chrome](https://chrome.google.com/webstore/detail/sourcegraph/dgjhfomjieaadpoljlnidmbgkdffpack)
-   [Install Sourcegraph for Safari](https://apps.apple.com/us/app/sourcegraph-for-safari/id1543262193)
-   [Install Sourcegraph for Firefox](https://addons.mozilla.org/en-US/firefox/addon/sourcegraph-for-firefox)

> NOTE: If you were using our self-hosted version of Firefox Extension and are looking to upgrade, please check our [migration guide](/integration/migrating-firefox-extension).

## Configure to use your Sourcegraph instance

<video
	width="1920"
	height="1080"
	loop
	playsInline
	controls
	style={{width: '100%', height: 'auto'}}
>
	<source src="https://storage.googleapis.com/sourcegraph-assets/code-host-integration/PrivateInstanceDark.mp4" />
</video>

By default, the browser extension communicates with [sourcegraph.com](https://sourcegraph.com), which has only public code.

To use the browser extension with your private repositories, you need to have access to a private Sourcegraph instance and connect the extension to it.

Follow these instructions:

1. [Set up Sourcegraph](/code-search#getting-started). Skip this step if you already have a private Sourcegraph instance.
2. Click the Sourcegraph extension icon in the browser toolbar on the browser tab for your private Sourcegraph instance then open the settings page.
3. Enter the URL (including the protocol) of your Sourcegraph instance (such as `https://sourcegraph.example.com`)
4. Make sure the connection status shows "Looks good!"

## Grant permissions for your code host

<video
	width="1920"
	height="1080"
	loop
	playsInline
	controls
	style={{width: '100%', height: 'auto'}}
>
	<source src="https://storage.googleapis.com/sourcegraph-assets/code-host-integration/GrantPermissionsDark.mp4" />
</video>

-   [GitHub.com](https://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:

1. Navigate to any page on your code host.
2. Right-click the Sourcegraph icon in the browser extension toolbar.
3. Click "Enable Sourcegraph on this domain".
4. Click "Allow" in the permissions request popup.
