Capability · Framework — agents
Cody (Sourcegraph)
Cody is Sourcegraph's AI coding assistant. It is differentiated by its use of Sourcegraph's code graph: instead of embedding snippets, Cody retrieves precise symbol-level context across your whole monorepo, then feeds it to the LLM. Features include autocomplete, chat with repo context, inline edits, code review, and an agentic mode that can work across files. Available on Claude, GPT-5, and self-hosted models.
Framework facts
- Category
- agents
- Language
- TypeScript
- License
- Apache-2.0 (client) / Proprietary (enterprise server)
- Repository
- https://github.com/sourcegraph/cody
Install
# VS Code Marketplace: search 'Sourcegraph Cody'
# CLI
npm install -g @sourcegraph/cody Quickstart
# After logging in with `cody auth login`
cody chat -m 'Explain why login.ts hangs when refreshToken is null' Alternatives
- GitHub Copilot — larger user base
- Cursor — AI-first editor
- Continue.dev — open-source
Frequently asked questions
Cody vs Copilot?
Cody's main edge is repo-scale context via the Sourcegraph code graph — it answers 'where is this called across the monorepo' better than Copilot. Copilot has broader IDE coverage and richer agentic features in 2026.
Can Cody run self-hosted?
Yes — Sourcegraph Enterprise can run in your VPC with self-hosted LLMs (Anthropic via AWS Bedrock, Azure OpenAI, or local models via vLLM).
Sources
- Cody docs — accessed 2026-04-20
- Cody GitHub — accessed 2026-04-20