vulkro-sf ai
Chooses and tests the optional local AI model that the advisory commands use. The AI layer never changes a finding, its severity, the readiness report, SARIF or SBOM output, or an exit code.
vulkro-sf ai setup # pick, pull and test a model
vulkro-sf ai setup --model qwen2.5-coder:7b --yes --no-install # scripted
vulkro-sf ai status
By default it uses a local Ollama runtime on loopback, so nothing leaves your machine, and it still works under VULKRO_OFFLINE. A cloud endpoint is refused offline. The selection is stored in ~/.vulkro/scans.db and shared with vulkro ai.
| Subcommand | What it does |
|---|---|
setup | Wizard: install Ollama if missing (only after you confirm), recommend a model, pull it, self-test, save. Flags: --model, --url, --yes, --no-install, --byok (cloud, key from VULKRO_AI_KEY only, never written to disk). |
list | Installed models plus the recommended Apache-2.0 and MIT models. |
use <model> | Set the active model. --pull pulls it if missing. |
pull <model> | Pull a model. |
status | Current model, runtime, reachability and offline mode. --format json for tools. |
test | Run a short self-test against the active model. |
off | Turn the AI layer off, keeping the selection. |
Precedence: the per-run flags --ai-model, --ai-url, --no-ai, then VULKRO_AI_MODEL and VULKRO_AI_URL, then the saved selection, then a default for the machine.
Where it is used
| Command | Flag | What you get |
|---|---|---|
scan | --ai-explain | A plain-language note on why each finding matters for the security review. |
triage | on by default | Advisory explanations for the classes a reviewer always checks. |
fix | --ai, --ai --write | Apex patches, kept only if a re-scan shows the finding gone. |
org perms | --explain | Why each posture finding is risky. |
If the runtime is unreachable, the command says so and the deterministic result stands.
Exit codes
| Code | Meaning |
|---|---|
0 | Success. |
2 | Error (runtime unreachable, model missing and declined, bad arguments). |
Command reference
Generated from vulkro-sf ai --help (vulkro-sf 0.33.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-sf 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), 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-sf ai setup restores it. |
Options
| Flag | Description |
|---|---|
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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-sf ai setup
Interactive setup wizard: install Ollama if it is missing (only after an explicit y/N, from the official source), 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-sf ai setup [OPTIONS]
Options
| Flag | Description |
|---|---|
--model <MODEL> | Model tag to use (skips the interactive picker). Example: qwen2.5-coder:7b. |
--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. |
--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) |
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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-sf 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-sf 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. |
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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-sf 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-sf ai use [OPTIONS] <MODEL>
Arguments
| Argument | Description |
|---|---|
<MODEL> | Model tag to activate. Example: qwen2.5-coder:7b. |
Options
| Flag | Description |
|---|---|
--url <URL> | Point at a different OpenAI-compatible runtime while switching. |
--pull | Pull the model if it is not installed (no prompt) |
--yes | Answer "yes" to any prompt. |
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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-sf ai pull
Pull a model with a progress bar (wraps the runtime's model pull)
vulkro-sf ai pull [OPTIONS] <MODEL>
Arguments
| Argument | Description |
|---|---|
<MODEL> | Model tag to pull. Example: qwen2.5-coder:7b. |
Options
| Flag | Description |
|---|---|
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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-sf ai status
Show the current model + runtime, reachability, warm state, offline mode, and the model's license tier.
vulkro-sf 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. |
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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-sf ai test
Run a canned self-test against the active model and print the verdict
vulkro-sf ai test [OPTIONS]
Options
| Flag | Description |
|---|---|
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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-sf ai off
Disable the AI layer (deterministic-only). Keeps the model selection so a later vulkro-sf ai setup restores it
vulkro-sf ai off [OPTIONS]
Options
| Flag | Description |
|---|---|
-v, --verbose... | Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins) |
-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. |
Full vulkro-sf ai --help
Choose and test the local AI model used by the advisory commands.
Configure the local-AI layer for Vulkro for Salesforce: pick a model, point at a runtime, and self-test it. CLI-only, no config files; the selection is stored in `~/.vulkro/scans.db` and is SHARED with the `vulkro` binary, so a model chosen once serves both.
The AI layer is OPT-IN and ADVISORY. It never changes a deterministic finding, its severity, the AppExchange-readiness report, the SARIF / SBOM output, 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 (CLAUDE.md rule 8): 0 success. 2 error (runtime unreachable, model missing and declined, bad args).
Usage: vulkro-sf ai [OPTIONS] <COMMAND>
Commands:
setup Interactive setup wizard: install Ollama if it is missing (only after an explicit y/N, from the official source), 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-sf ai setup` restores it
help Print this message or the help of the given subcommand(s)
Options:
-v, --verbose...
Bump stderr log verbosity. `-v` enables debug-level tracing for the `vulkro` + `vulkro_sf` targets; `-vv` enables trace. Honoured only when `RUST_LOG` is unset (an explicit `RUST_LOG` always wins)
-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')