Build better software with code intelligence and search

Sourcegraph is a free, self-hosted code search and intelligence server that helps developers find, review, understand, and debug code. Use it with any Git code host for teams from 1 to 10,000+. Upgraded features start at $5/user/month.

Quickstart: Run this command, wait for the server to be ready, then visit http://localhost:7080.

docker run --publish 7080:7080 --rm -v ~/.sourcegraph/config:/etc/sourcegraph -v ~/.sourcegraph/data:/var/opt/sourcegraph -v /var/run/docker.sock:/var/run/docker.sock sourcegraph/server:2.9.3

Powerful, flexible queries

Use regular expressions and exact queries to perform full-text searches. Our robust query syntax helps you easily narrow your search.

Highly scalable

Search across 1-10,000+ repositories (at large scale, the Data Center deployment becomes necessary).

No indexing required

Your search results are always up-to-date. Search any branch or commit with no indexing delay.

Symbol and commit search

Search over symbols, commit diffs, and commit messages.

Enhanced code browsing with code intelligence: hovers, definitions, and references

Code intelligence makes browsing code easier, with IDE-like hovers, go-to-definition, and find-references on your code, powered by language servers based on the open-source Language Server Protocol.

It even works in code review diffs on GitHub and Phabricator with our browser extensions.

Starts at $5/user/month.

Code intelligence is everywhere you need it:
  • On code files and diffs on Sourcegraph's web interface
  • On code files on your code host, via our integrations
  • On diffs in your code review tool, via our integrations
  • In your own custom tools built on the Sourcegraph API

Code intelligence is powered by language servers based on the open-standard Language Server Protocol (published by Microsoft, with participation from Facebook, Google, Sourcegraph, GitHub, RedHat, Twitter, Salesforce, Eclipse, and others). Visit to learn more about the Language Server Protocol, find the latest support for your favorite language, and get involved.


Connect your Sourcegraph instance with your existing tools. Get code intelligence while browsing code on the web, and code search from your editor.

Browser extensions:

Deployment options

As you grow to hundreds or thousands of users and repositories, graduate from the single-server deployment to a highly scalable cluster with Sourcegraph Data Center.

Sourcegraph Server

  • Single-server deployment (Docker image)

Free for unlimited users and repositories.

Sourcegraph Data Center

  • Cluster deployment (using Kubernetes)
  • Scales to thousands of repositories and users
  • High availability
  • Monitoring

Starts at $5/user/month.

Powering developers at


...and more teams operating at massive scale.