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