Skip to main content

Cyberstrike is now open source! AI-powered penetration testing for security professionals. Star on GitHub

CLI

CyberStrike CLI defaults to launching the TUI when run without arguments. It also accepts commands for non-interactive and programmatic use.

Terminal window
# Launch interactive TUI
cyberstrike
# Run a single prompt
cyberstrike run "scan example.com for open ports"

VIDEO: cli-run-demo.mp4

Non-interactive run command with streaming agent output (~12s)

Available Commands

CommandDescription
runNon-interactive mode with a direct prompt
serveHeadless HTTP server for API access
webHeadless server with web interface
attachConnect TUI to a running server
authManage credentials and provider login
agentManage security agents
mcpManage MCP servers
modelsList available models from providers
sessionManage sessions
statsDisplay token usage and cost statistics
exportExport session data as JSON
importImport from JSON file or share URL
upgradeUpdate to latest or specific version
uninstallRemove CyberStrike and related files

Global Flags

FlagAliasDescription
--help-hDisplay help information
--version-vPrint version
--print-logsOutput logs to stderr
--log-levelSet level: DEBUG, INFO, WARN, ERROR

run

Execute a single prompt without entering interactive mode.

Terminal window
cyberstrike run [message..] [options]

Options

OptionAliasDescription
--model <model>-mModel in format provider/model
--agent <name>Security agent to use
--continue-cContinue last session
--session <id>-sResume specific session
--file <path>-fAttach file(s) to message
--format <type>Output format: default or json
--shareShare the session
--title <text>Set session title
--variant <type>Model variant (high, max, minimal)

Examples

Terminal window
# Run a security scan
cyberstrike run "scan example.com for XSS vulnerabilities"
# Attach a config file for review
cyberstrike run "analyze this config for misconfigurations" -f nginx.conf
# Output as JSON for pipeline integration
cyberstrike run "list all open ports" --format json
# Continue a previous session
cyberstrike run "now check for SQLi" --continue

SCREENSHOT: cli-json-output.png

Structured JSON output from —format json flag

Piping Input

Accept input from stdin for integration with other tools:

Terminal window
echo "analyze this code for vulnerabilities" | cyberstrike run
nmap -sV target.local | cyberstrike run "analyze these scan results"
cat report.json | cyberstrike run "summarize findings"

serve

Start a headless HTTP API server without a UI. Useful for integrations, CI/CD pipelines, and remote access.

Terminal window
cyberstrike serve [options]
OptionDescription
--port <number>Server port (default: random available)
--hostname <address>Bind address (default: 127.0.0.1)

Caution

Authentication: Set CYBERSTRIKE_SERVER_PASSWORD when exposing the server on a network. Without it, the server is unsecured.

Terminal window
# Start API server on port 4096
CYBERSTRIKE_SERVER_PASSWORD=secret cyberstrike serve --port 4096

VIDEO: cli-pipe-demo.mp4

Piping nmap output into cyberstrike run for analysis (~10s)

attach

Connect a TUI to an already-running CyberStrike server. This allows multiple terminals to share the same sessions.

Terminal window
cyberstrike attach <url>
Terminal window
# Start server in one terminal
cyberstrike web --port 4096
# Attach from another terminal
cyberstrike attach http://localhost:4096

upgrade

Update CyberStrike to the latest version or a specific target.

Terminal window
# Upgrade to latest stable
cyberstrike upgrade
# Upgrade to specific version
cyberstrike upgrade 1.1.6
# Upgrade to latest beta
cyberstrike upgrade --method npm

Supported methods: curl, npm, pnpm, bun, brew, choco, scoop.

Environment Variables

VariableDescription
CYBERSTRIKE_PROVIDERDefault AI provider
CYBERSTRIKE_MODELDefault model
CYBERSTRIKE_AGENTDefault security agent
CYBERSTRIKE_SERVER_PASSWORDServer authentication password
CYBERSTRIKE_SERVER_USERNAMEServer username (default: cyberstrike)
CYBERSTRIKE_DISABLE_AUTOUPDATEDisable automatic update checks
CYBERSTRIKE_TUI_CONFIGCustom TUI config path
ANTHROPIC_API_KEYAnthropic API key
OPENAI_API_KEYOpenAI API key
GOOGLE_API_KEYGoogle AI API key
OPENROUTER_API_KEYOpenRouter API key

Exit Codes

CodeMeaning
0Success
1General error
2Invalid arguments
130Interrupted (Ctrl+C)