vulkro ai
Choose and test the local AI model used by the advisory --ai features.
vulkro ai setup # install Ollama (asks first), pick a model, self-test
vulkro ai setup --model qwen2.5-coder:7b --yes # same, no prompts (CI)
vulkro ai status
The AI layer is opt-in and advisory. It never changes a finding, a severity, the JSON / SARIF / SBOM output or an exit code. The default model runs locally through Ollama, so nothing leaves your machine. A local model still works under VULKRO_OFFLINE; a cloud endpoint is refused.
The choice is saved in ~/.vulkro/scans.db. There is no config file, and an API key is never written to disk.
Subcommands
| Subcommand | What it does |
|---|---|
setup | Wizard: install Ollama if missing (after a y/N), recommend a model, pull it, self-test, save. Flags: --model, --url, --yes, --byok (cloud, key from VULKRO_AI_KEY), --no-install. |
list | Installed models plus the recommended set. --format json available. |
use <MODEL> | Set the active model. --pull pulls it if missing, --url changes the runtime. |
pull <MODEL> | Download a model. |
status | Current model, runtime, reachability, offline mode, licence. --format json available. |
test | Self-test the active model. |
off | Turn AI off. The model choice is kept. |
ask <QUESTION> [PATH] | Scan, then answer one question grounded in the scan. |
chat [PATH] | Interactive chat grounded in the scan. |
targets [PATH] | List the code an AI second pass should look at. Calls no model. --explain, --max-targets <N>. |
log [PATH] | Show past AI interactions for this project (.vulkro/ai/sessions.jsonl). |
export [PATH] | Zip a security digest and AI history for another tool. -o sets the file. |
skill [PATH] | Write a findings digest into AGENTS.md, CLAUDE.md and .cursor/rules/vulkro.mdc (only the Vulkro block). |
Recommended models
| Model | Size | Licence |
|---|---|---|
qwen2.5-coder:7b (default) | 4.7 GB | Apache-2.0 |
phi4-mini:3.8b (small machines) | 2.5 GB | MIT |
qwen2.5-coder:1.5b | 1.0 GB | Apache-2.0 |
These can be pulled automatically. Any other model you pull yourself and accept its licence.
Which model runs
Highest priority first: per-run flags (--ai-model, --ai-url, --no-ai), then VULKRO_AI_MODEL / VULKRO_AI_URL, then the saved choice, then the default.
--ai on other commands
| Command | What --ai adds |
|---|---|
explain | A plain-language explanation for this code. |
fix | AI fixes where no template applies, kept only if a re-scan confirms them. |
diff | A summary of the security change. |
inspect | Why each flagged shape is suspicious. |
respond, slopcheck | Per-package or per-name notes. |
triage | Advisory triage verdicts (--ai-model, --ai-url, --no-ai). |
Exit codes
0 success, 2 error (runtime unreachable, model missing, bad arguments). ai targets exits like a scan: 1 when findings are reported.
See also: Offline mode.
Command reference
Generated from vulkro ai --help (vulkro 0.41.0). Run scripts/gen-docs.sh in the product repository to refresh it; do not edit this section by hand.
Choose and test the local AI model used by the advisory commands.
vulkro ai [OPTIONS] <COMMAND>
| Command | What it does |
|---|---|
setup | Interactive setup wizard: install Ollama if it is missing (only after an explicit y/N, from the official source, never a hidden install script), probe the machine and recommend a local model or BYOK cloud, let you choose, pull / point at the model, self-test, and save the choice. |
list | List installed models plus the Tier-1 recommended set (Apache-2.0 / MIT) with size and license; the current model is marked. |
use | Set the active model. Validates it is installed and offers to pull it if not (Apache/MIT are auto-pullable; others are bring-your-own) |
pull | Pull a model with a progress bar (wraps the runtime's model pull) |
status | Show the current model + runtime, reachability, warm state, offline mode, and the model's license tier. |
test | Run a canned self-test against the active model and print the verdict. |
off | Disable the AI layer (deterministic-only). Keeps the model selection so a later vulkro ai setup restores it. |
targets | Rank the graph nodes a local-AI second pass should investigate, using ONLY the deterministic scan. NO MODEL IS CALLED. |
chat | Interactive advisory chat grounded in the current project's scan. |
ask | One-shot advisory answer: scan the project, answer QUESTION grounded in that scan, print the answer, and exit. Same grounding, offline gating, and no-error behaviour as vulkro ai chat; the answer is the only stdout output so it pipes cleanly. |
log | List the project-local AI memory records (.vulkro/ai/sessions.jsonl): the advisory triage / fix / hunt / chat interactions recorded for this project, newest first. Read-only - never scans and never calls a model. |
export | Export a portable skill bundle (a zip): a Markdown security digest, the advisory AI analysis reconstructed from the memory store, and a copy of .vulkro/ai/sessions.jsonl - for handing this project's security context to an external agent. Additive and advisory: nothing here changes a deterministic result. |
skill | Write (or update) the agent-context files external AI agents read - AGENTS.md, a managed section inside CLAUDE.md, and .cursor/rules/vulkro.mdc - with this project's findings digest and advisory AI analysis. Idempotent: only the marker-delimited vulkro block is touched, user content is preserved, and re-running with an unchanged scan rewrites nothing. |
Options
| Flag | Description |
|---|---|
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help (see a summary with '-h') |
vulkro ai setup
Interactive setup wizard: install Ollama if it is missing (only after an explicit y/N, from the official source, never a hidden install script), probe the machine and recommend a local model or BYOK cloud, let you choose, pull / point at the model, self-test, and save the choice.
vulkro ai setup [OPTIONS]
Options
| Flag | Description |
|---|---|
--model <MODEL> | Model tag to use (skips the interactive picker). Example: qwen2.5-coder:7b. |
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--url <URL> | OpenAI-compatible runtime base url. Default: http://127.0.0.1:11434/v1 (local Ollama). For --byok, a cloud url such as https://api.openai.com/v1. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
--yes | Answer "yes" to any prompt (start the daemon, pull a missing Tier-1 model without asking). Never auto-pulls a bring-your-own model. |
--byok | Set up bring-your-own-key cloud mode instead of a local model. Point --url at a cloud OpenAI-compatible endpoint and --model at its model; the API key is read from VULKRO_AI_KEY only (never persisted). Cloud means code context leaves the machine and is refused under VULKRO_OFFLINE. |
--no-install | Do not install Ollama even if it is missing: print the official install command and stop (for locked-down / CI machines) |
-h, --help | Print help (see a summary with '-h') |
vulkro ai list
List installed models plus the Tier-1 recommended set (Apache-2.0 / MIT) with size and license; the current model is marked.
vulkro ai list [OPTIONS]
Options
| Flag | Description |
|---|---|
-f, --format <FORMAT> | Output format: table (default, human) or json (a single-line object for tooling such as a VS Code settings UI) Default: table. |
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help (see a summary with '-h') |
vulkro ai use
Set the active model. Validates it is installed and offers to pull it if not (Apache/MIT are auto-pullable; others are bring-your-own)
vulkro ai use [OPTIONS] <MODEL>
Arguments
| Argument | Description |
|---|---|
<MODEL> | Model tag to activate. Example: qwen2.5-coder:7b. |
Options
| Flag | Description |
|---|---|
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
--url <URL> | Point at a different OpenAI-compatible runtime while switching. |
--pull | Pull the model if it is not installed (no prompt) |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
--yes | Answer "yes" to any prompt. |
-h, --help | Print help. |
vulkro ai pull
Pull a model with a progress bar (wraps the runtime's model pull)
vulkro ai pull [OPTIONS] <MODEL>
Arguments
| Argument | Description |
|---|---|
<MODEL> | Model tag to pull. Example: qwen2.5-coder:7b. |
Options
| Flag | Description |
|---|---|
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help. |
vulkro ai status
Show the current model + runtime, reachability, warm state, offline mode, and the model's license tier.
vulkro ai status [OPTIONS]
Options
| Flag | Description |
|---|---|
-f, --format <FORMAT> | Output format: table (default, human) or json (a single-line object for tooling such as a VS Code settings UI) Default: table. |
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help (see a summary with '-h') |
vulkro ai test
Run a canned self-test against the active model and print the verdict
vulkro ai test [OPTIONS]
Options
| Flag | Description |
|---|---|
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help. |
vulkro ai off
Disable the AI layer (deterministic-only). Keeps the model selection so a later vulkro ai setup restores it
vulkro ai off [OPTIONS]
Options
| Flag | Description |
|---|---|
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help. |
vulkro ai targets
Rank the graph nodes a local-AI second pass should investigate, using ONLY the deterministic scan. NO MODEL IS CALLED.
vulkro ai targets [OPTIONS] [PATH]
Arguments
| Argument | Description |
|---|---|
[PATH] | Project path to scan. Defaults to the current directory. Default: .. |
Options
| Flag | Description |
|---|---|
--explain | Print each target's reason codes and retrieval hints (the full audit trail behind its bucket and priority) |
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
--max-targets <N> | Cap the number of promoted targets (the token budget). Defaults to the built-in budget (12) sized for a local 7B context window. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
-f, --format <FORMAT> | Output format: table (default) or json (emits the AiTarget list) Default: table. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help (see a summary with '-h') |
vulkro ai chat
Interactive advisory chat grounded in the current project's scan.
vulkro ai chat [OPTIONS] [PATH]
Arguments
| Argument | Description |
|---|---|
[PATH] | Project path to scan and ground the chat on. Defaults to the current directory. Default: .. |
Options
| Flag | Description |
|---|---|
--model <MODEL> | Model tag override for this session (skips the saved selection). Example: qwen2.5-coder:7b. |
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--url <URL> | OpenAI-compatible runtime base url override for this session. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help (see a summary with '-h') |
vulkro ai ask
One-shot advisory answer: scan the project, answer QUESTION grounded in that scan, print the answer, and exit. Same grounding, offline gating, and no-error behaviour as vulkro ai chat; the answer is the only stdout output so it pipes cleanly.
vulkro ai ask [OPTIONS] <QUESTION> [PATH]
Arguments
| Argument | Description |
|---|---|
<QUESTION> | The question to answer, grounded in the project's scan. |
[PATH] | Project path to scan. Defaults to the current directory. Positional, consistent with ai chat / log / export / skill Default: .. |
Options
| Flag | Description |
|---|---|
--model <MODEL> | Model tag override for this answer. |
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--url <URL> | OpenAI-compatible runtime base url override for this answer. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help (see a summary with '-h') |
vulkro ai log
List the project-local AI memory records (.vulkro/ai/sessions.jsonl): the advisory triage / fix / hunt / chat interactions recorded for this project, newest first. Read-only - never scans and never calls a model.
vulkro ai log [OPTIONS] [PATH]
Arguments
| Argument | Description |
|---|---|
[PATH] | Project path whose .vulkro/ai store to read. Defaults to the current directory. Default: .. |
Options
| Flag | Description |
|---|---|
--limit <N> | Cap the number of records shown (newest first) |
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
-f, --format <FORMAT> | Output format: table (default) or json (emits the record list) Default: table. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help (see a summary with '-h') |
vulkro ai export
Export a portable skill bundle (a zip): a Markdown security digest, the advisory AI analysis reconstructed from the memory store, and a copy of .vulkro/ai/sessions.jsonl - for handing this project's security context to an external agent. Additive and advisory: nothing here changes a deterministic result.
vulkro ai export [OPTIONS] [PATH]
Arguments
| Argument | Description |
|---|---|
[PATH] | Project path to scan. Defaults to the current directory. Default: .. |
Options
| Flag | Description |
|---|---|
-o, --output <FILE> | Output zip path. Defaults to ./vulkro-skill-bundle.zip. Default: vulkro-skill-bundle.zip. |
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help (see a summary with '-h') |
vulkro ai skill
Write (or update) the agent-context files external AI agents read - AGENTS.md, a managed section inside CLAUDE.md, and .cursor/rules/vulkro.mdc - with this project's findings digest and advisory AI analysis. Idempotent: only the marker-delimited vulkro block is touched, user content is preserved, and re-running with an unchanged scan rewrites nothing.
vulkro ai skill [OPTIONS] [PATH]
Arguments
| Argument | Description |
|---|---|
[PATH] | Project path to scan. Defaults to the current directory. Default: .. |
Options
| Flag | Description |
|---|---|
--offline | Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set. |
-q, --quiet | Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged. |
--no-color | Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb. |
-h, --help | Print help (see a summary with '-h') |
Full vulkro ai --help
Choose and test the local AI model used by the advisory commands.
Configure the local-AI layer: pick a model, point at a runtime, and self-test it. CLI-only, no config files; the selection is stored in `~/.vulkro/scans.db` (nothing leaves the machine, no key is persisted).
The AI layer is OPT-IN and ADVISORY. It never changes a deterministic finding, its severity, the benchmark JSON/SARIF/SBOM, or an exit code. A loopback (local Ollama) model is allowed even under VULKRO_OFFLINE because nothing leaves the machine; a cloud endpoint is refused offline.
Sub-actions: setup / list / use / pull / status / test / off.
Exit codes: 0 success. 2 error (runtime unreachable, model missing and declined, bad args).
Usage: vulkro ai [OPTIONS] <COMMAND>
Commands:
setup Interactive setup wizard: install Ollama if it is missing (only after an explicit y/N, from the official source, never a hidden install script), probe the machine and recommend a local model or BYOK cloud, let you choose, pull / point at the model, self-test, and save the choice
list List installed models plus the Tier-1 recommended set (Apache-2.0 / MIT) with size and license; the current model is marked
use Set the active model. Validates it is installed and offers to pull it if not (Apache/MIT are auto-pullable; others are bring-your-own)
pull Pull a model with a progress bar (wraps the runtime's model pull)
status Show the current model + runtime, reachability, warm state, offline mode, and the model's license tier
test Run a canned self-test against the active model and print the verdict
off Disable the AI layer (deterministic-only). Keeps the model selection so a later `vulkro ai setup` restores it
targets Rank the graph nodes a local-AI second pass should investigate, using ONLY the deterministic scan. NO MODEL IS CALLED
chat Interactive advisory chat grounded in the current project's scan
ask One-shot advisory answer: scan the project, answer QUESTION grounded in that scan, print the answer, and exit. Same grounding, offline gating, and no-error behaviour as `vulkro ai chat`; the answer is the only stdout output so it pipes cleanly
log List the project-local AI memory records (`.vulkro/ai/sessions.jsonl`): the advisory triage / fix / hunt / chat interactions recorded for this project, newest first. Read-only - never scans and never calls a model
export Export a portable skill bundle (a zip): a Markdown security digest, the advisory AI analysis reconstructed from the memory store, and a copy of `.vulkro/ai/sessions.jsonl` - for handing this project's security context to an external agent. Additive and advisory: nothing here changes a deterministic result
skill Write (or update) the agent-context files external AI agents read - `AGENTS.md`, a managed section inside `CLAUDE.md`, and `.cursor/rules/vulkro.mdc` - with this project's findings digest and advisory AI analysis. Idempotent: only the marker-delimited vulkro block is touched, user content is preserved, and re-running with an unchanged scan rewrites nothing
help Print this message or the help of the given subcommand(s)
Options:
--offline
Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set
-q, --quiet
Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged
--no-color
Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb
-h, --help
Print help (see a summary with '-h')