LibreAI / AI Agents / RAMPART
// agents · microsoft/RAMPART

RAMPART

Safety testing for agents, right in pytest.

★ 419 stars⑂ 58 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

RAMPART is an open-source ai agents project by microsoft (microsoft/RAMPART on GitHub). It has 419 GitHub stars and 58 forks, is released under the MIT license, and was last updated on GitHub on 6 October 2026.

GitHub stars
419
Forks
58
License
MIT
Last updated on GitHub
6 October 2026
Category
AI Agents
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Pick a first task

    Choose one real workload to test the project against.

  2. Download the project

    Clone it locally and read through the getting-started guide.

  3. Wire up dependencies

    Install the stack it needs and set any environment variables.

  4. Run and verify

    Execute the starter example and check results before going further.

// features

Why people love it

pytest-native

Safety tests written as pytest tests.

Agentic focus

Built for AI agent applications.

Safety + security

Covers both dimensions of agent risk.

Microsoft-backed

From Microsoft's AI safety efforts.

CI-friendly

Fits existing Python test pipelines.

MIT licensed

Permissive licensing.

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/RAMPART.git
    cd RAMPART
  2. Step 2 — Install

    Set up a virtual environment and install the package.

    python -m venv .venv && source .venv/bin/activate
    pip install -e .
  3. Step 3 — Write a safety test

    Add your first test per the docs and run pytest.

    pytest
    # see docs for writing safety tests
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains RAMPART?

It is maintained by Microsoft at microsoft/RAMPART, with 58 forks.

Is RAMPART free to use?

Yes. It is released under the MIT license, which permits commercial use, modification, and redistribution. Read the LICENSE file for the exact terms.

Do I need a paid API to use it?

The framework is free; the tests themselves need model access.

How does it compare to garak or AgentDojo?

RAMPART is pytest-native CI testing; garak scans models and AgentDojo evaluates attacks — different angles on agent safety.

How do I get started?

Install the package and follow the docs to write your first safety test.

// keep exploring

Similar tools

AI Agents

cc-safety-net

Pre-execution guard that stops AI agents' destructive commands cold.

★ 1.6k starsMIT
View guide →
AI Agents

pest

The elegant testing framework for PHP developers and AI agents.

★ 11.7k starsMIT
View guide →
AI Agents

pentagi

Autonomous AI agents for penetration testing — self-hosted, multi-agent, with a full web UI

★ 25.3k starsMIT
View guide →
AI Agents

SWE-bench_Pro-os

A benchmark testing whether agents can solve long-horizon coding tasks.

★ 539 starsMIT
View guide →
AI Agents

kuberna-labs

Build, deploy, and monetize autonomous agents across Web3.

★ 51 starsMIT
View guide →
AI Agents

khoj

Your self-hostable AI second brain for answers, agents, and automations.

★ 37.6k starsAGPL-3.0
View guide →
// alternatives

Alternatives in AI Agents

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

Get RAMPART

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