Security teamsMIT
PyRIT
Microsoft's open framework for red-teaming generative AI systems.
Free facts
- Free tier
- Free Python library (MIT)
- Card required
- No
- Your data
- Runs on your computer
- Setup
- Install & self-host
- The catch
- You configure your own AI endpoints and keys
Free facts checked Nov 14, 2026
Something changed or didn't work? Report it
Use it only where you are allowed to. Run security testing tools only against systems you own or have written permission to test. Testing other people’s systems without permission is illegal in most countries.
Paid parts and sources
- Paid service
- Optional: Ollama or HuggingFace (free), or your own OpenAI/Azure key
- Helps you
- Test generative AI systems for safety and security risks with a Python toolkit
Read from the official docs: github.com/microsoft/PyRIT#readme, microsoft.github.io/PyRIT/1.1.0/, github.com/microsoft/PyRIT/blob/main/LICENSE
Stuck installing PyRIT? Ask in Community Q&A, or share your free setup. Posts there are public, on GitHub.