LibreAI / AI Agents / PyRIT
// agents · microsoft/PyRIT

PyRIT

Microsoft's open framework for red-teaming generative AI systems.

★ 4.6k stars⑂ 936 forksMITupdated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

PyRIT is an open-source ai agents project by microsoft (microsoft/PyRIT on GitHub). It has 4,592 GitHub stars and 936 forks, is released under the MIT license, and was last updated on GitHub on 8 October 2026.

Repository
microsoft/PyRIT
GitHub stars
4,592
Forks
936
License
MIT
Last updated on GitHub
8 October 2026
Category
AI Agents
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Pick a use case

    Start with one concrete task rather than a grand architecture.

  2. Fetch the source

    Clone the repo and check the examples folder for a quickstart.

  3. Configure it

    Install packages, set environment variables, and point it at your model.

  4. Run and iterate

    Execute the demo workflow, then adapt it to your own data.

// features

Why people love it

Adversarial automation

Systematic attack generation.

Risk identification

Find issues before deployment.

Microsoft-backed

Built by Microsoft's AI red team.

Extensible

Add your own attack strategies.

Responsible AI

Aligned with RAI practices.

MIT licensed

Free for commercial security work.

Advertisement
// run it

Run it yourself

  1. Step 1 - Clone the repo

    Download the source and move into the project folder.

    git clone https://github.com/microsoft/PyRIT.git
    cd PyRIT
  2. Step 2 - Install dependencies

    Create a virtual environment and install the requirements.

    python -m venv .venv && source .venv/bin/activate
    pip install -r requirements.txt
  3. Step 3 - Run an example

    Treat these as starting points - the README documents the exact commands.

    python examples/quickstart.py
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains this project?

microsoft/PyRIT is its home on GitHub, with 936 forks so far. The contributors tab and recent commits show how actively it is maintained.

Is PyRIT free to use?

Yes - it is MIT licensed, so you can use, modify, and distribute it freely, including in commercial projects.

Do I need a paid API to use it?

The toolkit is free; only the models it guards might come from a paid provider.

PyRIT vs Guardrails?

PyRIT finds vulnerabilities; Guardrails enforces runtime protections. Use PyRIT during security review and Guardrails in production - they complement each other.

How do I get started?

Follow the README quickstart, then browse the examples directory for patterns that match what you want to build.

// keep exploring

Similar tools

Agents

deepteam

Open-source red-teaming framework that stress-tests LLMs and AI agents.

★ 3.0k starsApache-2.0
View guide →
Agents

KaibanJS

JavaScript framework for multi-agent systems with a Kanban-inspired design.

★ 1.5k starsMIT
View guide →
AI Agents

agent-lightning

Microsoft's trainer for AI agents - reinforcement learning for almost any agent framework

★ 18.6k starsMIT
View guide →
AI Agents

promptfoo

Test prompts, agents and RAGs — LLM evals, red teaming and model comparisons from the CLI

★ 25.8k starsMIT
View guide →
Agents

trpc-agent-go

Go framework for production agent systems: graphs, tools, memory, A2A, MCP.

★ 1.8k starsApache-2.0
View guide →
AI Agents

playwright-mcp

Microsoft's Playwright-powered MCP server for browser automation.

★ 37.9k starsApache-2.0
View guide →
// alternatives

Alternatives in AI Agents

The most-starred other AI Agents projects in the LibreAI catalogue — the realistic shortlist if PyRIT is not the right fit.

Get PyRIT

Free and open — grab the source, star the repo, and start creating.