Softwr

Developer Tools · head to head

Promptfoo vs Sourcegraph

Promptfoo logo

Promptfoo

Developer Tools

Open-source LLM evaluation and red-teaming tool run from the command line and CI

From
Free
Free plan
Yes
Sourcegraph logo

Sourcegraph

Developer Tools

Code search and intelligence platform for large codebases with Cody AI assistant

From
$16000/year
Free plan
No

The short version

  • Sourcegraph is an enterprise code intelligence platform.
  • Promptfoo is free; Sourcegraph starts at $16000/yr.
  • Where Promptfoo falls short: red teaming is capped at 10,000 probes a month on Community, which heavy testing can exceed.
  • Where Sourcegraph falls short: enterprise pricing starting at $16k annually creates significant barrier for small teams.

How do Promptfoo and Sourcegraph differ?

Promptfoo and Sourcegraph differ on starting price (Free against $16000/year), pricing model and free tier (Yes against No). Only the attributes on which Promptfoo and Sourcegraph actually diverge.

Attributes where Promptfoo and Sourcegraph differ
AttributePromptfooSourcegraph
Starting priceFree$16000/year
Pricing modelFree open-source Community edition; Enterprise by quoteSubscription
Free tierYesNo
PlatformsLinux, macOS, WindowsWeb, Self-hosted

Not yet recorded: category for Promptfoo, founded for Promptfoo.

Which features does each one have?

They share no listed features; 8 appear only for Promptfoo. 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 Promptfoo

  • LLM evaluation
  • Red teaming
  • CI/CD integration
  • Vulnerability scanning
  • Continuous monitoring
  • Remediation reports
  • SSO and permissions
  • On-premise deployment

Only in Sourcegraph

Nothing recorded that Promptfoo does not also cover.

What is each one used for?

Promptfoo is most often brought in for A developer regression-testing prompts in CI; Sourcegraph for large-scale code migrations across hundreds of repositories. The jobs each tool is most often brought in to do.

Promptfoo

  • A developer regression-testing prompts in CInot Sourcegraph
  • A security team probing a chatbot for prompt injectionnot Sourcegraph
  • Comparing several model providers on the same test setnot Sourcegraph
  • An organisation that needs on-premise AI security testingnot Sourcegraph

Sourcegraph

  • Large-scale code migrations across hundreds of repositoriesnot Promptfoo
  • Enterprise governance and code ownership trackingnot Promptfoo
  • AI-assisted bug hunting and security pattern detectionnot Promptfoo
  • Onboarding engineers into large unfamiliar codebasesnot Promptfoo
  • Regulatory compliance and code audit trailsnot Promptfoo

Where do Promptfoo and Sourcegraph fall short?

Promptfoo's most cited limit: red teaming is capped at 10,000 probes a month on Community, which heavy testing can exceed. Sourcegraph's: enterprise pricing starting at $16k annually creates significant barrier for small teams. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Promptfoo

  • Red teaming is capped at 10,000 probes a month on Community, which heavy testing can exceed
  • Enterprise pricing is not published, so scaling up needs a sales call
  • The About page says Promptfoo is now part of OpenAI, which some teams testing rival models may weigh
  • Centralised dashboards, SSO and remediation tracking are Enterprise only, so team workflows cost extra
  • Community support only on the free tier, with priority support and SLA guarantees in Enterprise

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

How much do Promptfoo and Sourcegraph cost?

Promptfoo is free to use; Sourcegraph starts at $16000/yr. Plan by plan below, from each vendor's own pricing page.

Promptfoo

Free
  • CommunityFree
    • Free forever, per the pricing page
    • All evaluation features and providers
    • Red teaming at 10k probes a month
  • EnterpriseOn request
    • Custom pricing
    • Team sharing, continuous monitoring, SSO, managed cloud deployment
  • On-PremiseOn request
    • Custom pricing
    • Deployment on your infrastructure with a dedicated runner

Sourcegraph

$16000/year
  • Enterprise$16,000/yr
    • Scales with team size
    • Credits for AI features per user
    • Deep Search

Which should you pick?

Choose Promptfoo if

  • You need llm evaluation.
  • You want to start without paying.
  • You work on Linux, macOS, Windows.
  • You also want red teaming.

Choose Sourcegraph if

  • You work on Web, Self-hosted.

Questions people ask

Is Promptfoo or Sourcegraph better?
It depends on the job. Promptfoo fits a developer regression-testing prompts in CI; Sourcegraph fits large-scale code migrations across hundreds of repositories. Promptfoo starts at Free and Sourcegraph at $16000/year.
Which is cheaper, Promptfoo or Sourcegraph?
Promptfoo has a free tier; the other does not. Paid plans start at Free for Promptfoo and $16000/year for Sourcegraph.
Does Promptfoo or Sourcegraph run on more platforms?
Promptfoo runs on Linux, macOS, Windows. Sourcegraph runs on Web, Self-hosted.
Can I use Promptfoo for free?
Yes. Promptfoo has a free tier, so you can try it without paying. Sourcegraph starts at $16000/year.
What is Promptfoo best used for?
Promptfoo is most often used for a developer regression-testing prompts in ci, a security team probing a chatbot for prompt injection, comparing several model providers on the same test set, an organisation that needs on-premise ai security testing. Of those, a developer regression-testing prompts in ci and a security team probing a chatbot for prompt injection are not what Sourcegraph is typically brought in for.
What can Promptfoo do that Sourcegraph cannot?
Promptfoo covers LLM evaluation, Red teaming, CI/CD integration, Vulnerability scanning.

Answered from the vendors’ own pages

Promptfoo: Is Promptfoo free?

The Community edition is free and open source, with red teaming limited to 10k probes a month.

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.

Source
Promptfoo: Who owns it?

The About page says Promptfoo is now part of OpenAI and remains open source.

Sourcegraph: 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.

Source
Promptfoo: Can I run it on my own servers?

Yes, Community runs locally or self-hosted, and On-Premise is the managed option.

Sourcegraph: 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.

Source
Sourcegraph: 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.

Source
Sourcegraph: 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.

Source
Share

Related pages

Other head to heads