Powerful, instant code search

Sourcegraph Server is a free, self-hosted code search server that integrates with your code host and supports multi-repository, regexp, and diff searches. 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 /tmp/sourcegraph/config:/etc/sourcegraph \
 --volume /tmp/sourcegraph/data:/var/opt/sourcegraph \
 sourcegraph/server:latest

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 queries

Create a dashboard of saved queries 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.

Integrations

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