GitHub Copilot vs Sourcegraph Cody: which coding assistant fits your codebase
GitHub Copilot and Sourcegraph Cody both answer questions about code, write and edit it in the IDE, and run on the latest frontier models. They're sold in completely different ways. GitHub's plans and docs, checked on 20 November 2026, list Copilot from $0, with Pro at $10 a month and Business at $19 per seat. Sourcegraph's pricing page, checked the same day, lists a single Enterprise plan starting at $16K on a minimum annual contract, and Cody is supported only on Sourcegraph Enterprise.
That split decides most of the comparison. Copilot is a per-seat assistant anyone can buy with a card. Cody is a feature of a code search platform, bought by a platform or developer-experience team that wants answers drawing on many repositories, self-hosting and control over which repositories reach an outside model. Cody Free and Cody Pro ended on July 23, 2025.
This page compares pricing, context, deployment, controls and setup using each vendor's own pages and docs. For the wider field, see our AI code assistant software category.
GitHub Copilot
Sourcegraph Cody
Verdict
Pick GitHub Copilot for almost any individual or team that wants a coding assistant without a platform purchase. Pro at $10 a month includes unlimited completions, the cloud agent, code review and 1,500 AI credits for chat and agents. Business at $19 per seat pools 1,900 credits per user and adds policies, content exclusion and audit logs. The trade-off is that its deepest features, the cloud agent and pull request review, assume your code is on GitHub, and it runs as a GitHub cloud service.
Pick Sourcegraph Cody if your company already runs Sourcegraph Enterprise, or will, and the problem is a large, multi-repository codebase that developers can't hold in their heads. Cody pulls context through keyword search, Sourcegraph search and the code graph, lets you @-mention remote repositories and search up to 10 at once, and can run self-hosted with your own model keys and Context Filters that keep chosen repositories away from the model. The cost is a $16K annual floor, no per-seat price and no self-serve way in.
If you're under a few dozen developers or don't need Sourcegraph's code search, Copilot is the realistic choice. If you have thousands of repositories, a self-hosting requirement and budget for a platform contract, Cody belongs on the shortlist.
- GitHub Copilot
- Choose GitHub Copilot when you want a self-serve assistant from $10 a month or $19 a seat, with completions outside the meter and a cloud agent that opens pull requests on GitHub.
- Sourcegraph Cody
- Choose Sourcegraph Cody when you need answers grounded in a large multi-repository index, self-hosting and repository-level context controls, and can sign a Sourcegraph Enterprise contract from $16K a year.
Choose GitHub Copilot when…
Developers and engineering teams of any size whose code is on GitHub and who want a per-seat assistant across the IDE, CLI and GitHub.com.
- Self-serve from $0, with a Free plan of 2,000 completions a month
- Completions use no credits on paid plans, so the seat price covers autocomplete
- Cloud agent turns a task into a pull request, and Copilot code review runs on pull requests
- Third-party agents, including Claude Code and Codex, on Pro and above
- Business budgets per user or cost center, with overage that can be capped at $0
- Chat and agent work is metered at $0.01 per credit, and premium models draw faster
- The cloud agent, code review and pull request summaries work on GitHub repositories
- Runs as a GitHub cloud service; no self-hosted option is listed on the plans page
- Enterprise at $39 per seat requires GitHub Enterprise Cloud
Choose Sourcegraph Cody when…
Platform and developer-experience teams at large companies that run Sourcegraph Enterprise and need an assistant grounded in many repositories, often with self-hosting and model-access rules.
- Context from Sourcegraph's search and code graph across local and remote repositories, with @-mentions for repositories, files, symbols and URLs
- Search up to 10 repositories at once in a single question
- Self-hosted or single-tenant cloud deployment, with bring-your-own-key model access on self-hosted
- Context Filters exclude chosen repositories from chat and autocomplete
- Clients for VS Code, JetBrains, Visual Studio (experimental), Cody Web and a CLI
- Enterprise-only: Cody Free and Pro ended on July 23, 2025, and new Enterprise Starter workspaces don't include Cody
- Sourcegraph Enterprise starts at $16K on a minimum annual contract, with no per-seat price published
- The pricing page doesn't name Cody among the plan's features, so confirm it's in your contract
- Most models get 7,000 to 15,000 tokens of conversation context by default, with an optional flag to raise input on some models
At a glance
GitHub Copilot is a per-seat assistant across the editor, the terminal and GitHub.com. Completions run inline, chat and agent mode run in supported IDEs and the Copilot CLI, and the cloud agent takes a task and returns a pull request. Individuals choose Free, Pro at $10, Pro+ at $39 or Max at $100 a month. Organizations choose Business at $19 or Enterprise at $39 per seat, each with pooled AI credits.
Sourcegraph Cody is the AI assistant on top of Sourcegraph's code search. You ask a question in VS Code, JetBrains, Visual Studio, Cody Web or the CLI, and Cody retrieves context from your Sourcegraph instance before sending the prompt to the model. Sourcegraph sells one Enterprise plan from $16K a year that scales with team size, includes AI credits per user pooled across the organization, and runs single-tenant in Sourcegraph's cloud or self-hosted.
GitHub Copilot
- Free $0, Pro $10, Pro+ $39, Max $100 per user a month
- Business $19 and Enterprise $39 per seat, per GitHub Docs
- AI credits at $0.01 each, 1,900 per user pooled on Business
- Unlimited completions on paid plans
- Cloud agent and code review on GitHub repositories
- Self-serve sign-up with a card
Sourcegraph Cody
- Sourcegraph Enterprise from $16K, minimum annual contract
- AI credits per user, pooled, no monthly expiry
- Context from Sourcegraph search and the code graph
- Self-hosted or single-tenant cloud
- Context Filters to keep repositories away from the model
- Cody Free and Pro ended July 23, 2025
Who each is built for
GitHub Copilot is built for the developer and the team lead who want to buy an assistant today. A freelancer can start on Free, a startup can put ten engineers on Business for $190 a month, and a larger company on GitHub Enterprise Cloud can move to Enterprise at $39 a seat. It fits best when issues, pull requests and review already happen on GitHub, because that's where the cloud agent and code review work.
Sourcegraph Cody is built for the organization whose codebase is the obstacle. If a developer's question needs code from dozens of services across thousands of repositories, Cody's retrieval from the Sourcegraph index is the reason to buy. The typical buyer also has a security team that wants self-hosting, its own model keys or rules about which repositories may reach an outside model, and a procurement process that's comfortable with a $16K-plus annual contract.
GitHub Copilot
Best for individuals and teams on GitHub who want a self-serve, per-seat assistant from $10 a month or $19 a seat.
Sourcegraph Cody
Best for large companies on Sourcegraph Enterprise that need multi-repository context, self-hosting and repository-level model controls, from $16K a year.
Comparison matrix
These rows cover what decides most purchases between a per-seat assistant and a platform-bundled one: how you buy, where context comes from, where it runs and what security can control. Figures are from GitHub's plans page and docs and Sourcegraph's pricing page, Cody page and docs, checked on 20 November 2026.
| Criterion | GitHub Copilot | Sourcegraph Cody |
|---|---|---|
| Pricing model | Per user per month with an AI credit allowance; overage at $0.01 per credit | Annual Enterprise contract that scales with team size, with pooled AI credits |
| Starting price | Pro $10 per user a month; Business $19 per seat | From $16K, minimum annual contract |
| Free plan or trial | Free: 2,000 completions a month, limited chat and agent use | None; Cody page says to contact sales to try it on Enterprise |
| Deployment | GitHub cloud service; IDE, CLI and GitHub.com | Self-hosted or single-tenant cloud |
| API | Not sold as a model API; used through the IDE, CLI and GitHub.com | Sourcegraph APIs and an MCP server on the Enterprise plan |
| Codebase context | Open files and the repository in the IDE; GitHub repositories for the cloud agent | Sourcegraph search and code graph; remote repositories, up to 10 at once |
| Model access controls | Admin policies for which features and models are allowed | Model choice, bring-your-own-key on self-hosted, Context Filters per repository |
| Agents | Agent mode, cloud agent that opens pull requests, third-party agents | Chat, edits and auto-edit in the IDE; Agentic Batch Changes is a separate Sourcegraph platform feature |
| Self-serve purchase | Yes, by card | No; sales only |
Pricing and packaging
GitHub Copilot's plans page, checked on 20 November 2026, lists Free at $0 with 2,000 completions a month and limited chat and agent use, Pro at $10 with $15 of AI credits, Pro+ at $39 with $70 and Max at $100 with $200. One credit is $0.01. GitHub Docs list Business at $19 per granted seat with 1,900 credits per user and Enterprise at $39 with 3,900, pooled across the organization. Completions use no credits on paid plans, and admins can set overage to $0.
Sourcegraph's pricing page, checked the same day, lists one plan: Enterprise, starting at $16K on a minimum annual contract that scales with team size. It includes credits for AI features per user with organization-wide pooling, no monthly credit expiry, and volume credit buckets as a paid add-on that roll over on renewal. The page also lists Deep Search, Code Search, Batch Changes, an MCP server, APIs and 24x5 support. It doesn't name Cody in the plan's features, though Sourcegraph's Cody page says Cody is supported on Enterprise.
The two prices aren't directly comparable, because Cody's comes bundled with the Sourcegraph platform. As a reference point only, $16K a year is what Copilot Business costs for about 70 seats at $19 a month. A company with 70 developers that doesn't need Sourcegraph's search would pay the same for Copilot Business alone. A company that would buy Sourcegraph anyway for code search and batch changes gets Cody inside that contract.
Before signing with Sourcegraph, get three things in writing: that Cody is included, how much AI credit Cody uses relative to Deep Search, and what happens when the organization runs out of credits. The pricing page lists those questions in its FAQ, but the answers weren't in the page text on 20 November 2026.
Setup and operations
Copilot setup for an individual is a GitHub sign-in and the Copilot extension for your editor, or the Copilot CLI. For a company, an organization owner enables Business, assigns seats and sets policies on features, models, content exclusion and paid overage. Added seats are prorated and removed seats stay billed until the cycle ends.
Cody setup starts with a Sourcegraph Enterprise instance, either single-tenant in Sourcegraph's cloud or self-hosted in your environment. Once the instance indexes your repositories, developers install the Cody extension for VS Code, JetBrains or Visual Studio, sign in to the instance and start asking questions. Admins choose models, can bring their own keys with managed model services on self-hosted deployments, and set Context Filters for repositories that must not reach a model.
Client coverage differs. Copilot's IDE support and CLI are its main product. Cody's docs mark Visual Studio as experimental, and JetBrains lacks symbol @-mentions and OpenCtx, so check the client your developers use. Prompts are disabled in chat when Context Filters exclude repositories.
Ask Sourcegraph about the roadmap. Its homepage, pricing page and changelog entries from August to November 2026 focus on Deep Search, Code Search and Agentic Batch Changes without naming Cody, though the Cody docs and model list are current. A team buying Sourcegraph mainly for Cody should get its roadmap and support terms in the contract.
Before you choose
Work through these questions with your platform, security and finance leads before you book a demo or assign seats.
- How many repositories and code hosts do developers need context from, and does a single-repository assistant answer most of their questions?
- Do you already pay for Sourcegraph, or would Cody be the only reason to buy the platform?
- Does security require self-hosting, your own model keys or rules that keep certain repositories away from any model?
- How many developers need access, and how does $16K a year compare with $19 per seat for that headcount?
- Which IDEs do your developers use, and is each one fully supported by the assistant you pick?
- Do you want an agent that opens pull requests on GitHub, or mainly chat and edits in the editor?
Frequently asked questions
Short answers to the questions buyers most often ask when comparing GitHub Copilot and Sourcegraph Cody.
How much do GitHub Copilot and Sourcegraph Cody cost?
GitHub Copilot is free for 2,000 completions a month, then $10 a month for Pro, with Business at $19 and Enterprise at $39 per seat, checked on 20 November 2026. Cody is supported only on Sourcegraph Enterprise, which starts at $16K on a minimum annual contract that scales with team size. There's no Cody-only or per-seat price.
Is Cody still available for individuals?
No. Sourcegraph closed Cody Free and Pro sign-ups on June 25, 2025 and ended both plans on July 23, 2025, and new Enterprise Starter workspaces no longer include Cody. Individuals and small teams should look at Copilot or another per-seat assistant.
Which handles large codebases better?
Cody's case rests on context: it retrieves code through Sourcegraph's search and code graph and can search up to 10 repositories at once, including remote ones. Copilot works from the open files and repository in the IDE and from GitHub repositories for its cloud agent. For thousands of repositories, Cody's retrieval is the reason to evaluate it.
Can either be self-hosted?
Sourcegraph Enterprise, and Cody with it, runs self-hosted or in a single-tenant cloud, and bring-your-own-key model access is available on self-hosted deployments. GitHub's Copilot plans page lists no self-hosted option; Copilot runs as a GitHub cloud service.
Is there a free trial of Cody?
There's no self-serve trial. Sourcegraph's Cody page asks you to contact sales to try Cody on Enterprise, and the pricing page lists a free trial question in its FAQ without a visible answer. Copilot has a permanent Free plan.
Can I keep some repositories away from the AI model?
Cody's Context Filters exclude chosen repositories from chat and autocomplete. Copilot Business and Enterprise offer content exclusion as an admin policy. Ask each vendor exactly what is excluded, since the scope of each control differs.
Which IDEs are supported?
Copilot runs in supported IDEs such as VS Code and in the Copilot CLI, plus GitHub.com. Cody supports VS Code, JetBrains, Visual Studio (experimental), Cody Web and a CLI, with some features missing on JetBrains.
GitHub Copilot and Sourcegraph Cody profiles
GitHub Copilot
Our GitHub Copilot review covers every plan, how AI credits and flex allotments work, budget controls for organizations and where GitHub's own pages disagree on plan details.
Sourcegraph Cody
Our Sourcegraph Cody review covers what the $16K Enterprise floor buys, how context and model choice work, the 2025 plan changes and the questions the current Sourcegraph site leaves open.
Sources
- GitHub Copilot plans
- GitHub Docs: Copilot plans (Business and Enterprise seat prices)
- GitHub Docs: billing for organizations and enterprises
- Sourcegraph pricing
- Sourcegraph Cody product page
- Sourcegraph blog: changes to Cody Free, Pro and Enterprise Starter plans
- Cody docs: context
- Cody docs: token limits
- Cody docs: Context Filters
- Sourcegraph changelog