AI Coding Tool

Cody

Sourcegraph's AI coding assistant with full-repo context and enterprise access controls

Last updated: April 15, 2026

Quick verdict

Cody is best for enterprise teams that need AI answers grounded in the full private codebase — it indexes every repo (not just open files) and uses Sourcegraph's code search engine for precise navigation. Pro is $9/mo, cheaper than Copilot or Cursor. Enterprise plans add SAML SSO, audit logs, and air-gapped deployment. The trade-off: setup is more involved (Sourcegraph account + IDE extension + optional self-hosted instance), and agentic capabilities lag Cursor Composer and Claude Code.

Model

Claude Sonnet 4 / GPT-4o / Gemini 2.0 Pro

From

$9/mo

Free tier

Yes

Setup

8 min

Best for

  • + Enterprise teams indexing large private monorepos
  • + Organizations needing SAML SSO, audit logs, and air-gapped deployment
  • + Developers who want AI answers grounded in the whole codebase
  • + Teams already using Sourcegraph for code search
  • + Security-sensitive shops that need on-prem or self-hosted AI
  • + Developers who want the cheapest paid tier at $9/mo

Not for

  • - Solo developers — Cody's value scales with team size and repo complexity
  • - Projects wanting deep agentic multi-file editing like Cursor Composer or Claude Code
  • - Developers who want a plug-and-play setup in under 3 minutes
  • - Heavy free-tier users — 20 chat messages per month disappears fast

Key features

Full-repo codebase indexing

Unique

Cody indexes your entire repository — including files not open in the editor — using Sourcegraph's code graph. Answers reference any function, type, or file in the repo, not just what is visible in your editor window.

Sourcegraph code search integration

Unique

Cody taps into Sourcegraph's precise code search (structural and regex-based) to find exact references and definitions across millions of lines. More precise than embedding-only search used by Cursor and Copilot.

Enterprise access controls

Unique

SAML/OIDC SSO, audit logs, role-based access control, and support for air-gapped self-hosted deployment. Required by regulated industries and large enterprises — not available in Cursor or Claude Code at comparable price points.

Context across multiple repositories

Unique

Cody Enterprise can answer questions using context from multiple indexed repos simultaneously — useful for microservice architectures where answers depend on API consumers and producers in different repos.

Multi-IDE support

Works in VS Code, all JetBrains IDEs (IntelliJ, PyCharm, GoLand, WebStorm, Rider), and the Sourcegraph web UI. Configuration syncs across IDEs via your Sourcegraph account.

Custom commands and context providers

Define project-specific commands (explain, doc, test, smell) in .cody/ files. Build custom context providers that inject external data — Jira tickets, Confluence docs — into Cody chat.

Limitations

Setup is more involved than competitors

You need a Sourcegraph account, the IDE extension, and optionally a self-hosted Sourcegraph instance for private repo indexing. Most other tools are running within 3 minutes; Cody typically takes 8-15 minutes for the first-time setup.

Free tier limits are restrictive

20 chat messages per month on the free plan is a demo budget, not a working one. Heavy users need Pro at $9/mo. 500 autocompletions/month is also tight for active development.

Agentic capabilities lag competitors

Cody's agentic multi-file editing is weaker than Cursor Composer, Windsurf Cascade, or Claude Code. Cody is strongest as a context-aware chat and completions tool, not as an autonomous agent.

Best value requires enterprise scale

Cody's defining feature — full-repo indexing across private codebases with enterprise access controls — shines on large monorepos and teams of 20+. Solo developers on small repos will see less differentiation versus Cursor or Copilot.

Tips

Index your repos before your first real chat

Cody is only as good as its index. For private repos, configure Sourcegraph to index your repositories before using Cody heavily — otherwise Cody falls back to open-file context only, losing its main advantage over Cursor and Copilot.

Use Cody chat with repo context for architecture questions

Ask Cody questions like 'who calls processPayment and how do they handle errors?' — with full-repo indexing Cody finds every caller across the codebase. This is where Cody beats Cursor and Copilot, which see only open files.

Pair Cody with Cursor or Claude Code for edits

Use Cody for context-grounded Q&A and code search. Use Cursor Composer or Claude Code for multi-file edits where agentic capability matters more than repo-wide context.

Define custom commands for repeated tasks

Put frequently-used prompt templates (explain this file, generate tests, write docs) in .cody/commands/. Your whole team picks them up via the repo, keeping prompts consistent without copy-paste.

Frequently asked questions

How much does Cody cost?

Cody has four tiers: Free (20 chat messages + 500 completions/month), Pro ($9/mo with unlimited chat and completions on standard models), Enterprise Starter ($19/mo with private repo indexing), and Enterprise ($59/mo with SSO, audit logs, air-gapped self-hosting, and multi-repo context). Enterprise Premium pricing is custom.

What makes Cody different from Copilot or Cursor?

Cody's differentiator is full-repo indexing via Sourcegraph's code graph — it answers questions using any file in your repo, not just open files. It also offers enterprise-grade access controls (SSO, audit logs, air-gapped deployment) at Enterprise tier. Trade-off: less capable agentic multi-file editing than Cursor Composer or Claude Code.

Which IDEs does Cody support?

Cody works in VS Code, all JetBrains IDEs (IntelliJ, PyCharm, WebStorm, GoLand, Rider, CLion, PhpStorm, RubyMine), and the Sourcegraph web UI. Configuration and context sync across IDEs via your Sourcegraph account.

Which AI models does Cody support?

Cody supports Claude Sonnet 4, Claude Opus 4, GPT-4o, Gemini 2.0 Pro, and Gemini 1.5 Pro as of April 2026. Enterprise customers can route through their own Anthropic, OpenAI, or Azure OpenAI keys for compliance and billing control.

Can Cody be self-hosted?

Yes. Cody Enterprise supports fully self-hosted Sourcegraph deployment, including air-gapped installations with no external network access. Used by regulated industries (finance, healthcare, government) that cannot send code to external services. Self-hosted requires Sourcegraph admins for installation and upkeep.

Does Cody support MCP or custom context providers?

Cody supports custom context providers configured in .cody/ files — inject Jira tickets, Confluence pages, or internal API docs into chat sessions. MCP server support is on the roadmap as of April 2026 but not yet at feature parity with Claude Code or Windsurf.

Compare with