Search your code. All of it.

code search

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

Find and fix code in any code host, language, or repository

  • Be more efficient by reusing high-quality code. Find code across thousands of repositories and multiple code hosts in seconds.
  • Resolve issues and incidents faster by pinpointing root causes with symbol, commit, and diff searches.
  • Discover every instance of vulnerable or buggy code in milliseconds and have complete confidence in what's in your codebase.

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 at Criteo
Criteo logo

Read the case study

Understand your code and its dependencies

  • Onboard to codebases faster with cross-repository code navigation features like “Go to definition” and "Find references."
  • Complete code reviews, get up to speed on unfamiliar code, and determine the impact of code changes with the confidence of compiler-accurate code navigation.
  • Determine root causes quickly with precise code navigation that tracks dependencies and references across repositories.

Create evergreen documentation with Notebooks

  • Enable engineers to commit their first line of code faster through living documentation that references live code.
  • Resolve incidents quickly with web-based documentation that is collaborative and shareable.
  • Spend less time updating stale docs. Embed notebooks anywhere you can embed HTML, like your own internal docs tooling.

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

  • Chrome
  • Firefox
  • VS Code
  • JetBrains
  • Vim
  • Emacs
  • Atom
  • Sublime Text
  • Datadog
  • Lightstep
  • Sentry
  • Codecov
  • Jira
  • npm
  • SonarQube
See all integrations or build your own

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

Get started with Code Search

Connect your code hosts and experience universal code search.

Learn More

Guide

Key traits of a code intelligence platform

Sourcegraph is more than search. Engage and enable your teams by helping developers get unblocked, resolve issues faster, and gain codebase insights.

Key traits of a code intelligence platform
Blog post

How we used Notebooks to make our CI more accessible and understandable

Learn how Notebooks—Sourcegraph’s in-app living documentaiton—makes it easier to document complex codebases.

Sourcegraph Noebooks CI
Docs

Dive into documentation

Learn everything you need to know about Code Search.

Dive into documentation