Code Search

Search your code.

All of it.

Onboard to a new codebase, find answers faster, and identify security risks with universal code search.

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.

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 Tackles Big Code

Works with your code, infrastructure, and tools

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

  • GitHub
  • GitHub Enterprise
  • GitLab
  • Bitbucket Server
  • Bitbucket Cloud
  • Phabricator
  • AWS CodeCommit
  • Azure DevOps
  • Perforce
  • Mercurial
  • Subversion
  • CVS
  • TFS
  • Gitea
  • Gerrit
  • cgit
  • Ridiculously big monorepos
  • 2,000,000+ open source repositories
  • Any combo of these
  • 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
  • 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

  • Who? Self-hosted (you) Managed by us
  • Where? AWS Google Cloud Azure
  • Other infra
  • What? Docker container Kubernetes cluster
  • Custom cluster
  • 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 --rm
--volume ~/.sourcegraph/config:/etc/sourcegraph
--volume ~/.sourcegraph/data:/var/opt/sourcegraph

Deploy to a server or cluster

Want help?

Talk to an engineer