Sourcegraph.com

Sourcegraph.com lets you search 2 million open source repositories.

To use Sourcegraph on your own (private) code, use Sourcegraph Cloud or deploy self-hosted Sourcegraph.

Note: Sourcegraph.com is a special instance of Sourcegraph with some different behavior compared to that on Sourcegraph Cloud and self-hosted instances. If you're curious about the differences, search our codebase for envvar.SourcegraphDotComMode().

For example, global searches do not search unindexed code by default on sourcegraph.com, whereas on a cloud or self-hosted instance this isn't the case.

To learn more about where dotcom handles things differently checkout use of the SourcegraphDotcomMode env var in our codebase!