Prismor CLI
A powerful command-line tool for scanning GitHub repositories for security vulnerabilities, secrets, and generating Software Bill of Materials (SBOM) — with built-in AI auto-fix that opens a PR to remediate vulnerabilities in seconds.
Quick Start
1. Get Your API Key
Get your API key (Free)
Sign up to generate your key instantly.
2. Install & Configure
$ pip install prismorSet your API key:
$ export PRISMOR_API_KEY=your_api_key_hereUsage Examples
Basic Syntax
$ prismor --repo <repository> [scan-type]Repository Formats
Username/Repository format:
$ prismor --repo owner/repository --fullscanFull GitHub URL:
$ prismor --repo https://github.com/owner/repository --fullscanScan Types
1. Vulnerability Scanning (VEX)
Scan for known vulnerabilities in dependencies.
$ prismor --repo myrepository --vex2. Secret Detection
Detect exposed API keys, tokens, and credentials.
$ prismor --repo myrepository --detect-secret3. SBOM Generation
Generate Software Bill of Materials.
$ prismor --repo myrepository --sbom4. Full Scan (All checks)
Run all security checks in one command.
$ prismor --repo myrepository --fullscan5. AI Auto-Fix
Scan for vulnerabilities and automatically open a PR with fixes. Pass --fix alongside any scan flag — it implies --scan if no other scan type is specified.
$ prismor --repo myrepository --scan --fixReturns a job_id immediately. Track progress with prismor fix-status. Want to run the fix on your own machine with your own LLM credits instead? See Local AI Auto-Fix.
JSON Output
Get results in JSON format for automation and CI/CD:
$ prismor --repo myrepository --fullscan --jsonAdditional Commands
Trigger Auto-Fix (no scan)
Fire the AI agent directly without running a scan first. Accepts an optional --branch and --instruction.
$ prismor trigger-fix owner/repository$ prismor trigger-fix owner/repository --branch develop --instruction "Update all lodash deps"Fix Status
Check the status of an auto-fix job. Add --wait to block until the PR is created (up to 30 min).
$ prismor fix-status <job_id>$ prismor fix-status <job_id> --waitLocal AI Auto-Fix (your own infrastructure)
Prefer to keep your source code and credentials on your own machine? prismor fix-local applies fixes locally instead of in Prismor's cloud. Scanning still runs in the cloud, but the fix is performed by a coding agent you already have installed (Claude Code, Codex, …) using your own LLM credits, editing your local checkout. Your code and GitHub token never leave your machine, and Prismor's hosted fix agent is not invoked.
1. Scan in the cloud and save the findings:
$ prismor --repo owner/repository --scan -o findings.json2. Fix locally with your own agent, in your current checkout:
$ prismor fix-local --results findings.jsonOr pull findings straight from a completed scan job:
$ prismor fix-local . --from-scan <job_id>Useful flags: --dry-run previews the prompt without changing files, --agent claude|codex picks the agent, --branch <name> creates a local git branch first, --instruction adds guidance, and --yes skips the confirmation prompt (required for non-interactive/CI use).
No Claude Code or Codex installed? Point Prismor at any agent with a {prompt} placeholder via an environment variable:
$ export PRISMOR_LOCAL_AGENT_CMD='aider --yes --message {prompt}'Check Configuration
Verify your CLI configuration and API key
$ prismor configVersion Information
Check your installed CLI version
$ prismor --versionGet Help
Display all available commands and options
$ prismor --helpFull Analysis & Dashboard
For comprehensive analysis and visualization of your scan results, access the Prismor Dashboard with interactive charts, historical data, and team collaboration features.
Go to Dashboard →