Cody by Sourcegraph logo

Cody by Sourcegraph

Free tier

AI coding assistant powered by your entire codebase context

Free tier available·Technical·API available

Key strengths

Deep codebase context via Sourcegraph's Search API across local and remote reposSupports multiple latest LLMs for chat and completionsIntegrates with VS Code, JetBrains, Visual Studio, and the webCustomizable prompts and context filters for team workflowsAuto-edit suggestions based on cursor movement and recent changes
Free tier + paid plans
Self-hostable
No ratings yet

Technical Setup & API Usage

Installation

Install the Cody extension from your IDE's marketplace (VS Code, JetBrains, or Visual Studio). For CLI usage, install the Cody CLI to run Cody from your terminal.

Enterprise Configuration

For Sourcegraph Enterprise, connect Cody to your self-hosted Sourcegraph instance by setting the SOURCEGRAPH_URL and providing an access token. Context Filters can be configured at the admin level to restrict which repositories are included in chat and autocomplete results.

Context & Search API

Cody uses Sourcegraph's Search API to index and retrieve context from both local and remote codebases. It surfaces relevant API definitions, symbol usages, and code patterns across repositories to ground LLM responses in your actual codebase.

Key Parameters & Features

  • @-mentions in chat: Reference specific files, symbols, or remote repos to scope context precisely.
  • Auto-edit: Automatically suggests inline code changes based on cursor position and recent edits — no explicit prompt needed.
  • Prompts API: Build and share reusable prompt templates for common developer workflows within your team or organization.
  • Model selection: Cody supports multiple state-of-the-art LLMs; enterprise admins can configure which models are available to users.