sourcegraph / cody

AI that knows your entire codebase
https://cody.dev
Apache License 2.0
2.22k stars 213 forks source link
ai intellij-plugin vscode-extension
# Cody **Code AI with codebase context** Cody is an AI coding assistant that uses search and codebase context to help you understand, write, and fix code faster. [Docs](https://sourcegraph.com/docs/cody) • [cody.dev](https://about.sourcegraph.com/cody?utm_source=github.com&utm_medium=referral) [![vscode extension](https://img.shields.io/vscode-marketplace/v/sourcegraph.cody-ai.svg?label=vscode%20ext)](https://marketplace.visualstudio.com/items?itemName=sourcegraph.cody-ai) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![test](https://github.com/sourcegraph/cody/actions/workflows/ci.yml/badge.svg)](https://github.com/sourcegraph/cody/actions/workflows/ci.yml) [![Twitter](https://img.shields.io/twitter/follow/sourcegraph.svg?label=Follow%20%40sourcegraph&style=social)](https://twitter.com/sourcegraph) [![Discord](https://dcbadge.vercel.app/api/server/s2qDtYGnAE?style=flat)](https://discord.gg/s2qDtYGnAE)

Get started

Install Cody from the VS Code Marketplace or the JetBrains Marketplace, then check out the demos to see what you can do.

— or —

What is Cody?

Cody is an open-source AI coding assistant that helps you understand, write, and fix code faster. It uses advanced search to pull context from both local and remote codebases so that you can use context about APIs, symbols, and usage patterns from across your codebase at any scale, all from within your IDE. You can also choose from the latest large language models—like GPT-4o and Claude 3 Opus—to customize Cody to your needs.

Cody is available for VS Code, JetBrains, and on the web.

See cody.dev for more info.

What can Cody do?

Demos

Autocomplete

Codebase-wide chat:

Contributing

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.

Feedback

Cody is often magical and sometimes frustratingly wrong. Cody's goal is to be powerful and accurate. You can help:

Usage

Individual usage

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.

Codying at work

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, audit logs, etc.), upgrade to Cody Enterprise.

Existing Sourcegraph customers

The Cody editor extensions work with: