Ranked comparison · 2026-11-30

Which are the best open-source AI guardrails & agent security in Python?

As of 2026-11-30, the MeshKore directory lists 215 open-source AI guardrails & agent security written in Python that have a documented README, out of every project we index in security & ai safety.

Together they have 7,119 GitHub stars. The most starred are bernstein, safeagents and Agent-Wiz.

40% had activity in the last six months, 44% declare an open-source licence, and 13% mention the Model Context Protocol (MCP).

The top 15, by GitHub stars

#ProjectStarsLicenceMCPLast activity
1bernstein · sipyourdrink-ltd

Open-source AI agent governance. Write the rules declaratively, Bernstein enforces them and produces the verifiable, replayable record. Free, Apache-2.0. https://bernstein.run

1,230——2026-11-28
2safeagents · huggingface

Safely run your agents using any coding harness

431Apache-2.0—2026-11-27
3Agent-Wiz · Repello-AI

A CLI tool for threat modeling and visualizing AI agents built using popular frameworks like LangGraph, AutoGen, CrewAI, and more.

397——2025-11-02
4saf-mcp · secure-agentic-framework

SAF-MCP is a comprehensive security framework for documenting and mitigating threats in the AI Agent ecosystem.

369NOASSERTIONyes2026-09-03
5github-farm · d4ncboz

Production-grade, AI-Agent-friendly multi-platform OAuth harvesting and session management framework for AI Gateways.

357MIT—2026-08-20
6safe-mcp · safe-agentic-framework

SAFE-MCP is a comprehensive security framework for documenting and mitigating threats in the AI Agent ecosystem.

343NOASSERTIONyes2026-05-22
7ASB · agiresearch

Agent Security Bench (ASB)

324MIT—2026-09-30
8seclaw-eval · seclaw-eval

SeClaw provides a practical foundation for measuring, diagnosing, and comparing security failures in autonomous LLM agents.

248Apache-2.0—2026-07-13
9ToolEmu · ryoungj

[ICLR'24 Spotlight] A language model (LM)-based emulation framework for identifying the risks of LM agents with tool use

233——2024-03-22
10Fintech-CUI-Trust-Framework · madguyevans-creator

An open-source engineering governance standard defining trust boundaries for conversational AI agents in high-stakes domains. MIT Licensed.

177MIT—2026-09-09
11Fintech-CUI-Trust-Framework · evanslyhan

An open-source engineering governance standard defining trust boundaries for conversational AI agents in high-stakes domains. MIT Licensed.

176MIT—2026-11-23
12XSafeClaw · XSafeAI

Introducing XSafeClaw: The Open-Source Agent Safety Platform from Fudan University

168MIT—2026-07-10
13SecGPT · llm-platform-security

An Execution Isolation Architecture for LLM-Based Agentic Systems

129NOASSERTION—2025-01-31
14R-Judge · Lordog

R-Judge: Benchmarking Safety Risk Awareness for LLM Agents (EMNLP Findings 2024)

117——2026-01-11
15Misevolution · ShaoShuai0605

Official Repo of Your Agent May Misevolve: Emergent Risks in Self-evolving LLM Agents

103——2026-06-02

See all 215 in AI guardrails & agent security.

How this ranking works

We index public agent and AI projects from GitHub and package registries, classify each into a category, and summarise its README. This page keeps only AI guardrails & agent security whose main language is Python and whose README we could summarise, then orders them by GitHub stars. Stars measure popularity, not quality, so the table also shows the licence, whether the project mentions MCP, and the date of its last activity. Figures are recomputed daily; the date at the top is when this snapshot was taken.

Questions

What is the most popular open-source AI guardrails & agent security project in Python?

bernstein, with 1,230 GitHub stars as of 2026-11-30.

How many AI guardrails & agent security in Python does MeshKore list?

215 with a documented README, as of 2026-11-30. Projects without a README description are left out of this ranking.

Which of them have a permissive licence?

Among the top ranked: safeagents (Apache-2.0), saf-mcp (NOASSERTION), github-farm (MIT). Check the licence on each project page before using it commercially.

How is this list ranked?

By GitHub stars, among projects in this category and language that have a README we could summarise. Stars measure popularity, not quality: the table also shows the licence and the last activity date so you can weigh both.

Related comparisons