Documentation

Everything you need to integrate Kensai into your security workflow. AI-powered scanning, 300K+ CVEs, and automated remediation.

Quick Start

1️⃣

Get API Key

Sign up and generate an API key from your dashboard.

Go to Settings
2️⃣

Install CLI

Install the Kensai CLI for local scanning.

npm i -g @aihackers/kensai-cli
3️⃣

Run First Scan

Scan a URL, repo, or local code.

kensai scan https://example.com

API Reference

Scanning

POST/v1/scanStart a new security scan
GET/v1/scans/:idGet scan status and results
GET/v1/scansList all scans for organization
DELETE/v1/scans/:idCancel a running scan

CVE Database (300K+ vulnerabilities)

GET/v1/cves/searchSearch CVEs with filters (severity, CWE, ecosystem)
GET/v1/cves/:cveIdGet detailed CVE information
GET/v1/cves/package/:ecosystem/:nameGet CVEs affecting a package
GET/v1/cves/statsDatabase statistics

💡 Auto-updated: CVE database syncs every 4 hours from NVD, OSV, and GitHub Advisories.

Dependency Analysis

POST/v1/deps/analyzeAnalyze dependencies for vulnerabilities
POST/v1/sbom/generateGenerate CycloneDX or SPDX SBOM

Auto-Remediation

POST/v1/fix/generateGenerate AI-powered fix for vulnerability
POST/v1/github/commentPost fix as GitHub PR comment

Reports

POST/v1/reports/generateGenerate PDF, HTML, JSON, or SARIF report
GET/v1/reports/:idGet report status
GET/v1/reports/:id/downloadDownload generated report

Authentication

POST/v1/auth/registerCreate new account
POST/v1/auth/loginGet JWT token
POST/v1/auth/api-keysCreate API key
GET/v1/auth/api-keysList API keys
DELETE/v1/auth/api-keys/:idRevoke API key

Billing

GET/v1/billing/plansList available plans
POST/v1/billing/checkoutCreate Stripe checkout session
POST/v1/billing/portalGet customer portal URL
GET/v1/billing/subscriptionGet current subscription
GET/v1/billing/usageGet usage statistics

Integrations

POST/v1/github/connectConnect GitHub App
POST/v1/github/webhookGitHub webhook handler
POST/v1/integrations/slack/webhookConfigure Slack notifications
POST/v1/integrations/jira/connectConnect Jira for ticket creation

Analytics

GET/v1/analytics/dashboardGet dashboard statistics
GET/v1/analytics/trendsVulnerability trends over time

CLI Reference

Installation

npm install -g @aihackers/kensai-cli
# or
pnpm add -g @aihackers/kensai-cli

Authentication

# Login with API key
kensai login --api-key YOUR_API_KEY

# Check config
kensai config --list

Scanning

# 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 high

CVE Search

# Search CVEs
kensai cve "log4j"
kensai cve --severity CRITICAL --limit 20

# Check specific CVE
kensai cve CVE-2021-44228

Reports & SBOM

# Generate report
kensai report SCAN_ID --type technical --format pdf

# Generate SBOM
kensai sbom ./my-project --format cyclonedx

GitHub 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.KENSAI_API_KEY }}
          scan-type: repo
          fail-on: high
          comment-on-pr: true

Add 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
Get Started
MOST POPULAR

Pro

$2,999/month
  • Unlimited scans
  • Auto-remediation
  • CI/CD integration
  • GitHub PR comments
  • Unlimited members
  • Priority support
Get Started

Enterprise

Custom
  • Everything in Pro
  • Self-hosted option
  • SSO & RBAC
  • Custom integrations
  • SLA guarantee
  • Dedicated support
Contact Sales

Need Help?

Our team is here to help you get the most out of Kensai.