Promptfoo: LLM Evaluation and Red Teaming for AI Applications

This repository profile is provided by osrepos.com, an open source repository discovery platform.

Promptfoo: LLM Evaluation and Red Teaming for AI Applications

Summary

Promptfoo is an open-source CLI and library designed for evaluating and red-teaming Large Language Model (LLM) applications. It enables developers to test prompts, agents, and RAGs, compare model performance, and secure AI apps through vulnerability scanning. With simple declarative configs and CI/CD integration, Promptfoo helps ship reliable and secure AI solutions.

Repository Information

Analyzed by OSRepos on March 24, 2026

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

Promptfoo is a powerful open-source CLI and library for evaluating and red-teaming Large Language Model (LLM) applications. It helps developers move beyond trial-and-error, enabling them to ship secure and reliable AI apps. Used by organizations like OpenAI and Anthropic, Promptfoo provides a robust framework for testing prompts, agents, and RAGs, as well as comparing the performance of various LLMs such as GPT, Claude, Gemini, and Llama.

Installation

Getting started with Promptfoo is straightforward. You can install it globally via npm, brew, or pip:

npm install -g promptfoo

Alternatively, you can use brew install promptfoo or pip install promptfoo. For quick execution without installation, npx promptfoo@latest is also available.

Most LLM providers require an API key. Set yours as an environment variable:

export OPENAI_API_KEY=sk-abc123

Examples

Once installed, you can initialize an example project and run your first evaluation:

promptfoo init --example getting-started
cd getting-started
promptfoo eval
promptfoo view

Promptfoo offers a comprehensive suite of features to streamline your LLM development workflow. You can test prompts and models with automated evaluations, secure your LLM apps with red teaming and vulnerability scanning, and compare models side-by-side across various providers. It also supports automating checks in CI/CD and reviewing pull requests for LLM-related security issues. The tool provides visual web viewers for evaluation matrices, command-line output, and detailed security vulnerability reports.

Why use Promptfoo?

Promptfoo stands out for several key reasons:

  • Developer-first: It's fast, with features like live reload and caching, designed for developer efficiency.
  • Private: LLM evaluations run 100% locally, ensuring your prompts never leave your machine.
  • Flexible: It works seamlessly with any LLM API or programming language.
  • Battle-tested: Promptfoo powers LLM applications serving over 10 million users in production.
  • Data-driven: Make informed decisions based on concrete metrics, not just intuition.
  • Open source: It's MIT licensed, backed by an active and supportive community.

Links

Explore Promptfoo further with these official resources:

Related repositories

Similar repositories that may be relevant next.

Maskit: Local Privacy Gateway for LLMs and AI Tools

Maskit: Local Privacy Gateway for LLMs and AI Tools

September 20, 2026

Maskit is a local privacy desensitization gateway engineered for large language models and AI tools. It automatically masks sensitive data in requests sent to AI services and then seamlessly restores it in streaming responses, ensuring private information remains local. This innovative solution supports various AI assistants like Cursor and Claude Code, along with any tool offering a configurable Base URL.

data-maskingprivacyllm
AgentsKit: The Complete JavaScript Toolkit for Building AI Agents

AgentsKit: The Complete JavaScript Toolkit for Building AI Agents

September 20, 2026

AgentsKit is a comprehensive JavaScript toolkit designed for building AI agents, offering a lightweight core and a modular ecosystem. It provides essential components like UIs, autonomous runtime, tools, memory, and RAG, enabling developers to create sophisticated agents from simple chat interfaces to complex autonomous systems. This framework aims to simplify agent development by offering composable parts and avoiding the need to glue multiple incompatible libraries together.

agent-frameworkai-agentstypescript
ctx-gate: LLM Context Gateway for Efficient Token Usage

ctx-gate: LLM Context Gateway for Efficient Token Usage

September 16, 2026

ctx-gate is an LLM-agnostic context optimization proxy that reduces token consumption in AI interactions. It intelligently prunes conversation history and tool outputs, ensuring critical facts are retained without altering your workflow. Compatible with Anthropic and OpenAI APIs, ctx-gate helps developers manage LLM costs and maintain prompt fidelity.

llmcontext-managementtoken-optimization
Qovira: A Private, Self-Hostable AI Personal Assistant in Go

Qovira: A Private, Self-Hostable AI Personal Assistant in Go

September 15, 2026

Qovira is an ambitious project aiming to deliver a private, self-hostable AI personal assistant. Built with Go and SvelteKit, it will organize reminders, notes, and schedules using AI, all on infrastructure you control. Currently in early development, Qovira promises a secure and private alternative to cloud-based AI tools.

ai-assistantgogolang

Source repository

Open the original repository on GitHub.

24 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️