Cody by Sourcegraph
Free tierAI coding assistant powered by your entire codebase context
Key strengths
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.
