Cody
Sourcegraph's AI coding assistant
About
Cody by Sourcegraph is an AI coding assistant that uniquely combines code generation with deep code search. Powered by Sourcegraph's industry-leading code search engine, Cody understands your entire codebase — not just the files you have open. It can answer architectural questions ("how does authentication flow through the system?"), find bugs across repositories, and explain complex code paths that span dozens of files. ⚠️ Pricing update July 2026: Sourcegraph retired the self-serve Cody Free and Pro tiers in 2025. Cody is now exclusively available through Sourcegraph Enterprise, starting at 6K/year with AI-feature credits and org-wide credit pooling. The agentic successor (Amp) was spun out as a separate company at ampcode.com. For individual developers, more accessible alternatives include Cursor (0/mo) or GitHub Copilot (usage-based). Cody provides code completion, AI chat with full codebase context, and enterprise-grade codebase-wide search. Enterprise features include admin controls, usage analytics, self-hosted deployment, cross-repo context, org-wide credit pooling, and audit logging. The integration with Sourcegraph's code search platform means Cody has access to search indexes that no other AI assistant can query. Cody is best for enterprise teams already using Sourcegraph for code search — the combination provides a level of codebase intelligence no standalone AI tool can match. For individual developers or small teams without Sourcegraph, Cursor or Copilot are more accessible options.
Key Features
- Code completion
- Chat
- Codebase-wide search
- Custom commands
- Enterprise admin
- Multi-IDE support
Deals, Discounts & How to Save
Maximize free tiers before subscribing—most AI editors have generous free plans. Students should always apply for education discounts (often 50%+ off). If you use multiple IDEs, choose an editor with a permissive free tier to avoid paying twice.
Pros
- Deep codebase understanding
- Powered by Sourcegraph search
- Good enterprise features
Cons
- Less polished UI
- Smaller community
- Enterprise focus may slow features
Pro Tips for Cody
Cody is now enterprise-only (6K+/yr). For individual use, consider Cursor (0/mo) or Copilot (usage-based) instead.
If your team already uses Sourcegraph for code search, Cody adds AI capabilities on top of your existing code graph investment.
Cross-repo context is Cody's killer feature — it can answer questions that span multiple repositories, something no other AI coding assistant can do.
The Agent-Computer Interface successor Amp (ampcode.com) handles autonomous agent workflows that Cody did not cover.
Sourcegraph Enterprise includes org-wide AI credit pooling, no monthly credit expiry, and renewal rollover — useful for large teams with variable usage patterns.
Alternatives to Cody
Cursor
FeaturedAI-first code editor built on VS Code
GitHub Copilot
FeaturedAI pair programmer in every IDE
Windsurf
FeaturedAgentic IDE with Cascade flow
Cline
Autonomous coding agent in VS Code
More in Ai Code Editor
Cursor
FeaturedAI-first code editor built on VS Code
GitHub Copilot
FeaturedAI pair programmer in every IDE
Windsurf
FeaturedAgentic IDE with Cascade flow
Zed
Ultra-fast collaborative code editor with AI