This page may contain affiliate links. We may earn a commission if you purchase through our links, at no extra cost to you. Learn more.

Sourcegraph Cody

AI coding assistant with enterprise-grade codebase search and context

4.2/5(0 reviews)

What is Sourcegraph Cody?

Sourcegraph Cody is the AI coding assistant from Sourcegraph, the company best known for its enterprise code search and intelligence platform. Cody is built on top of Sourcegraph's deep code graph technology, which means it can understand and navigate codebases at a scale that few competitors match — including multi-repository setups common in large engineering organizations. When you ask Cody a question, it draws on Sourcegraph's precise code intelligence to give contextually grounded answers rather than best guesses.

Cody supports inline completions and a chat interface inside VS Code and JetBrains, and it can be configured to use multiple frontier models including Claude 3.5 Sonnet, GPT-4o, and Gemini. One of Cody's signature features is OpenCtx, a system for bringing external context into the AI conversation — meaning Cody can pull in documentation from Confluence, issues from Jira, and code from connected repositories when formulating its responses. This makes it particularly powerful for teams working in complex, interconnected codebases.

Cody Free gives individual developers access to completions and chat using Sourcegraph's hosted models at no cost. Cody Pro adds expanded rate limits and access to premium models. The enterprise tier integrates with Sourcegraph's broader code intelligence platform, adding features like security scanning, batch changes, and code monitoring — making it a genuine platform play rather than a standalone AI tool. For organizations already using Sourcegraph for code search, Cody is the natural AI extension.

Key Features

  • Multi-repository codebase context powered by Sourcegraph code graph
  • OpenCtx for pulling in Confluence docs, Jira issues, and external context
  • Inline completions in VS Code and JetBrains
  • Chat with support for Claude, GPT-4o, and Gemini
  • Command palette for common tasks like test and doc generation
  • Integration with Sourcegraph's code search and intelligence platform
  • Custom context configuration for enterprise deployments
  • Audit logging and usage analytics for enterprise admins
  • Smart Apply for applying chat suggestions directly to files
  • Prompt library for team-shared custom prompts

Pros & Cons

Pros

  • Unmatched codebase context for large multi-repo engineering organizations
  • OpenCtx brings external docs and issue trackers into the AI context
  • Choice of frontier models including Claude and GPT-4o
  • Deep integration with Sourcegraph code search and intelligence tools

Cons

  • More complex to set up than simpler alternatives like Copilot
  • Full value requires an existing Sourcegraph deployment for enterprise features
  • Less polished agentic capabilities compared to Cursor or Windsurf
  • Pricing becomes significant for large teams using enterprise features

Pricing

Model: Freemium

PlanPriceKey Limits
Free$0/moLimited completions and chat messages per month
Pro$9/moExpanded rate limits, access to premium models
EnterpriseCustomFull Sourcegraph platform, SSO, audit logs, self-hosted option
See Full Pricing

FAQ

What makes Sourcegraph Cody different from GitHub Copilot?
Cody's key differentiator is its codebase context engine. It uses Sourcegraph's code graph to understand relationships across large, multi-repository codebases in ways that Copilot's file-level context cannot match. For large engineering organizations, this results in significantly more relevant and grounded responses.
Which AI models does Cody use?
Cody supports Anthropic Claude 3.5 Sonnet, GPT-4o, Google Gemini, and Sourcegraph's own hosted models. Enterprise customers can configure which model is used and bring their own API keys.
Does Cody require a Sourcegraph subscription?
No. Cody Free and Cody Pro work as standalone VS Code or JetBrains extensions without a Sourcegraph subscription. The enterprise features that integrate with multi-repo code search require a Sourcegraph enterprise account.
Cody vs Tabnine for enterprise — which is better?
Tabnine is the stronger choice for teams prioritizing on-premises deployment and data privacy above all else. Cody is the stronger choice for teams that need deep multi-repository code understanding and are willing to use Sourcegraph's cloud infrastructure.
Does Sourcegraph Cody have an affiliate program?
Sourcegraph has a technology partner program for integrators and resellers, but does not operate a standard affiliate program with public commission rates.