Announcing Sourcegraph Server 2.4: free, powerful search for your private code

By Quinn Slack on January 9, 2018

Sourcegraph Server 2.4 is here. It is now free for unlimited users and repositories, can be installed in minutes with a single docker run command, and is easily configurable in the new web-based site admin. This release also includes many performance and bug fixes, plus a better interface for monitoring search results.

Sourcegraph Server gives the power of great code search to every developer at your company, so you can ship better code faster. It runs securely in your own network, takes 5 minutes to install, and is easy to upgrade.

Ready to install or upgrade? Install Sourcegraph Server 2.4. Existing Sourcegraph Data Center customers can upgrade now.

Key highlights of Sourcegraph Server 2.4:

Easier installation

We've made it easier than ever to start searching your code with Sourcegraph Server: see the one-command docker run quickstart command.

See the installation documentation for more information.

Free for unlimited repositories and users on a single server

Code search on Sourcegraph Server is now free on a single server for unlimited repositories and users. As you grow to hundreds or thousands of users and repositories, graduate from the single-server deployment to a highly scalable Kubernetes cluster with Sourcegraph Data Center.

See our pricing page for more information.

Easier configuration

The new site admin area makes it easier for administrators to configure and manage Sourcegraph Server. Site admins can click Admin in the upper right of any page to view the site admin area.


From here, click Configuration in the site admin menu to configure your Sourcegraph Server. The new in-app JSON site config editor makes it easy to add repositories from GitHub, GitHub Enterprise, and other sources, configure SSO, and change other settings.


See the configuration documentation for more information, and see the full configuration options.

Search interface improvements

We've introduced a cleaner, more intuitive search interface in Sourcegraph Server 2.4. Saved search scopes appear as buttons on the search homepage, replacing the old scope dropdown. The selected scope is reflected in the search bar as part of the search query.

Monitor saved query results

Saved queries are useful for keeping track of important code changes. Now, you can monitor changes in your saved queries on the homepage. Adding a saved query to the homepage shows the current number of results and a graph of the number of results over time. Whether it's lint violations, security vulnerabilities, or hacks, you can now easily monitor changes in your code from the homepage.


You can now search over commit diffs using the type:diff operator in search queries. This helps developers:

  • debug issues (“when was the parseDocument function last changed?”)
  • catch issues before they appear (“what open pull requests modify sensitive files?”)
  • find usage examples (“show me a self-contained commit adding a new page to our web app”)

See a sample diff search on a public repository on


But that's not all! For the intrepid, you can search within commit diffs on multiple branches by specifying them in a repo: field after the @ sign. See non-master-branch commits containing const in a public repository on, for example. After the @, separate Git refs with :, specify Git ref globs by prefixing them with *, and exclude commits reachable from a ref by prefixing it with ^. We'll improve documentation as this feature nears release.

See the documentation for more information.

Like diff search above, but use type:commit to search inside commit messages. See all commits mentioning “bug” or “fix” in a public repository on, for example.


See the documentation for more information.

New search filters: author, committer, before, after, and commit message

To go along with diff and commit search, we've added new search filters.

  • author:name or author:[email protected] to show only diffs or commits authored by that user (example)
  • committer:name or committer:[email protected] (same as above, but for the Git committer, which sometimes differs from the Git author)
  • after:"3 weeks ago", before:"june 25, 2017", before:"last thursday", etc., to filter by commit date (example)
  • message:"hello" to show only commits or diffs whose commit message (including the full message body) contains "hello" (example)

See the search documentation for all filters and query tokens

Upgrade today

Install Sourcegraph Server 2.4 to bring powerful code search to your developers.