data
NVD CLI for AI Agents
Use the NVD CLI from KosmoKrator to call NVD tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.NVD CLI Setup
NVD can be configured headlessly with `kosmokrator integrations:configure nvd`.
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
# Configure and verify this integration.
kosmokrator integrations:configure nvd --enable --read allow --write ask --json
kosmokrator integrations:doctor nvd --json
kosmokrator integrations:status --json Credentials
Authentication type: API key api_key. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
api_key | NVD_API_KEY | Secret secret | no | API Key |
Command Patterns
The generic command is stable across every integration. The provider shortcut is shorter for humans.
kosmo integrations:call nvd.nvd_cves '{}' --json kosmo integrations:nvd nvd_cves '{}' --json Discovery
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs nvd --json
kosmo integrations:docs nvd.nvd_cves --json
kosmo integrations:schema nvd.nvd_cves --json
kosmo integrations:search "NVD" --json
kosmo integrations:list --json Automation Contexts
The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.
CLI Functions
Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.
nvd.nvd_cves
Search NVD CVE records with official 2.0 filters.
read - Parameters
- none
kosmo integrations:call nvd.nvd_cves '{}' --json kosmo integrations:nvd nvd_cves '{}' --json nvd.nvd_cve_by_id
Retrieve one CVE record by CVE ID.
read - Parameters
- none
kosmo integrations:call nvd.nvd_cve_by_id '{}' --json kosmo integrations:nvd nvd_cve_by_id '{}' --json nvd.nvd_cve_history
Search CVE change-history events.
read - Parameters
- none
kosmo integrations:call nvd.nvd_cve_history '{}' --json kosmo integrations:nvd nvd_cve_history '{}' --json nvd.nvd_cpes
Search NVD CPE dictionary records.
read - Parameters
- none
kosmo integrations:call nvd.nvd_cpes '{}' --json kosmo integrations:nvd nvd_cpes '{}' --json nvd.nvd_cpe_by_name_id
Retrieve CPE dictionary records by cpeNameId UUID.
read - Parameters
- none
kosmo integrations:call nvd.nvd_cpe_by_name_id '{}' --json kosmo integrations:nvd nvd_cpe_by_name_id '{}' --json nvd.nvd_cpe_match
Search CPE match criteria records.
read - Parameters
- none
kosmo integrations:call nvd.nvd_cpe_match '{}' --json kosmo integrations:nvd nvd_cpe_match '{}' --json nvd.nvd_cpe_match_by_criteria_id
Retrieve match criteria records by matchCriteriaId UUID.
read - Parameters
- none
kosmo integrations:call nvd.nvd_cpe_match_by_criteria_id '{}' --json kosmo integrations:nvd nvd_cpe_match_by_criteria_id '{}' --json nvd.nvd_sources
Search NVD data-source metadata.
read - Parameters
- none
kosmo integrations:call nvd.nvd_sources '{}' --json kosmo integrations:nvd nvd_sources '{}' --json nvd.nvd_source_by_identifier
Retrieve NVD data-source metadata by sourceIdentifier.
read - Parameters
- none
kosmo integrations:call nvd.nvd_source_by_identifier '{}' --json kosmo integrations:nvd nvd_source_by_identifier '{}' --json Function Schemas
Use these parameter tables when building CLI payloads without calling integrations:schema first.
nvd.nvd_cves 0 parameters
kosmo integrations:schema nvd.nvd_cves --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
nvd.nvd_cve_by_id 0 parameters
kosmo integrations:schema nvd.nvd_cve_by_id --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
nvd.nvd_cve_history 0 parameters
kosmo integrations:schema nvd.nvd_cve_history --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
nvd.nvd_cpes 0 parameters
kosmo integrations:schema nvd.nvd_cpes --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
nvd.nvd_cpe_by_name_id 0 parameters
kosmo integrations:schema nvd.nvd_cpe_by_name_id --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
nvd.nvd_cpe_match 0 parameters
kosmo integrations:schema nvd.nvd_cpe_match --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
nvd.nvd_cpe_match_by_criteria_id 0 parameters
kosmo integrations:schema nvd.nvd_cpe_match_by_criteria_id --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
nvd.nvd_sources 0 parameters
kosmo integrations:schema nvd.nvd_sources --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
nvd.nvd_source_by_identifier 0 parameters
kosmo integrations:schema nvd.nvd_source_by_identifier --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults with
integrations:configure. Add --force only for trusted automation that should bypass that policy.