Build better software with code search and intelligence

Sourcegraph Server 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 \
 --volume $HOME/.sourcegraph/config:/etc/sourcegraph \
 --volume $HOME/.sourcegraph/data:/var/opt/sourcegraph \

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.

Monitor important code changes using saved searches

Create a dashboard of saved searches to monitor important code changes: edits to security-sensitive files, new usages of a risky API, references to a deprecated library, new JavaScript files, etc. Tech leads and engineering managers will find this feature especially valuable.



Search code from your editor, and get code intelligence while browsing code on the web.

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.

Icons 400
Sourcegraph Server

  • Single-server deployment (Docker image)

Icons 100
Sourcegraph Data Center

  • Cluster deployment (using Kubernetes)
  • Scales to thousands of repositories and users
  • High availability
  • Monitoring
Starts at $5/user/month