Code search and intelligence

Understand, fix, and automate across your codebase with Sourcegraph.

Try Sourcegraph

You can quickly try Sourcegraph locally using Docker:

docker run --publish 7080:7080 --publish --rm --volume ~/.sourcegraph/config:/etc/sourcegraph --volume ~/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:3.42.2

For more information, see single-container Docker deployment documentation.

To use Sourcegraph on 2 million open-source repositories, visit

For production deployments: use Sourcegraph Cloud or deploy self-hosted Sourcegraph.