Cody is an AI coding assistant by Sourcegraph that uses full multi-repository codebase context via Sourcegraph's Search API. Supports VS Code, JetBrains, and Visual Studio with multiple AI models including Claude and GPT-4o.
Cody is an AI coding assistant developed by Sourcegraph. Unlike most AI coding tools that only see your open file, Cody leverages Sourcegraph's powerful code search engine to pull context from entire codebases — local and remote — delivering more accurate suggestions and answers. As a GitHub Copilot alternative, it is best suited for developers working in large, multi-repository enterprise codebases who need deep context-aware code intelligence.
| Feature | Cody | GitHub Copilot |
|---|---|---|
| Type | IDE Extension + Web UI | IDE Extension |
| IDEs Supported | VS Code, JetBrains, Visual Studio, Neovim | VS Code, JetBrains, Visual Studio, Neovim, and more |
| Pricing | Free tier available; Pro ~$9/mo; Enterprise pricing | Free tier; Pro $10/mo; Business $19/mo; Enterprise $39/mo |
| AI Models | Claude 3.5 Sonnet, GPT-4o, Gemini 1.5 Pro, and more | GPT-4o, Claude Sonnet 3.5, Gemini |
| Privacy / Hosting | Cloud (Sourcegraph.com) or self-hosted enterprise deployment | Cloud (GitHub/Azure) |
| Open Source | Cody client is open source (Apache 2.0) | No |
| Offline / Local Models | Not publicly documented for standard plans | No |
| Codebase Context | Full multi-repo context via Sourcegraph Search API | Limited to open files and workspace |
Cody is best for software engineers and development teams working in large, complex codebases across multiple repositories. It particularly shines in enterprise environments where codebase-wide context — understanding how APIs, symbols, and usage patterns connect across dozens or hundreds of repos — is critical for AI-assisted development to be genuinely useful. Teams that value model flexibility and want the ability to choose between multiple frontier LLMs will also find Cody compelling.
Cody offers a free tier for individual developers on Sourcegraph.com with limited context windows. Paid plans (Pro and Enterprise) unlock larger context, additional models, and enterprise features like SSO, audit logs, and self-hosted deployment. For the most current and accurate pricing details, visit sourcegraph.com/pricing. Pricing information may change — always refer to the official Sourcegraph website for up-to-date figures.
Cody is built on top of the Sourcegraph platform, which provides the underlying code intelligence through its Search API. The Cody client extensions are open source under the Apache 2.0 license and available on GitHub. Cody supports context retrieval from GitHub, GitLab, Bitbucket, and other codehosts connected to a Sourcegraph instance. The AI capabilities are powered by a selection of leading language models, with users able to select from Claude 3.5 Sonnet, GPT-4o, Gemini 1.5 Pro, and others depending on their plan. Cody's Auto-edit feature uses a lightweight predictive model to analyze edit patterns and propose next-step changes proactively.
Cody by Sourcegraph stands out among AI coding assistants for its deep, multi-repository codebase context powered by Sourcegraph's search engine. For teams working at scale in enterprise environments with large, interconnected codebases, Cody provides a level of contextual accuracy that single-file or single-workspace tools simply cannot match. Its support for multiple frontier AI models, customizable prompts, and Context Filters for compliance make it a compelling choice for engineering teams that need more than just autocomplete. While it may require more setup than simpler tools — particularly for full enterprise deployment — the payoff in code intelligence quality is significant for teams working on complex systems.
Yes, Cody offers a free tier for individual developers on Sourcegraph.com. The free tier includes access to chat, autocomplete, and limited context. Paid plans unlock additional models, larger context windows, and enterprise features. See sourcegraph.com/pricing for current details.
Cody currently supports VS Code, JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm, etc.), Visual Studio, and Neovim. Extensions are available in the respective marketplace for each IDE.
Yes — this is one of Cody's key differentiators. By leveraging Sourcegraph's Search API, Cody can pull context from both local and remote repositories connected to a Sourcegraph instance. This enables it to understand cross-repo dependencies, APIs, and usage patterns that single-workspace tools miss.
Cody supports multiple AI models including Claude 3.5 Sonnet (Anthropic), GPT-4o (OpenAI), and Gemini 1.5 Pro (Google). The available models depend on your plan. Users can select their preferred model for different tasks through the Cody interface.
The Cody client extensions (VS Code, JetBrains, etc.) are open source under the Apache 2.0 license and available on GitHub. The Sourcegraph backend platform has both open-source and proprietary components depending on the edition.
Yes. Enterprise customers can deploy Cody with a self-hosted Sourcegraph instance, keeping code and context on their own infrastructure. This is an important option for organizations with strict data residency, compliance, or security requirements.