Promptfoo

Unit tests for your prompts
LLM / RAG frameworkPrompt testingMITRuns locallyTypeScriptBeginner
OSAI Pulse ⓘ ★★★★★★★★★★ /100 signals tracked
🐳 Docker pulls 📦 PyPI downloads / month 📦 npm downloads / month 🚀 Latest release ·
Visit website →View on GitHub

What is Promptfoo?

Promptfoo runs your prompts against test cases across models, catching regressions before they reach production, and includes red-teaming checks.

Why people choose Promptfoo

Promptfoo at a glance

CategoryLLM / RAG framework
TypePrompt testing
LicenseMIT
Runs locallyYes
Built withTypeScript
Skill levelBeginner
Best forteams shipping prompts to production

Open-source alternatives to Promptfoo

Other open-source llm / rag framework tools worth comparing:

LangChainCompose chains, tools and agentsLlamaIndexThe data framework for RAGHaystackProduction pipelines for search and RAGDSPyProgram — not prompt — language modelstxtaiAll-in-one embeddings databaseRAGFlowDeep-document-understanding RAGSemantic KernelMicrosoft's enterprise agent frameworkGraphRAGRAG that builds a knowledge graph firstLiteLLMOne API for 100+ LLM providersInstructorReliable structured outputs from LLMsOutlinesGuarantee valid JSON and grammarsGuidanceInterleave control and generationLLMWareEnterprise RAG with small specialised modelsFlashRankUltra-light reranking for better RAGSentence TransformersThe standard way to make embeddingsRagasMeasure whether your RAG is any goodLangfuseSee what your LLM app actually didPhoenixTrace, evaluate and debug LLM apps

Promptfoo head-to-head

Promptfoo vs LangChainPromptfoo vs LlamaIndexPromptfoo vs HaystackPromptfoo vs DSPyPromptfoo vs txtaiPromptfoo vs RAGFlowPromptfoo vs Semantic KernelPromptfoo vs GraphRAGPromptfoo vs LiteLLMPromptfoo vs InstructorPromptfoo vs OutlinesPromptfoo vs GuidancePromptfoo vs LLMWarePromptfoo vs FlashRankPromptfoo vs Sentence TransformersPromptfoo vs RagasPromptfoo vs LangfusePromptfoo vs Phoenix

FAQ

Is Promptfoo free?

Promptfoo is free and open-source (MIT license), so you can use, self-host and modify it at no cost.

Can I run Promptfoo locally?

Yes. Promptfoo is designed to run on your own machine or server, keeping your data private.

What is the best alternative to Promptfoo?

Popular open-source alternatives include LangChain, LlamaIndex, Haystack. See the comparisons above to choose.

Explore more open-source AI

Browse the full directory of open-source AI tools, models and projects — updated daily.

Browse all tools →