Sourcegraph documentation

Sourcegraph is a code search and browsing tool with code intelligence that helps developers write and review code. Learn more about Sourcegraph at and use it at

Sourcegraph development is open source at Need help? Use the issue tracker.


Run a self-hosted Sourcegraph instance in 1 command:

docker run --publish 7080:7080 --publish 2633:2633 --rm --volume ~/.sourcegraph/config:/etc/sourcegraph --volume ~/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:3.0.0-beta

Continue at http://localhost:7080, and see administrator documentation for next steps.

Add code intelligence (hover tooltips, jump-to-definition, find-references) for languages like Go, TypeScript, Python, and others by enabling the corresponding Sourcegraph extension on the Sourcegraph extension registry.


Core documentation

Features and tutorials

Sourcegraph subscriptions

You can use Sourcegraph in 2 ways:

For self-hosted Sourcegraph instances, you run a Docker image or Kubernetes cluster on-premises or on your preferred cloud provider. There are 2 tiers: Core (free) and Enterprise. Enterprise features require a Sourcegraph subscription.