A search engine built for code

  • Universal. Point Sourcegraph at the repositories you work with, stored in any code host, or search across the open source universe.
  • Powerful. Get answers quickly with literal, structural, and regular expression search, along with smart filters and Code Intelligence.
  • Extensible. Connect all your other tools to get things like test coverage, 1-click open file in editor, custom highlighting, and information from your other favorite services all in one place with extensions.

Document and explore code with Notebooks

  • Create living documentation with Markdown and live code queries to get engineers up to speed on unfamiliar code faster.
  • Navigate through complex parts of your codebase or resolve incidents with collaborative and shareable notebooks.
  • Embed notebooks anywhere you can embed HTML, like your own internal documentation, so you can spend less time updating stale docs.

Move faster with Sourcegraph

Onboard 2.5x quicker

Search across every repository and code host to get to know the repository structure and learn from other developers' code.

Improve developer happiness and productivity

Get answers faster without waiting for context from teammates or dealing with stale local clones.

Mitigate security and compliance risks

Get alerts for vulnerabilities and then automate security fixes across your entire codebase.

At Criteo, developer happiness is our top priority-not just productivity. By providing them with the right tools, like Sourcegraph, we've found that increased productivity is a natural byproduct.
Francois Jehl, Senior Engineering Manager, Criteo
Criteo

Works with your code, infrastructure, and tools

All your repositories + 2M open source (and counting)

  • GitLab.com
  • GitLab Enterprise
  • GitHub.com
  • GitHub Enterprise
  • Bitbucket Server
  • Bitbucket Data Center
  • Bitbucket Cloud
  • Phabricator
  • Gitolite
  • Gerrit (coming soon)
  • Perforce
  • CVS
  • Any git-based code host
  • Have a repository not covered here?

All your languages

  • Java
  • Python
  • Go
  • JavaScript
  • TypeScript
  • C#
  • C
  • C++
  • Swift
  • Objective-C
  • Kotlin
  • Ruby
  • Scala
  • Rust
  • Perl
  • Dart
  • Erlang
  • COBOL
  • Clojure
  • Lisp
  • Shell
  • Terraform
  • Lua
  • GraphQL
  • Thrift
  • Protobuf
  • YAML
  • JSON
  • Jsonnet
  • R
  • PHP
  • Elixir
  • Haskell
  • PowerShell
  • OCaml
  • CUDA
  • Pascal
  • Verilog
  • VHDL
  • Groovy
  • Tcl
  • Need a different language?

All your tools

Deployment options

  • Self-hosted by you: Kubernetes cluster Amazon EKS or EC2 Google GKE Microsoft Azure AKS Docker Compose
  • Managed and hosted by us: Docker Compose in GCP
  • Learn about deploying Sourcegraph

How developers are using Sourcegraph

Sourcegraph returns results in milliseconds, even across thousands of repositories, to help developers find:

Self-hosted deployment

Install Sourcegraph locally

docker run --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm --volume ~/.sourcegraph/config:/etc/sourcegraph --volume ~/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:3.41.0Deploy to a server or cluster

Why choose self-hosted?

  • Free for up to 10 users
  • Your code never leaves your server
  • Connect to private code hosts (and local installs)
  • Access advanced functionality, like Code Insights and Batch Changes
Learn about self-hosted
Need help setting up Sourcegraph?
Talk to an engineer