Sourcegraph Cody
Cody is Sourcegraph's AI coding assistant, built on its code-search platform so it can answer questions with context from an entire codebase, suggest and complete code, and automate unit-test generation across multiple repositories, in VS Code, JetBrains, Neovim and the web. ⚠️ ENTERPRISE-ONLY since 23 July 2025: Sourcegraph discontinued Cody Free and Pro on that date, so individual developers can no longer buy or sign up for it — Cody now ships only inside Sourcegraph Enterprise. Its agentic successor, Amp, was spun out as a separate product at ampcode.com.
Enterprise-only since 23 Jul 2025 (Free/Pro discontinued); from $16K/year (third-party-reported — official docs page still shows the old tiers).
How to use Sourcegraph Cody
- Install Cody in your IDE — it connects with VS Code, JetBrains, Visual Studio and the Sourcegraph web interface — and connect your code hosts such as GitHub or GitLab.
- Open Cody chat and ask questions about your code, using @ to add context from specific files, symbols, remote repositories or other artifacts.
- Let Cody suggest code completions and edits as you type, and use its debugging help to identify and fix errors in your code.
- Save common queries as customisable prompts so your team can automate repeated tasks, and use context filters to exclude repositories you do not want included.
Frequently asked questions
Is Cody free?
Cody's own docs describe a Free plan for individuals alongside Pro and Enterprise plans. Check Sourcegraph's pricing page before signing up, as plan availability has changed over time.
What is Cody best for?
Understanding, writing and fixing code faster with full codebase context — asking questions about your code, generating and editing code, and debugging, with context pulled from local and remote codebases.
Which editors and code hosts does Cody work with?
It connects with code hosts including GitHub and GitLab, and IDEs including VS Code, JetBrains and Visual Studio.
Pros & cons
Pros
- It answers with context from your entire codebase, using Sourcegraph's advanced search to pull in APIs, symbols and usage patterns from local and remote code.
- It covers chat, code completions, code edits, customisable prompts and debugging in one assistant, rather than just autocomplete.
- It works inside the IDEs developers already use — VS Code, JetBrains and Visual Studio — and with GitHub and GitLab.
- Sourcegraph states it does not use your prompts and responses to train models.
Cons
- It only works inside supported IDEs and code hosts, so there is no standalone way to use it outside a development environment.
- The quality of its answers depends on the context it can pull from your codebase, so results vary with how much of your code is connected and indexed.
Related Coding & Development tools
- GitHub CopilotFreemium · ★4.7 · GitHub / Microsoft
- CursorFreemium · ★4.7 · Anysphere
- WindsurfFreemium · Cognition
- Replit AIFreemium · Replit
- Amazon Q DeveloperFreemium · Amazon
- DevinFreemium · Cognition
- AiderFree · Aider
- CodeGPTFreemium · CodeGPT