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 about.sourcegraph.com.

Sourcegraph development is open source at github.com/sourcegraph/sourcegraph. If these docs don’t solve your problem, check the issue tracker.

Quickstart

Run a self-hosted Sourcegraph instance for your team:

docker run \
  --publish 7080:7080 --rm \
  --volume ~/.sourcegraph/config:/etc/sourcegraph \
  --volume ~/.sourcegraph/data:/var/opt/sourcegraph \
  --volume /var/run/docker.sock:/var/run/docker.sock \
  sourcegraph/server:2.13.5

When Sourcegraph is ready, continue at http://localhost:7080. See site administration documentation for next steps.

For users

The user documentation is about how to use Sourcegraph. The most read docs are:

For site administrators

The site administration documentation is about deploying and managing a Sourcegraph self-hosted instance.

For Sourcegraph extension authors

See Sourcegraph extensions documentation to extend Sourcegraph with new features.

For contributors to Sourcegraph

See the contributor documentation and the main Sourcegraph repository (open-source).

Sourcegraph roadmap

The Sourcegraph roadmap describes what’s coming next.

Sourcegraph subscriptions

You can use Sourcegraph in 2 ways:

  • Self-hosted Sourcegraph: Deploy and manage your own Sourcegraph instance.
  • Sourcegraph.com: For public code only. No signup or installation required.

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