# Sourcegraph

> Code search across millions of public repositories, with regex, language, repository and file filters.

Source: https://osinttools.io/tools/sourcegraph-code-search/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** Username, Email, Domain
- **Category:** Data analysis and case notes
- **Pricing:** Freemium (Public code search is free; paid plans for searching private code)
- **Footprint:** passive (does not contact the target)
- **Account required:** no
- **API:** no public API
- **Platforms:** Web
- **Website:** https://sourcegraph.com/search
- **Docs:** https://sourcegraph.com/docs
- **Listed:** Nov 26
- **Last verified by an editor:** Nov 26, 2026

## What it does

Sourcegraph is a code search and navigation platform. Its public instance at sourcegraph.com searches more than two million open-source repositories for free, with literal, regex and structural queries and filters for repository, file path, language and commit history. Companies run paid versions over their private code.

Investigators use it to find where an email address, domain, API key format, username or unusual string appears in public code, which can reveal a developer's other projects, an organisation's leaked configuration or the origin of a piece of malware or a scam kit.

Footprint is passive: it reads its own index or third-party records and does not contact the target. No account is needed. There is no public API.

## Features

- Search across 2M+ public repositories
- Regex and structural search
- Repository, file and language filters
- Commit and diff search
- Code navigation in the browser

## Pros

- Free public search with no account
- Powerful query language
- Deep links straight to search results

## Cons

- Covers indexed public repositories only, not all of GitHub
- Query syntax takes some learning

## When to use it

- Use it when you want to know where an email address, domain or unusual string appears in public code.
- Use it when you are tracing the source of a script, kit or configuration file.

## Quick start

1. Open Sourcegraph.
2. Paste the username and run the lookup.
3. Record the result with the date and the exact query; results change over time.

## Alternatives

- [Multi-Search Launcher](https://osinttools.io/tools/osint-vault-multi-search-launcher/): Browser page from The OSINT Vault that opens one username, email, domain, IP or phone query on many sites at once. (Free · Username, Email, Domain, IP address, Phone number · passive)
- [WebVetted](https://osinttools.io/tools/webvetted/): Identity investigation platform that turns a phone, email, username or domain into a report and visual identity graph. (Freemium · Phone number, Email, Username, Domain, Name · passive)
- [OSINT Agent Skills](https://osinttools.io/tools/osint-agent-skills/): OSINT methodology knowledge base for AI agents, packaged with an MCP server of about two dozen lookup tools. (Open source · Domain, IP address, Email, Username, Crypto wallet, Name · depends · 57 GitHub stars)
- [OpenGraph Intel](https://osinttools.io/tools/opengraph-intel/): Open-source, self-hostable link analysis platform: build entity graphs and run DNS, WHOIS, people and web transforms. (Open source · Domain, IP address, Email, Username, Name, URL · depends · 350 GitHub stars)
- [OpenOSINT](https://osinttools.io/tools/openosint/): Open-source OSINT agent with 21 public-source lookup tools, offered as a CLI, local web app and MCP server. (Open source · Domain, IP address, Email, Username, Phone number, Name · depends · 1,973 GitHub stars)
- [007-TheBond](https://osinttools.io/tools/007-thebond/): Python multi-tool bundling Instagram, phone number, username, IP and breach lookups in one interactive menu. (Open source · Username, Phone number, IP address, Email · depends · 1,587 GitHub stars)

All alternatives to Sourcegraph in one table: https://osinttools.io/tools/sourcegraph-code-search/alternatives/

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
