Developer toolsSourcegraph at a glance
Pros
- Fast, precise search and navigation across every repository and code host at once
- Batch Changes apply and track the same change across many repositories
- AI-powered Deep Search answers questions about the whole codebase
- MCP server, APIs and CLI give coding agents such as Claude Code and Cursor codebase context
- Single-tenant cloud or self-hosted deployment for strict security needs
Cons
- Enterprise-only: the minimum annual contract starts at $16,000
- No self-serve plan or published free trial details for small teams
- Cody Free and Pro were discontinued in 2025, and the Amp agent is now a separate company
- Setup and indexing at scale needs admin effort and an enterprise sales process
- The core code is no longer open source, which disappointed some developers
What Sourcegraph is
Sourcegraph is a code search and code intelligence platform founded in 2013 by Quinn Slack and Beyang Liu. It indexes code across all of an organisation's repositories and code hosts, so developers can search, jump to definitions, find references and understand how services connect, even when the code spans many languages and thousands of repositories.
The company has changed shape several times. It launched the AI assistant Cody in 2023, discontinued Cody's free, Pro and Enterprise Starter plans in July 2025, launched the Amp coding agent, and in December 2025 spun Amp off into a separate company. In 2026 Sourcegraph positions itself as codebase context for both engineers and AI agents, built around Code Search, Deep Search and its MCP server.
Who Sourcegraph is for
Sourcegraph is built for large engineering organisations: companies with hundreds of repositories, big monorepos, many languages or several code hosts. Typical uses on its site include code migrations and modernisation, security reviews, site reliability work and making AI agents more effective on large codebases.
It is not aimed at individual developers or small startups. With a $16,000 minimum contract and no self-serve tier, teams under roughly 25 developers will usually get better value from GitHub code search plus an AI coding tool.
Key features
Code Search is the foundation. It searches across every connected repository using literal, regular expression and structural queries, supports symbol search, and ranks results by relevance. Code navigation adds go-to-definition and find-references across repository boundaries, which helps when one service's API is used by many others.
Deep Search is the AI-powered layer. Instead of writing a query, you ask a question in natural language and an agent searches the codebase to answer it with references. It consumes AI credits from the organisation's pool.
Batch Changes let platform teams make the same change across many repositories at once, for example upgrading a library, fixing a vulnerable pattern or renaming an API, and then track the resulting pull requests through review and merge. Sourcegraph also markets agentic Batch Changes for larger, AI-assisted migrations.
Code Insights turn search queries into dashboards that track trends over time, such as how many services still use a deprecated function. Code Monitoring runs saved searches continuously and alerts you when new code matches, which is useful for catching leaked secrets or banned patterns.
For AI tooling, Sourcegraph offers a full MCP server, GraphQL and REST APIs and a CLI. The pricing page says it works with Claude Code, Cursor, Codex and Amp, so agents can pull precise cross-repository context instead of guessing from the files open in one editor.
Pricing explained
There is a single Enterprise plan starting at $16,000 a year, which includes the full platform, AI credits per user, single-tenant cloud or self-hosted deployment, enterprise admin and security, and 24x5 support. Premium support, a customer success manager and extra AI credit buckets are optional add-ons, and larger teams get volume pricing.
Anyone can search public open-source code on sourcegraph.com for free, which is a useful way to judge search quality before talking to sales. The pricing page includes a question about free trials, but trial terms are handled by sales rather than published.
Ease of use and setup
For developers, Sourcegraph is straightforward: a search box in the browser, familiar code navigation and links back to the code host. Learning the more advanced query syntax and structural search takes some practice, and the AI Deep Search lowers that barrier for people who prefer to ask questions.
For administrators, setup is more involved. You connect code hosts, configure authentication and permissions, and let the platform index repositories. A June 2026 review described onboarding for organisations new to Sourcegraph as a multi-week process, compared with minutes for self-serve AI coding tools. The single-tenant cloud option removes most of the infrastructure work.
Integrations
Sourcegraph covers all major code hosts, including GitHub, GitLab and Bitbucket, and historically integrated with tools such as Jira and Codecov. Its MCP server, GraphQL and REST APIs and CLI make it a context source for other tools and agents, including Claude Code, Cursor, Codex and Amp.
Because Cody is now a legacy product for existing enterprise customers, organisations looking for an in-IDE assistant should plan to pair Sourcegraph with another coding tool and feed it context through the MCP server.
Support and reliability
The Enterprise plan includes 24x5 support with upgrade options, and premium support and a customer success manager are optional. Sourcegraph publishes a security portal and a system status page. Third-party coverage notes SOC 2 and ISO 27001 compliance and data residency options, and the self-hosted option keeps code inside your own network.
Product direction is the main risk. In three years Sourcegraph launched Cody, retired its self-serve plans, launched Amp and then spun it off. It also moved its main repository from open source to a private enterprise licence, which drew criticism from parts of the developer community.
What users like and dislike
Reviews and coverage consistently praise Sourcegraph's cross-repository search and navigation, which few other tools match on very large codebases, along with fine-grained controls over which repositories AI features can see and strong compliance options for regulated industries.
Common criticisms are price and access. Independent reviewers note the $16,000 floor shuts out individuals and small teams, that there is no obvious self-serve evaluation path, that public learning material is thinner than for Cursor or Copilot, and that the agent experience has been less mature than dedicated AI coding tools. Independent user reviews on major review sites are sparse, so ask for references during evaluation.
Our verdict
For large engineering organisations, Sourcegraph remains one of the best ways to search, understand and change code across hundreds of repositories, and its MCP server makes it a strong context layer for whichever AI coding agents your team uses. Batch Changes and Code Insights add real value for platform and security teams running migrations.
For everyone else, it is overkill. If you have fewer than about 25 developers or one main repository, GitHub's built-in search and an AI coding assistant will cover most needs at a fraction of the cost.
Sourcegraph scores 7.8 out of 10 overall. Its strongest criterion is room to grow (9.5/10) and its weakest is value for money (6/10).
Sourcegraph pricing
| Plan | Price | What you get |
|---|---|---|
| Enterprise | From $16,000/yr | Minimum annual contract: code search and navigation, Deep Search, Batch Changes, insights, monitoring, MCP server, APIs and CLI, single-tenant cloud or self-hosted, 24x5 support, AI credits included |
| AI credit buckets | Custom quote | Extra pooled credits for AI features; purchased buckets roll over on renewal |
| Premium support and CSM | Custom quote | Optional premium support; customer success manager |
| Search public code | $0 | Search open-source code on sourcegraph.com without a contract |
Sourcegraph publishes one plan: Enterprise, starting at a minimum annual contract of $16,000. The price scales with team size, and volume pricing is available. Everything above the minimum is a custom quote from sales.
AI features use credits. The pricing page says credits are included per user, pooled across the organisation, do not expire monthly, and purchased credit buckets roll over on renewal. Heavy Deep Search or agent usage can require buying additional volume buckets.
Spread over a team, the $16,000 minimum works out to roughly $133 per developer per month for 10 developers, $27 for 50 and $13 for 100, according to a June 2026 review. That is why the platform is rarely worth it below about 25 to 50 developers.
Self-hosting is supported, which can suit regulated industries, but it adds infrastructure and maintenance costs on top of the licence. The single-tenant cloud option avoids that work.
There is no self-serve plan. Cody Free, Pro and Enterprise Starter were discontinued in July 2025, so small teams can no longer buy Sourcegraph AI on a monthly card.
Prices in US dollars, checked on Nov 21, 2026. Confirm on Sourcegraph's own site before you buy.

