Skip to content

Cody (Sourcegraph)

Cody is Sourcegraph’s AI coding assistant, built on their code intelligence platform.

TypeExtension
Open SourcePartially (client)
Best ForLarge codebases, enterprise code search
  • 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

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.

SettingValue
TrainingNever on your code
Self-HostedFull Sourcegraph Enterprise
BYOKSupported (Pro+)
JurisdictionYour choice with self-hosted

Choose your model:

  • Claude Sonnet 4.5 / Opus 4.5
  • GPT-5.2
  • Gemini 3 Pro
  • Ollama (local models)
  • Custom (Enterprise)

VS Code:

Extensions → Search "Cody"
Install → Sign in with Sourcegraph

JetBrains:

Settings → Plugins → Marketplace → Cody

Cody leverages Sourcegraph’s code intelligence:

You: "How is authentication handled?"
Cody (with Code Graph):
1. Finds auth-related symbols across repos
2. Traces function call paths
3. Identifies configuration files
4. Shows related tests
vs. Basic RAG:
1. Keyword search for "auth"
2. Returns potentially unrelated files

Manually control what Cody sees:

@file:src/auth/login.ts
@repo:backend-api
@symbol:AuthService
How does login validation work?

For enterprise codebases:

You: "Find all usages of the PaymentService across our microservices"
Cody:
→ Searches all connected repositories
→ Shows usage patterns
→ Identifies inconsistencies
→ Suggests refactoring

Sourcegraph Enterprise includes Cody:

Terminal window
# Docker deployment
docker 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