Skip to main content

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​

SubcommandWhat it does
setupWizard: 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.
listInstalled 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.
statusCurrent model, runtime, reachability, offline mode, licence. --format json available.
testSelf-test the active model.
offTurn 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).
ModelSizeLicence
qwen2.5-coder:7b (default)4.7 GBApache-2.0
phi4-mini:3.8b (small machines)2.5 GBMIT
qwen2.5-coder:1.5b1.0 GBApache-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​

CommandWhat --ai adds
explainA plain-language explanation for this code.
fixAI fixes where no template applies, kept only if a re-scan confirms them.
diffA summary of the security change.
inspectWhy each flagged shape is suspicious.
respond, slopcheckPer-package or per-name notes.
triageAdvisory 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>
CommandWhat it does
setupInteractive 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.
listList installed models plus the Tier-1 recommended set (Apache-2.0 / MIT) with size and license; the current model is marked.
useSet the active model. Validates it is installed and offers to pull it if not (Apache/MIT are auto-pullable; others are bring-your-own)
pullPull a model with a progress bar (wraps the runtime's model pull)
statusShow the current model + runtime, reachability, warm state, offline mode, and the model's license tier.
testRun a canned self-test against the active model and print the verdict.
offDisable the AI layer (deterministic-only). Keeps the model selection so a later vulkro ai setup restores it.
targetsRank the graph nodes a local-AI second pass should investigate, using ONLY the deterministic scan. NO MODEL IS CALLED.
chatInteractive advisory chat grounded in the current project's scan.
askOne-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.
logList 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.
exportExport 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.
skillWrite (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​

FlagDescription
--offlineHard-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, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint 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​

FlagDescription
--model <MODEL>Model tag to use (skips the interactive picker). Example: qwen2.5-coder:7b.
--offlineHard-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, --quietPrint 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-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
--yesAnswer "yes" to any prompt (start the daemon, pull a missing Tier-1 model without asking). Never auto-pulls a bring-your-own model.
--byokSet 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-installDo not install Ollama even if it is missing: print the official install command and stop (for locked-down / CI machines)
-h, --helpPrint 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​

FlagDescription
-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.
--offlineHard-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, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint 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​

ArgumentDescription
<MODEL>Model tag to activate. Example: qwen2.5-coder:7b.

Options​

FlagDescription
--offlineHard-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.
--pullPull the model if it is not installed (no prompt)
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
--yesAnswer "yes" to any prompt.
-h, --helpPrint help.

vulkro ai pull​

Pull a model with a progress bar (wraps the runtime's model pull)

vulkro ai pull [OPTIONS] <MODEL>

Arguments​

ArgumentDescription
<MODEL>Model tag to pull. Example: qwen2.5-coder:7b.

Options​

FlagDescription
--offlineHard-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, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint 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​

FlagDescription
-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.
--offlineHard-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, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint 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​

FlagDescription
--offlineHard-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, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint 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​

FlagDescription
--offlineHard-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, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint 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​

ArgumentDescription
[PATH]Project path to scan. Defaults to the current directory. Default: ..

Options​

FlagDescription
--explainPrint each target's reason codes and retrieval hints (the full audit trail behind its bucket and priority)
--offlineHard-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, --quietPrint 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-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint 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​

ArgumentDescription
[PATH]Project path to scan and ground the chat on. Defaults to the current directory. Default: ..

Options​

FlagDescription
--model <MODEL>Model tag override for this session (skips the saved selection). Example: qwen2.5-coder:7b.
--offlineHard-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, --quietPrint 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-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint 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​

ArgumentDescription
<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​

FlagDescription
--model <MODEL>Model tag override for this answer.
--offlineHard-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, --quietPrint 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-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint 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​

ArgumentDescription
[PATH]Project path whose .vulkro/ai store to read. Defaults to the current directory. Default: ..

Options​

FlagDescription
--limit <N>Cap the number of records shown (newest first)
--offlineHard-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, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint 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​

ArgumentDescription
[PATH]Project path to scan. Defaults to the current directory. Default: ..

Options​

FlagDescription
-o, --output <FILE>Output zip path. Defaults to ./vulkro-skill-bundle.zip. Default: vulkro-skill-bundle.zip.
--offlineHard-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, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint 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​

ArgumentDescription
[PATH]Project path to scan. Defaults to the current directory. Default: ..

Options​

FlagDescription
--offlineHard-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, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint 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')