Skip to main content

Overview

The HackAgent CLI provides a powerful command-line interface for AI agent security testing. With beautiful ASCII branding, rich terminal output, and comprehensive functionality, it's the fastest way to run attacks.

For installation instructions, see the Installation Guide.

Commands

CommandDescriptionDocumentation
hackagentLaunch TUI interfaceQuick Start
hackagent initInteractive setup wizardInitialization
hackagent configManage configurationConfig
hackagent attackExecute security attacksAttack
hackagent resultsView and manage resultsResults
hackagent versionShow version info-

Quick Examples

Setup

hackagent init

Run an Attack

hackagent attack advprefix \
--agent-name "my-agent" \
--agent-type "google-adk" \
--endpoint "http://localhost:8000" \
--goals "Test security vulnerability"

View Results

hackagent results list

Global Options

These options work with all commands:

OptionDescription
-v, -vv, -vvvIncrease verbosity level
--config-fileUse custom config file
--output-formatSet output format (table, json, csv)
--helpShow help message

Get Help

# General help
hackagent --help

# Command-specific help
hackagent attack --help
hackagent config --help