Skip to content

Installation

Via pip

pip install agentsec

From source

git clone https://github.com/locface/AgentSec.git
cd AgentSec
pip install -e .

Development install

pip install -e ".[dev]"

Docker

docker build -t agentsec .
docker run --rm -v $(pwd):/scan agentsec scan /scan

Verify

agentsec --help

You should see:

Usage: agentsec [OPTIONS] COMMAND [ARGS]...

  AgentSec — security scanner for AI agent configs.

Commands:
  scan  Scan a directory for security risks in AI agent configurations.