AI testing & safety

PyRIT

A toolkit for testing AI chatbots and apps to find security and safety weaknesses before others do.

Your data
Your choice: device or online
Coding needed
With some setup
Checked by a person

What it does

PyRIT (Python Risk Identification Tool for generative AI) helps people "red team" AI systems. Red teaming means deliberately probing a system the way an attacker might, so its weak spots can be found and fixed. It runs automated scans and multi-turn attacks, which are back-and-forth conversations that adapt as they go. It also supports testing led by a person.

It comes in three parts. There is a command-line scanner for repeatable checks, a graphical interface called CoPyRIT that you use in your web browser, and a Python framework for building custom testing workflows. The README says it was built by the Microsoft AI Red Team together with open-source contributors.

It can connect to many AI services, including OpenAI, Anthropic, Google Gemini, AWS Bedrock, Hugging Face and Ollama. It can also test whole applications through web connections or browser automation. Available features depend on the AI model being tested.

Who it's for

Security and safety teams, researchers and developers who need to check that generative AI models or AI-powered apps behave safely.

Can I use it without coding?

With some setup. It offers a scanner and a browser-based interface, but you need to install and configure it, and deeper use requires Python programming. New to this? Start here.

Can I run it?

Privacy
Your choice: run it on your device or use an online service

Try it

  1. Visit the project's website for installation and setup guides.
  2. Set up access to the AI service or app you want to test using the provider configuration guide.
  3. Start with the scanner or the CoPyRIT browser interface to run a test and review the results.

Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?

Before you install

  • Only download from the official GitHub page. Copies with similar names exist for many popular projects.
  • Plain-AyI is an independent guide and doesn't host or review the software it lists. Please check each project's official page before installing.
  • License (MIT): Very permissive: free to use, change and share, including for business.
  • More on staying safe