Run Scans in CLI using Akto
You can run Akto scanning module via CLI for local probing of agent components.
When to Use
Run Akto probes locally on any agent collection
Results from CLI are NOT saved in Akto dashboard
Best used when developers want to run probes locally before committing code
Override application host URL to localhost or different staging URL
How to Use
Prepare the following environment variables:
AKTO_API_KEY- Go to My accounts > Settings > Integrations > Akto API > Generate tokenAKTO_DASHBOARD_URL- URL of your dashboardTEST_IDS- Space-separated list of test IDs to run (e.g.,PROMPT_INJECTION MCP_AUTH_BYPASS) orALLfor all testsAPI_COLLECTION_NAME- Collection name to test (e.g., agent_collection)API_COLLECTION_ID- Collection ID (integer). Only one ofAPI_COLLECTION_NAMEorAPI_COLLECTION_IDis requiredTEST_APIS- Space-separated list of components to test. If absent, all components are selectedOVERRIDE_APP_URL- Change the application host for testingOUTPUT_LEVEL- Output level:NONE- No output fileSUMMARY- [Default] Probes executed and list of vulnerable componentsDETAILED- Summary plus probe descriptions and impactDEBUG- Detailed output with original and attempt request/response
Example CLI:
Results
Short summary (Component, Vulnerability, Severity) printed on command line
File
output.txtcontains probe details based on output levelIf you see version mismatch error, match release version of dashboard vs probing-cli
Limitations
Results are not saved in Akto dashboard
Probes which use context will be skipped
Last updated