Getting Started
This page will help you learn and understand about Sourcegraph and how to use it.
What is Sourcegraph?
Sourcegraph is a Code Intelligence platform that deeply understands your code, no matter how large or where it's hosted, to power modern developer experiences.
Who should use Sourcegraph?
In addition to the companies listed on about.sourcegraph.com, companies with a few hundred developers up to those with more than 40,000 use Sourcegraph daily.
More specifically, Sourcegraph is great for all developers except:
- those on smaller teams with a small amount of code
- those who rarely search, read, or review code
Why do I need Code Search?
Facebook and Google provide their employees with an in-house Sourcegraph-like code search and intelligence tool. A published research paper from Google and a Google developer survey showed that 98% of developers surveyed consider their Sourcegraph-like internal tool to be critical. Developers use it on average for 5.3 sessions each day. (Facebook's and Google's in-house tools are unavailable to other companies; use Sourcegraph instead.)
What do I use Sourcegraph for?
Sourcegraph helps you:
- Find example code
- Explore/read code (including during a code review)
- Debug issues
- Locate a specific piece of code
- Determine the impact of changes
- And more!
Sourcegraph makes it easier for you and everyone else in your organization to perform these tasks.
What does Sourcegraph do?
Sourcegraph's main features are:
- Deep Search: Agentic, deep understanding of even the largest code bases.
- Code Search: fast, up-to-date, and scalable, with regexp support on any branch or commit without an indexing delay (and diff search)
- Code navigation: jump-to-definition, find references, and other smart, IDE-like code browsing features on any branch, commit, or PR/code review
- Cody: read and write code with the help of a context-aware AI code assistant
- Code Insights: reveal high-level information about your codebase at its current state and over time to track migrations, version usage, vulnerability remediation, ownership, and anything else you can search in Sourcegraph
- Batch Changes: make large-scale code changes across many repositories and code hosts
- Integrations with code hosts, code review tools, editors, web browsers, etc.
How do I start using Sourcegraph?
- Deploy and Configure Sourcegraph inside your organization on your internal code if nobody else has yet
- Install and configure the web browser code host integrations (recommended)
- Start searching and browsing code on Sourcegraph by visiting the URL of your organization's internal Sourcegraph instance
- Personalize Sourcegraph with themes, quick links, and badges!
You can also try Sourcegraph.com, a public Sourcegraph instance for use on open-source code only.
How is Sourcegraph licensed?
Sourcegraph Enterprise is Sourcegraph's primary offering and includes all code intelligence platform features. Sourcegraph Enterprise is the best solution for enterprises who want to use Sourcegraph with their organization's code.
How is Sourcegraph different from the GitHub code search?
Code Search
Sourcegraph code search is fast, works across all your repositories at any commit, and has minimal indexing delay. Code search also includes advanced features, including: