Open-source AI repos
Open-source AI, all in one place.
13,356 open-source AI repositories for learning, teaching, research and building. Kept up to date by the community: anyone can add a repo with a pull request.
77 repos in AI safety & security matching “py”
Red-teaming, guardrails, privacy and security tools for AI systems.
AI safety & security
Stars:10.1kPySyft
Perform data science on data that remains in someone else's server
Python · Apache-2.0 · updated 10 days agoDetails›AI safety & security
Stars:5kPyRIT
The Python Risk Identification Tool for generative AI (PyRIT) is an open source framework built to empower security professionals and engineers to proactively identify risks in generative AI systems.
Python · MIT · updated 10 days agoDetails›AI safety & security
Stars:2.2kadversarial-attacks-pytorch
PyTorch implementation of adversarial attacks [torchattacks]
Python · MIT · updated 2 years agoDetails›AI safety & security
Stars:76.9kstrix
Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.
Python · Apache-2.0 · updated 11 days agoDetails›AI safety & security
Stars:46.6kiFixAi
Independent Auditing of AI Agents. Run by human or the agent itself, to answer the most crucial question in the AI Agent Economy. Is the agent doing what is supposed to do? With iFixAi you can have this answer in less than 120 seconds.
Python · Apache-2.0 · updated 10 days agoDetails›AI safety & security
Stars:30.3kh4cker
This repository is maintained by Omar Santos (@santosomar) and includes thousands of resources related to ethical hacking, bug bounties, digital forensics and incident response (DFIR), AI security, vulnerability research, exploit development, reverse engineering, and more.…
Jupyter Notebook · MIT · updated 14 days agoDetails›AI safety & security
Stars:17.7kleon
Leon is your open-source personal assistant.
TypeScript · MIT · updated 10 days agoDetails›AI safety & security
Stars:15.3kvosk-api
Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Jupyter Notebook · Apache-2.0 · updated 1 month agoDetails›AI safety & security
Stars:13.8kLEANN
[MLsys2026 Best Paper]: https://arxiv.org/abs/2506.08276. RAG on Everything with LEANN. Enjoy 97% storage savings while running a fast, accurate, and 100% private RAG application on your personal device.
Python · MIT · updated 10 days agoDetails›AI safety & security
Stars:12kpresidio
An open-source framework for detecting, redacting, masking, and anonymizing sensitive data (PII) across text, images, and structured data. Supports NLP, pattern matching, and customizable pipelines.
Python · MIT · updated 11 days agoDetails›AI safety & security
Stars:10.1kgarak
the LLM vulnerability scanner
Python · Apache-2.0 · updated 12 days agoDetails›AI safety & security
Stars:7.6kAI-Infra-Guard
A full-stack AI Red Teaming platform securing AI ecosystems via Agent Scan, Skills Scan, MCP scan, AI Infra scan and LLM jailbreak evaluation.
Python · Apache-2.0 · updated 11 days agoDetails›AI safety & security
Stars:7.5kGuardrails
NeMo Guardrails is an open-source toolkit for easily adding programmable guardrails to LLM-based conversational systems.
Python · updated 11 days agoDetails›AI safety & security
Stars:6.6kagent-governance-toolkit
AI Agent Governance Toolkit — Policy enforcement, zero-trust identity, execution sandboxing, and reliability engineering for autonomous AI agents. Covers 10/10 OWASP Agentic Top 10.
Python · MIT · updated 10 days agoDetails›AI safety & security
Stars:6.3kadversarial-robustness-toolbox
Adversarial Robustness Toolbox (ART) - Python Library for Machine Learning Security - Evasion, Poisoning, Extraction, Inference - Red and Blue Teams
Python · MIT · updated 17 days agoDetails›AI safety & security
Stars:6kgiskard-oss
Open-Source Evaluation & Testing library for LLM Agents
Python · Apache-2.0 · updated 11 days agoDetails›AI safety & security
Stars:5.6kCairn
Cairn is a general-purpose AI state-space search engine, validated first on autonomous penetration testing. Sometimes misspelled as Carin.
Python · AGPL-3.0 · updated 2 months agoDetails›AI safety & security
Stars:4.7knlpaug
Data augmentation for NLP
Jupyter Notebook · MIT · updated 17 days agoDetails›AI safety & security
Stars:4.5kPurpleLlama
Set of tools to assess and improve LLM security.
Python · updated 10 days agoDetails›AI safety & security
Stars:4.3kai.robots.txt
A list of AI agents and robots to block.
Python · MIT · updated 15 days agoDetails›AI safety & security
Stars:3.9kjailbreak_llms
[CCS'24] A dataset consists of 15,140 ChatGPT prompts from Reddit, Discord, websites, and open-source datasets (including 1,405 jailbreak prompts).
Jupyter Notebook · MIT · updated 1 year agoDetails›AI safety & security
Stars:3.8kAI-Engineer-Headquarters
A collection of scientific methods, processes, algorithms, and systems to build stories & models.
Jupyter Notebook · updated 1 month agoDetails›AI safety & security
Stars:3.5kTextAttack
TextAttack is a Python framework for adversarial attacks, data augmentation, and model training in NLP https://textattack.readthedocs.io/en/master/
Python · MIT · updated 3 months agoDetails›AI safety & security
Stars:3.3kpentestagent
PentestAgent is an AI agent framework for black-box security testing, supporting bug bounty, red-team, and penetration testing workflows.
Python · MIT · updated 22 days agoDetails›AI safety & security
Stars:3.2knesa
Run AI models end-to-end encrypted.
Python · updated 1 year agoDetails›AI safety & security
Stars:3kfoolbox
A Python toolbox to create adversarial examples that fool neural networks in PyTorch, TensorFlow, and JAX
Python · MIT · updated 11 months agoDetails›AI safety & security
Stars:3kopenrecall
OpenRecall is a fully open-source, privacy-first alternative to proprietary solutions like Microsoft's Windows Recall. With OpenRecall, you can easily access your digital history, enhancing your memory and productivity without compromising your privacy.
Python · AGPL-3.0 · updated 1 year agoDetails›AI safety & security
Stars:2.4ksynthetic-data-generator
SDG is a specialized framework designed to generate high-quality structured tabular data.
Python · Apache-2.0 · updated 14 days agoDetails›AI safety & security
Stars:2.3kfuture-agi
Open-source, end-to-end platform for evaluating, observing, and improving LLM and AI agent applications. Tracing · Evals · Simulations · Datasets · Gateway · Guardrails. Self-hostable. Apache 2.0.
Python · Apache-2.0 · updated 10 days agoDetails›AI safety & security
Stars:2kprivacy
Library for training machine learning models with privacy for training data
Python · Apache-2.0 · updated 12 days agoDetails›
Details come from each project’s own repository. Something wrong or missing? Tell us or open a pull request.