A security library for FastAPI that provides middleware to control IPs, log requests, detect penetration attempts, honeypot setup, behavioural analysis, emergency mode lockdown, block Cloud Provider IPs, country blocking, and much more... It integrates seamlessly with FastAPI to offer robust protection against various security threats.
Latest release v8.0.2 · 26 Sept 2026
2 files for Codex, OpenCode and Claude Code: fastapi-guard AGENTS.md, fastapi-guard CLAUDE.md — 6,279 tokens loaded in every session.
AGENTS.md A 3,140 tok CLAUDE.md A 3,139 tok These files are rennf93/fastapi-guard's own configuration — they tell Codex, OpenCode and Claude Code how to work on this repository, so they are not mods to install elsewhere. Copy one as a starting point and replace the parts that are about this project.