PromptPex
PromptPex is a free, open-source tool for developers who keep AI prompts in their codebase and want to test model behavior.
What PromptPex is
PromptPex is a free, open-source tool for developers who keep AI prompts in their codebase and want to test model behavior. It treats prompts as functions, extracts output rules written in natural language, and generates unit tests for those requirements, such as expected JSON formatting. PromptPex evaluates prompt performance across models and uses an LLM to judge whether outputs satisfy stated conditions. Test generation can be configured with scenarios, test expansions, custom instructions, and effort levels. The CLI accepts Markdown or text templates, Prompty files, and GitHub Models prompt YAML files. Setup materials list OpenAI, Azure OpenAI, GitHub Models, and Ollama providers. The project runs as an npm command-line tool or in Docker, and documentation describes a local web interface. Integrations include OpenAI Evals, Azure OpenAI Stored Completions, GitHub Models Evals, and GitHub Actions. Microsoft is identified as the maker, and the project is intended for research.
Good
- Extracts natural-language output rules
- Generates prompt unit tests
- Supports multiple model providers
- Configurable test scenarios and expansions
- npm, Docker, and local web options
Watch out
- Vague prompts may produce suboptimal results
- Rule extraction varies in accuracy
- Research-focused project
- Further safety evaluation is advised
Who it suits
It suits developers maintaining prompts in source repositories who need generated tests and cross-model evaluation. It is intended for research rather than unreviewed downstream applications.
Verdict
PromptPex offers structured prompt testing by turning natural-language requirements into generated checks. Its provider integrations and configurable generation help developers investigate prompt behavior, while the stated research scope calls for additional review before application use.
The facts
Each one read from PromptPex's own pages, with the date it was checked.
What it does
- Automatic rule extraction
- PromptPex extracts output rules written in natural language in a prompt, such as a requirement to format output as JSON.checked 8 Oct 2026
- CLI and Docker
- PromptPex is packaged as an npm command-line tool and can also be run in Docker.checked 8 Oct 2026
- Configurable generation
- Test generation can be configured with scenarios, test expansions, and custom instructions.checked 8 Oct 2026
- Deployment
- The project README gives a Docker command for running PromptPex, and the setup guide describes a local web interface.checked 8 Oct 2026
- Feedback
- The transparency note invites feedback and collaboration by email and says the team will update the repository with mitigations for reported or identified issues.checked 8 Oct 2026
- Integrations
- PromptPex documents exports and integrations for OpenAI Evals, Azure OpenAI Stored Completions, GitHub Models Evals, and GitHub Actions.checked 8 Oct 2026
- Intended audience
- The project describes its intended users as developers who keep prompts in their codebase.checked 8 Oct 2026
- Intended use
- The released open-source library is intended for research, and the maker says it should not be used in downstream applications without additional evaluation of robustness, safety, harm, and bias.checked 8 Oct 2026
- Limitations
- The maker says vague prompts can produce suboptimal results and rule extraction can vary in accuracy, especially with complex or idiomatic language.checked 8 Oct 2026
- Model evaluation
- PromptPex can evaluate prompt performance across models, and uses an LLM to assess whether model outputs meet specified requirements.checked 8 Oct 2026
- Model providers
- The setup guide says users can configure OpenAI, Azure OpenAI, or Ollama credentials.checked 8 Oct 2026
- Prompt formats
- The CLI supports Markdown or text templates, Prompty files, and GitHub Models prompt YAML files.checked 8 Oct 2026
- Purpose
- PromptPex is a tool for developers to explore and test AI model prompts by treating prompts as functions and generating test inputs.checked 8 Oct 2026
- Rule extraction
- It can extract output rules written in natural language in a prompt.checked 8 Oct 2026
- Support
- The transparency note invites feedback and reports of unexpected or offensive behavior by email to listed project contacts.checked 8 Oct 2026
- Supported model providers
- The CLI setup lists OpenAI, Azure OpenAI, GitHub Models, and Ollama among supported LLM providers.checked 8 Oct 2026
- Test generation
- It generates unit test cases designed to check whether a prompt makes a model follow its output rules.checked 8 Oct 2026
- Test generation controls
- Generation can be configured with scenarios, test expansions, custom instructions, and effort levels.checked 8 Oct 2026
The company
- Maker
- The documentation footer identifies Microsoft as the maker of PromptPex.checked 8 Oct 2026
Alternatives to PromptPex
- 1
Vellum
Free planOpen sourceAndroidiOSWebAPI8.7From $30 a month - 2

Agenta
Free planOpen sourceWebAPISelf-hosted8.0From $29 a month - 3
Latitude
Free planOpen sourceWebAPILinuxSelf-hosted7.7From $99 a month - 4
VantagePrompt
Free planWeb7.3From $3 a month - 5

PromptLayer
Free planWebAPISelf-hosted7.0From $49 a month - 6
PromptWizard
Free planAPILinuxmacOSSelf-hosted6.8Free plan
