Cody (Sourcegraph)
Cody is Sourcegraph’s AI coding assistant, built on their code intelligence platform.
Overview
Section titled “Overview”| Type | Extension |
| Open Source | Partially (client) |
| Best For | Large codebases, enterprise code search |
Key Features
Section titled “Key Features”- Code Graph — Deep understanding of code relationships
- Multi-Repo — Search across all your repositories
- Context Selection — Manual + automatic context
- Multiple Models — Claude, GPT, Gemini, local
- Self-Hosted — Sourcegraph Enterprise
Access Model
Section titled “Access Model”Cody follows Sourcegraph’s enterprise-heavy operating model. That makes it more compelling for organizations that already value code search, code intelligence, and multi-repository workflows than for casual individual use.
Privacy
Section titled “Privacy”| Setting | Value |
|---|---|
| Training | Never on your code |
| Self-Hosted | Full Sourcegraph Enterprise |
| BYOK | Supported (Pro+) |
| Jurisdiction | Your choice with self-hosted |
Models
Section titled “Models”Choose your model:
- Claude Sonnet 4.5 / Opus 4.5
- GPT-5.2
- Gemini 3 Pro
- Ollama (local models)
- Custom (Enterprise)
Installation
Section titled “Installation”VS Code:
Extensions → Search "Cody"Install → Sign in with SourcegraphJetBrains:
Settings → Plugins → Marketplace → CodyCode Graph Intelligence
Section titled “Code Graph Intelligence”Cody leverages Sourcegraph’s code intelligence:
You: "How is authentication handled?"
Cody (with Code Graph):1. Finds auth-related symbols across repos2. Traces function call paths3. Identifies configuration files4. Shows related tests
vs. Basic RAG:1. Keyword search for "auth"2. Returns potentially unrelated filesContext Control
Section titled “Context Control”Manually control what Cody sees:
@file:src/auth/login.ts@repo:backend-api@symbol:AuthService
How does login validation work?Multi-Repository Search
Section titled “Multi-Repository Search”For enterprise codebases:
You: "Find all usages of the PaymentService across our microservices"
Cody:→ Searches all connected repositories→ Shows usage patterns→ Identifies inconsistencies→ Suggests refactoringSelf-Hosted Setup
Section titled “Self-Hosted Setup”Sourcegraph Enterprise includes Cody:
# Docker deploymentdocker run -d \ --name sourcegraph \ -p 7080:7080 \ sourcegraph/server:latest- Best value when you already use Sourcegraph
- Code Graph makes context selection much smarter
- BYOK option for data-sensitive organizations
- Multi-repo search is unique advantage