Quick Start
Set up your Sourcegraph instance and run your first code search in minutes.
Cody AI Assistant
Write, fix, and understand code faster with AI-powered chat and autocomplete.
Code Search
Search all your repositories across every branch and code host instantly.
Deep Search
Ask natural language questions and get AI-powered answers about your codebase.
Core features
Batch Changes
Automate large-scale code changes and migrations across all your repositories at once.
Code Navigation
Jump to definitions, find references, and explore code history across any branch or commit.
Code Insights
Track migrations, dependency versions, and vulnerability remediation across your codebase over time.
API & Integrations
Connect Sourcegraph to your tools with the GraphQL API, streaming search, and MCP server.
Get started
Get access to Sourcegraph
Sign up for a Sourcegraph Cloud instance or deploy Sourcegraph self-hosted in your own infrastructure.
Connect your code hosts
Link your GitHub, GitLab, Bitbucket, or other code hosts so Sourcegraph can index your repositories. See cloud instance setup for details.
Search your code
Run your first search query using Code Search. Use regex, boolean filters, and structural search to find exactly what you need.
Try Cody AI
Install Cody for VS Code or JetBrains and start getting AI assistance directly in your editor.
Deployment options
Sourcegraph Cloud
A fully managed, single-tenant instance hosted by Sourcegraph. Get started in minutes with a 30-day free trial.
Self-Hosted
Deploy Sourcegraph in your own infrastructure for complete control over your data and configuration.