Code AI with codebase context
"an AI pair programmer that actually knows about your entire codebase's APIs, impls, and idioms"
⭐ Install Cody from the VS Code Marketplace or the JetBrains Marketplace, then check out the demos to see what you can do.
— or —
- Build and run the VS Code extension locally:
pnpm install && cd vscode && pnpm run dev
- See all supported editors
Cody is a free, open-source AI coding assistant that can write and fix code, provide AI-generated autocomplete, and answer your coding questions. Cody fetches relevant code context from across your entire codebase to write better code that uses more of your codebase's APIs, impls, and idioms, with less hallucination.
Cody is currently in Beta and available for VS Code and JetBrains.
See cody.dev for more info.
- Chat: Ask Cody questions about your entire codebase. Cody will use semantic search to retrieve files from your codebase and use context from those files to answer your questions.
- Autocomplete: Cody makes single-line and multi-line suggestions as you type, speeding up your coding and shortcutting the need for you to hunt down function and variable names as you type.
- Inline Chat: Ask Cody to fix or refactor code from anywhere in a file.
- Commands: Cody has quick commands for common actions. Simply highlight a code snippet and run a command, like “Document code,” “Explain code,” or “Generate Unit Tests.”
- Swappable LLMs: Support for Anthropic Claude, Claude 2, and OpenAI GPT-4/3.5, with more coming soon.
- Free LLM usage included (currently Anthropic Claude 2/OpenAI GPT-4) for individual devs on both personal and work code, subject to reasonable per-user rate limits (more info).
Autocomplete
Inline chat
Codebase-wide chat:
All code in this repository is open source (Apache 2).
Quickstart: pnpm install && pnpm build && cd vscode && pnpm run dev
to run a local build of the Cody VS Code extension.
See development docs for more.
Cody is often magical and sometimes frustratingly wrong. Cody's goal is to be powerful and accurate. You can help:
- Use the 👍/👎 buttons in the chat sidebar to give feedback.
- File an issue (or submit a PR!) when you see problems.
- Discussions
- Discord
Individual usage of Cody currently requires a (free) Sourcegraph.com account because we need to prevent abuse of the free Anthropic/OpenAI LLM usage. We're working on supporting more swappable LLM options (including using your own Anthropic/OpenAI account or a self-hosted LLM) to make it possible to use Cody without any required third-party dependencies.
You can use Cody Free or Cody Pro when Codying on your work code. If that doesn't meet your needs (because you need higher rate limits, a dedicated/single-tenant instance, scalable embeddings, audit logs, etc.), upgrade to Cody Enterprise.
The Cody editor extensions work with:
- Sourcegraph Cloud
- Sourcegraph Enterprise Server (self-hosted) instances on version 5.1 or later