Getting Started with AgentShield

Install AgentShield on Python 3.10+ with Pydantic v2, FastAPI, and Uvicorn included cleanly in runtime dependencies.

uv & pip Install

v1.1.0
uv sync --extra dev && uv run agentshield evaluate

CLI Commands

  • agentshield evaluate --output report.md — Runs 25 OWASP 2026 scenarios.
  • agentshield check-prompt "..." — Runs multi-layer injection detection.
  • agentshield check-tool --tool ... --args '{...}' — Evaluates deep argument safety.
  • agentshield scan-output "..." — Scans and redacts leaked credentials & XSS.
  • agentshield serve --port 8090 — Starts FastAPI Security Lab.