Documentation
Everything you need to integrate Kensai into your security workflow. AI-powered scanning, 300K+ CVEs, and automated remediation.
Quick Start
2️⃣
Install CLI
Install the Kensai CLI for local scanning.
npm i -g @aihackers/kensai-cli3️⃣
Run First Scan
Scan a URL, repo, or local code.
kensai scan https://example.comAPI Reference
Scanning
POST
/v1/scan—Start a new security scanGET
/v1/scans/:id—Get scan status and resultsGET
/v1/scans—List all scans for organizationDELETE
/v1/scans/:id—Cancel a running scanCVE Database (300K+ vulnerabilities)
GET
/v1/cves/search—Search CVEs with filters (severity, CWE, ecosystem)GET
/v1/cves/:cveId—Get detailed CVE informationGET
/v1/cves/package/:ecosystem/:name—Get CVEs affecting a packageGET
/v1/cves/stats—Database statistics💡 Auto-updated: CVE database syncs every 4 hours from NVD, OSV, and GitHub Advisories.
Dependency Analysis
POST
/v1/deps/analyze—Analyze dependencies for vulnerabilitiesPOST
/v1/sbom/generate—Generate CycloneDX or SPDX SBOMAuto-Remediation
POST
/v1/fix/generate—Generate AI-powered fix for vulnerabilityPOST
/v1/github/comment—Post fix as GitHub PR commentReports
POST
/v1/reports/generate—Generate PDF, HTML, JSON, or SARIF reportGET
/v1/reports/:id—Get report statusGET
/v1/reports/:id/download—Download generated reportAuthentication
POST
/v1/auth/register—Create new accountPOST
/v1/auth/login—Get JWT tokenPOST
/v1/auth/api-keys—Create API keyGET
/v1/auth/api-keys—List API keysDELETE
/v1/auth/api-keys/:id—Revoke API keyBilling
GET
/v1/billing/plans—List available plansPOST
/v1/billing/checkout—Create Stripe checkout sessionPOST
/v1/billing/portal—Get customer portal URLGET
/v1/billing/subscription—Get current subscriptionGET
/v1/billing/usage—Get usage statisticsIntegrations
POST
/v1/github/connect—Connect GitHub AppPOST
/v1/github/webhook—GitHub webhook handlerPOST
/v1/integrations/slack/webhook—Configure Slack notificationsPOST
/v1/integrations/jira/connect—Connect Jira for ticket creationAnalytics
GET
/v1/analytics/dashboard—Get dashboard statisticsGET
/v1/analytics/trends—Vulnerability trends over timeCLI Reference
Installation
npm install -g @aihackers/kensai-cli
# or
pnpm add -g @aihackers/kensai-cliAuthentication
# Login with API key
kensai login --api-key YOUR_API_KEY
# Check config
kensai config --listScanning
# Scan a URL
kensai scan https://example.com
# Scan a GitHub repo
kensai scan https://github.com/user/repo
# Scan local code
kensai scan ./my-project
# With options
kensai scan ./src --format json --output results.json --fail-on highCVE Search
# Search CVEs
kensai cve "log4j"
kensai cve --severity CRITICAL --limit 20
# Check specific CVE
kensai cve CVE-2021-44228Reports & SBOM
# Generate report
kensai report SCAN_ID --type technical --format pdf
# Generate SBOM
kensai sbom ./my-project --format cyclonedxGitHub Action
# .github/workflows/security.yml
name: Security Scan
on: [push, pull_request]
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Kensai Security Scan
uses: aihackers/kensai-action@v1
with:
api-key: ${{ secrets.{BRAND.name}_API_KEY }}
scan-type: repo
fail-on: high
comment-on-pr: trueAdd KENSAI_API_KEY to your repository secrets.
Plans
Starter
$999/month
- 100 scans/month
- CVE search & alerts
- Dependency analysis
- SBOM generation
- 5 team members
- Email support
MOST POPULAR
Pro
$2,999/month
- Unlimited scans
- Auto-remediation
- CI/CD integration
- GitHub PR comments
- Unlimited members
- Priority support
Enterprise
Custom
- Everything in Pro
- Self-hosted option
- SSO & RBAC
- Custom integrations
- SLA guarantee
- Dedicated support
Need Help?
Our team is here to help you get the most out of Kensai.