GuidesLocal AI

Local AI ​

Vaultport can turn a plain-language request such as "find the 10 largest files in /var/log" into a shell command — using a small language model that runs entirely on your device. It is off by default and completely optional; every other feature works without it.

Turning it on ​

  1. Settings → Local AI → Enable local command generation.
  2. Download model. The model is downloaded once; afterwards everything works offline.
DeviceModelDownload sizeLicense
DesktopQwen2.5-Coder 1.5B Instruct (Q4_K_M)≈ 1.1 GBApache-2.0
Phones and tabletsQwen2.5-Coder 0.5B Instruct (Q4_K_M)≈ 490 MBApache-2.0

Remove model deletes every file the feature created.

Android

Android builds include the inference engine on 64-bit devices (arm64-v8a, and x86_64 for emulators and Chromebooks) and use the smaller model, like iPhone and iPad. On 32-bit Android devices (armeabi-v7a, x86) the engine is not built in and Local AI reports itself as unavailable: those devices rarely have the memory for a language model.

Using it ​

In the terminal:

  • press Ctrl+` to open the AI command bar, or type # what you want at the prompt and press Enter;
  • after a command fails, click its exit-status badge and choose Fix with AI: the model sees the command, its exit status and the end of its output, and suggests a corrected command.

Tab puts the suggestion on the prompt, Mod+Enter runs it — nothing runs unless you choose to. See The terminal.

Or open the terminal side panel (Mod+.) and choose AI:

  1. Describe what you want to do. Optionally use selected terminal text as context, for example an error message.
  2. Generate command. You get one command with a short explanation and a risk rating (low, medium, high, critical) from Vaultport's deterministic risk checker.
  3. Insert into terminal. The command is typed at the prompt — never executed. Review it and press Enter yourself.

The model gets the terminal's context: the operating system of the host (or this computer), the working directory and the last few commands (with shell integration), and — if you choose — the selected terminal text.

In the Snippets editor, Generate script from description drafts a multi-line snippet the same way.

Not autocomplete

AI is never used for autocomplete. Completion is a separate, deterministic engine — see Snippets & autocomplete.

Privacy ​

  • No data leaves the device for inference. Prompts, terminal context and generated commands stay in memory; they are not logged or stored.
  • The only network traffic is the one-time download you start: anonymous HTTPS requests to Hugging Face and its CDN, with a generic user agent, no cookies, no tokens and no telemetry.

Security ​

  • Each model file is pinned to an immutable Hugging Face commit, with its exact size and SHA-256; a file that does not match is rejected. Downloads are HTTPS-only to an allow-list of hosts, re-checked on every redirect, and can be resumed.
  • Model output is constrained by a grammar to a fixed JSON shape and validated: control characters, NUL bytes, bidirectional-override characters, multiple lines in single-command mode and oversized output are rejected.
  • Text that comes from the remote host is treated as untrusted data — sanitized, size-capped and clearly framed as data in the prompt — to blunt prompt-injection attempts.

Performance ​

Inference uses llama.cpp on the CPU; Apple silicon builds can offload to the GPU through Metal. Speed depends on your hardware, which is why phones and tablets use the smaller model.

Android builds target the baseline instruction set of each ABI (ARMv8.0 on arm64-v8a), so they run on every device, including phones with older Cortex-A53 cores. Newer phones would be faster with the ARMv8.2 dot-product instructions, which the build does not assume.

On Windows on ARM, the engine needs the ARMv8.2 dot-product instructions, which every Windows 11 ARM device has (Snapdragon 850 and later). On a processor without them, Local AI reports itself as unavailable instead of starting.