promptfoo
promptfoo/promptfoo · Updated
Test your prompts, agents, and RAGs. Red teaming/pentesting/vulnerability scanning for AI. Compare performance of GPT, Claude, Gemini, DeepSeek, and more. Simple declarative configs with command line and CI/CD integration. Used by OpenAI and Anthropic.
promptfoo/promptfoo is a TypeScript repository in the Prompts category with 26,583 stars and 2,607 forks on GitHub, released under the MIT license, last updated today.
How to install promptfoo in your AI client
Setup for Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline and VS Code — copy-paste ready.
How to install promptfoo in Claude CodeAnthropic's agentic CLI
Clone & open
bashgit clone https://github.com/promptfoo/promptfoo.git cd promptfoo claudeLet Claude read it
Ask “/init” to generate a CLAUDE.md, then have Claude explain, run, or extend the codebase. It reads files on demand.
How to install promptfoo in Claude DesktopDesktop app (MCP config)
Clone the repository
bashgit clone https://github.com/promptfoo/promptfoo.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
How to install promptfoo in CursorAI-first code editor
Clone & open in Cursor
bashgit clone https://github.com/promptfoo/promptfoo.gitIndex & chat
Open the folder — Cursor indexes it automatically. Use @Codebase in chat to ask about it or scaffold from it.
How to install promptfoo in Codex CLIOpenAI coding agent
Clone
bashgit clone https://github.com/promptfoo/promptfoo.gitPoint Codex at it
Run codex in the repo root; add setup notes to AGENTS.md so the agent knows how to build & test.
How to install promptfoo in WindsurfCodeium's agentic IDE
Clone & open
bashgit clone https://github.com/promptfoo/promptfoo.gitUse Cascade
Windsurf indexes the workspace; ask Cascade to explain or reuse modules from the repo.
How to install promptfoo in ClineVS Code autonomous agent
Clone the repository
bashgit clone https://github.com/promptfoo/promptfoo.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
How to install promptfoo in VS CodeCopilot / MCP support
Clone the repository
bashgit clone https://github.com/promptfoo/promptfoo.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
Documentation
Full READMEPromptfoo: LLM evals & red teaming
<code>promptfoo</code> is a CLI and library for evaluating and red-teaming LLM-based apps. Stop using trial-and-error... start shipping secure, reliable agents
Website · Getting Started · Red Teaming · Documentation · Discord
Promptfoo is now part of OpenAI. Promptfoo remains open source and MIT licensed. Read the company update.
Quick Start
npm install -g promptfoo
promptfoo init --example getting-startedAlso available via brew install promptfoo and pip install promptfoo. Or use npx promptfoo@latest to run any command without installing.
Most LLM providers require an API key. Set yours as an environment variable:
export OPENAI_API_KEY=sk-abc123Run an eval and view results:
cd getting-started
promptfoo eval
promptfoo viewSee [Getting Started](https://www.promptfoo.dev/docs/getting-started/) (evals) or [Red Teaming](https://www.promptfoo.dev/docs/red-team/) (vulnerability scanning) for more!
What can you do with Promptfoo?
- Test your prompts and models with automated evaluations
- Secure your LLM apps with red teaming and vulnerability scanning
- Compare models side-by-side (OpenAI, Anthropic, Azure, Bedrock, Ollama, and more)
- Automate checks in CI/CD
- Review pull requests for LLM-related security and compliance issues with code scanning
- Share results with your team
More Prompts repositories
- Prompts122k
generative-ai-for-beginners
21 Lessons, Get Started Building with Generative AI
Jupyter NotebookMITmicrosoft/generative-ai-for-beginners
- Prompts70k
system_prompts_leaks
Documented system prompts from Anthropic - Claude Fable 5.1, Opus 5.5, Claude Design, Claude Code. OpenAI - ChatGPT GPT-6-Astra, Codex. Google - Gemini 3.8 Flash, 3.1 Pro, Antigravity. xAI - Grok, Grok Bot, Cursor, Kimi and more! Updated regularly.
PythonCC0-1.0asgeirtj/system_prompts_leaks
- Prompts62k
humanizer
Agent skill that removes signs of AI-generated writing from text
PythonMITblader/humanizer
- Prompts54k
academic-research-skills
Academic Research Skills for Claude Code: research → write → review → revise → finalize
PythonImbad0202/academic-research-skills
- Prompts52k
CL4R1T4S
LEAKED SYSTEM PROMPTS FOR CHATGPT, CLAUDE, GEMINI, GROK, PERPLEXITY, CURSOR, LOVABLE, REPLIT, AND MORE! - AI SYSTEMS TRANSPARENCY FOR ALL! 👐
AGPL-3.0elder-plinius/CL4R1T4S
- Prompts41k
awesome-copilot
Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.
JavaScriptMITgithub/awesome-copilot
Catalog data refreshed . Something wrong? Report it.