Developer Tools · head to head
Sourcegraph vs Trunk Code Quality

Sourcegraph
Developer Tools
Code search and intelligence platform for large codebases with Cody AI assistant
- From
- $16000/year
- Free plan
- No

Trunk Code Quality
Developer Tools
Metalinter that runs and manages linters, formatters and security scanners
- From
- Free
- Free plan
- Yes
The short version
- Sourcegraph is an enterprise code intelligence platform.
- Trunk Code Quality is free; Sourcegraph starts at $16000/yr.
- Where Sourcegraph falls short: enterprise pricing starting at $16k annually creates significant barrier for small teams.
- Where Trunk Code Quality falls short: private repositories with more than five active committers need a paid licence.
- Prices and features on this page were last checked on 20 November 2026.
How do Sourcegraph and Trunk Code Quality differ?
Sourcegraph and Trunk Code Quality differ on starting price ($16000/year against Free), pricing model (Subscription against Freemium) and free tier (No against Yes). Only the attributes on which Sourcegraph and Trunk Code Quality actually diverge.
| Attribute | Sourcegraph | Trunk Code Quality |
|---|---|---|
| Starting price | $16000/year | Free |
| Pricing model | Subscription | Freemium |
| Free tier | No | Yes |
| Platforms | Web, Self-hosted | macOS, Linux, Windows |
| Founded | 2013 | 2021 |
Identical on both: category (Developer Tools).
Which features does each one have?
They share no listed features; 8 only for Trunk Code Quality. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in Sourcegraph
Nothing recorded that Trunk Code Quality does not also cover.
Only in Trunk Code Quality
- Installs and runs over 100 linters and formatters
- Version pinning through trunk.yaml
- Hold the Line checks on new changes only
- Background daemon that precomputes results
- VS Code and Neovim editor integration
- GitHub integration for pull request checks
- Security scanning tools such as trivy and gitleaks
- Runs in any CI environment
What is each one used for?
Sourcegraph is most often brought in for large-scale code migrations across hundreds of repositories; Trunk Code Quality for running one lint command across a polyglot repository. The jobs each tool is most often brought in to do.
Sourcegraph
- Large-scale code migrations across hundreds of repositoriesnot Trunk Code Quality
- Enterprise governance and code ownership trackingnot Trunk Code Quality
- AI-assisted bug hunting and security pattern detectionnot Trunk Code Quality
- Onboarding engineers into large unfamiliar codebasesnot Trunk Code Quality
- Regulatory compliance and code audit trailsnot Trunk Code Quality
Trunk Code Quality
- Running one lint command across a polyglot repositorynot Sourcegraph
- Gradually fixing legacy code with Hold the Linenot Sourcegraph
- Pinning linter versions across a teamnot Sourcegraph
- Enforcing the same checks locally and in CInot Sourcegraph
- Adding security scanners to pull requestsnot Sourcegraph
Where do Sourcegraph and Trunk Code Quality fall short?
Sourcegraph's most cited limit: enterprise pricing starting at $16k annually creates significant barrier for small teams. Trunk Code Quality's: private repositories with more than five active committers need a paid licence. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
Sourcegraph
- Enterprise pricing starting at $16k annually creates significant barrier for small teams
- No free tier or standard plan published; all options require custom sales engagement
- Complex enterprise-only positioning limits adoption compared to GitHub Copilot's pervasiveness
- Requires indexing entire codebase; not suitable for small or ephemeral projects
Trunk Code Quality
- Private repositories with more than five active committers need a paid licence
- Paid Team and Enterprise prices are not published; quotes come from sales
- Core CLI is closed source, with only plugins and the GitHub Action under MIT
- Results depend on the underlying linters, so rule coverage is not Trunk's own
How much do Sourcegraph and Trunk Code Quality cost?
Sourcegraph starts at $16000/yr; Trunk Code Quality is free to use. Plan by plan below, from each vendor's own pricing page.
Sourcegraph
$16000/year- Enterprise$16,000/yr
- Scales with team size
- Credits for AI features per user
- Deep Search
Trunk Code Quality
Free- Free (up to 5 active committers on private repos)Free
- Team (per seat)On request
- Enterprise (annual site licence)On request
Which should you pick?
Choose Trunk Code Quality if
- You need installs and runs over 100 linters and formatters.
- You want to start without paying.
- You work on macOS, Linux, Windows.
- You also want version pinning through trunk.yaml.
Questions people ask
- Is Sourcegraph or Trunk Code Quality better?
- Neither clearly leads. Sourcegraph starts at $16000/year and Trunk Code Quality at Free, and user ratings are close enough to be indistinguishable. Choose on capability and platform support.
- Which is cheaper, Sourcegraph or Trunk Code Quality?
- Trunk Code Quality has a free tier; the other does not. Paid plans start at $16000/year for Sourcegraph and Free for Trunk Code Quality.
- Does Sourcegraph or Trunk Code Quality run on more platforms?
- Sourcegraph runs on Web, Self-hosted. Trunk Code Quality runs on macOS, Linux, Windows.
- Can I use Trunk Code Quality for free?
- Yes. Trunk Code Quality has a free tier, so you can try it without paying. Sourcegraph starts at $16000/year.
- What is Sourcegraph best used for?
- Sourcegraph is most often used for large-scale code migrations across hundreds of repositories, enterprise governance and code ownership tracking, ai-assisted bug hunting and security pattern detection, onboarding engineers into large unfamiliar codebases. Of those, large-scale code migrations across hundreds of repositories and enterprise governance and code ownership tracking are not what Trunk Code Quality is typically brought in for.
- What can Sourcegraph do that Trunk Code Quality cannot?
- Trunk Code Quality covers Installs and runs over 100 linters and formatters, Version pinning through trunk.yaml, Hold the Line checks on new changes only, Background daemon that precomputes results.
Answered from the vendors’ own pages
Sourcegraph: How much does Sourcegraph cost?
Sourcegraph's pricing page lists a single Enterprise plan starting at $16K, which it describes as a minimum annual contract. The price includes credits for AI features and scales with team size. Volume pricing is available through sales.
SourceTrunk Code Quality: What does Trunk Code Quality do?
It is a metalinter that installs, pins and runs third party linters, formatters and security scanners from one CLI. A background daemon precomputes results for editor annotations.
SourceSourcegraph: Does Sourcegraph have a free plan?
The pricing page lists only the Enterprise plan and a Contact sales button, with no free or self-serve tier shown. Its FAQ includes a question about a free trial, but the answer was not visible in the page text. Sourcegraph does offer a public code search across more than 1M public repositories.
SourceTrunk Code Quality: Is Trunk Code Quality free?
Public and open source repositories have no stated usage limit, and private repositories with five or fewer active committers can use the CLI at no cost. Larger private teams need a paid licence.
SourceSourcegraph: Can Sourcegraph be self-hosted?
Yes. The Enterprise plan includes single-tenant cloud, and the page also lists self-hosted as a deployment option. Enterprise admin and security controls are part of the plan.
SourceTrunk Code Quality: Which operating systems are supported?
The launcher supports macOS and Linux. Windows is supported from CLI version 1.13.0, using git-bash, msys2 or a PowerShell launcher.
SourceSourcegraph: How do Sourcegraph AI credits work?
Credits for AI features are included per user and can be pooled across the organisation. The pricing page states there is no monthly credit expiry, that purchased credit buckets roll over on renewal, and that larger volume credit buckets are an add-on.
SourceTrunk Code Quality: How many linters does it support?
The supported linters page claims over 100 linters and formatters. They cover many languages plus infrastructure, security, SQL and Markdown tooling.
SourceSourcegraph: Does Sourcegraph work with AI coding agents?
Sourcegraph offers a full MCP server, plus GraphQL and REST APIs and a CLI. The pricing page says it works with Claude Code, Cursor, Codex, Amp and more, giving agents context from the indexed codebase.
SourceRelated pages
More on Sourcegraph
More on Trunk Code Quality
Other head to heads
- Sourcegraph vs GitHub Copilot
- Sourcegraph vs Cody
- Sourcegraph vs Sweep
- Sourcegraph vs Bazel
- Sourcegraph vs Moonrepo
- Sourcegraph vs Nixpacks
- Sourcegraph vs Pieces for Developers
- Sourcegraph vs Claude Code
- Sourcegraph vs Harness
- Sourcegraph vs Bitbucket
- Sourcegraph vs Nx Cloud
- Sourcegraph vs Pants Build
- Sourcegraph vs Garden
- Sourcegraph vs Hookdeck
- Sourcegraph vs IAR Embedded Workbench
- Sourcegraph vs Istio
- Sourcegraph vs Keil MDK
- Sourcegraph vs Namespace
- Sourcegraph vs SonarQube
- Sourcegraph vs ESLint
- Sourcegraph vs Earthly
- Sourcegraph vs Prettier
- Sourcegraph vs HCP Terraform
- Sourcegraph vs Okteto
- Sourcegraph vs Visual Studio Code
- Sourcegraph vs Ona (formerly Gitpod)
- Sourcegraph vs Jenkins
- Sourcegraph vs Depot
- Sourcegraph vs Swagger UI
- Sourcegraph vs Yarn
- Sourcegraph vs Atlantis
- Sourcegraph vs AWS CDK
- Sourcegraph vs Backstage
- Sourcegraph vs Cloud Native Buildpacks
- Trunk Code Quality vs GitHub Copilot
- Trunk Code Quality vs Cody
- Trunk Code Quality vs Sweep
- Trunk Code Quality vs Bazel
- Trunk Code Quality vs Moonrepo
- Trunk Code Quality vs Nixpacks
- Trunk Code Quality vs Pieces for Developers
- Trunk Code Quality vs Claude Code
- Trunk Code Quality vs Harness
- Trunk Code Quality vs Bitbucket
- Trunk Code Quality vs Nx Cloud
- Trunk Code Quality vs Pants Build
- Trunk Code Quality vs Garden
- Trunk Code Quality vs Hookdeck
- Trunk Code Quality vs IAR Embedded Workbench
- Trunk Code Quality vs Istio
- Trunk Code Quality vs Keil MDK
- Trunk Code Quality vs Namespace
- Trunk Code Quality vs SonarQube
- Trunk Code Quality vs ESLint
- Trunk Code Quality vs Earthly
- Trunk Code Quality vs Prettier
- Trunk Code Quality vs HCP Terraform
- Trunk Code Quality vs Okteto
- Trunk Code Quality vs Visual Studio Code
- Trunk Code Quality vs Ona (formerly Gitpod)
- Trunk Code Quality vs Jenkins
- Trunk Code Quality vs Depot
- Trunk Code Quality vs Swagger UI
- Trunk Code Quality vs Yarn
- Trunk Code Quality vs Atlantis
- Trunk Code Quality vs AWS CDK
- Trunk Code Quality vs Backstage
- Trunk Code Quality vs Cloud Native Buildpacks
