Skip to main content

Command Line Interface

Run HiAUDIT directly from the terminal in addition to using it inside your IDE.

Although most users interact with HiAUDIT through their IDE, the agent also works as a standalone command-line tool.

Smart contract analysis

# Solidity analysis hiauditagent run --scope src/ # Solana / Anchor analysis (auto-detected from Anchor.toml or Cargo.toml) hiauditagent run --scope programs/ # Solana analysis with explicit chain override hiauditagent run --scope programs/ --chain solana # List all Solana detectors hiauditagent detectors --chain solana

Web application analysis

The web application subcommand is web2:

# Web application analysis hiauditagent web2 --scope src/ # With taint analysis and OWASP scoring hiauditagent web2 --scope src/ --taint --owasp --framework express # Filtered to a specific language hiauditagent web2 --scope src/ --language Python --min-severity Medium

Web application CLI options

FlagDescription
--scopePaths to analyze (files or directories).
--excludePaths to exclude.
--min-severityMinimum severity: Critical, High, Medium, Low, Info.
--languageFilter to a specific language (TypeScript, Python, Java, etc.).
--taintInclude taint analysis (source-to-sink data flow tracking).
--owaspInclude OWASP Top 10 2025 compliance analysis.
--frameworkWeb framework for taint analysis (express, django, flask, spring, etc.).
--exclude-detectorsDetector IDs to skip.
--formatOutput format.
--outputWrite report to a file.

MCP commands

# Register HiAUDIT with all detected AI tools hiauditagent mcp add # Run the MCP server (normally launched by your editor, not by hand) hiauditagent mcp serve

For editor setup, see Connect to your IDE.