hfo CLI reference
Every TUI capability ships a non-interactive flag that prints plain text and exits with a non-zero status on failure. Script any step — install, backup, restore, tune, launch — from CI, cron, an editor plugin, or a shell alias.
Commands at a glance
| Command | Description |
|---|---|
hfo | Open the fullscreen TUI (Dashboard tab) |
hfo <repo> | Open the TUI pre-filled on the Install tab |
hfo --view | Print hardware profile, capacity score, tier, picks, HF search URLs |
hfo --list | List installed models + orphan GGUFs on disk |
hfo --tune | Persist the ~90% capacity Ollama env profile, restart the daemon |
hfo --backup <tag> | Create a .zip backup of the model's folder |
hfo --restore <zip> | Extract a backup, regenerate Modelfile if needed, re-register with Ollama |
hfo --delete <tag> | Remove the tag from Ollama (shallow) |
hfo --delete <tag> --deep | Remove the tag AND delete its on-disk folder |
hfo --launch <integration> | Run ollama launch <integration> with the chosen model |
hfo --tab <name> | Open the TUI on dashboard · models · install · tune · help · settings |
hfo --help · -h | Print the full flag reference |
hfo --version | Print hfo vX.Y.Z · MIT · <author> |
Flags
| Flag | Purpose |
|---|---|
--dir · -d | Base directory for the install file browser. Default: settings.modelDir → process.cwd() |
--token · -t | Hugging Face token for gated/private repos. Falls back to $HF_TOKEN |
--code · -c | Mark the install as code-specialized (SYSTEM prompt tweak) |
--ctx | Force context size. Default: auto — 8192 if fits in VRAM, else 4096 |
--model | Model tag to pass to --launch |
--deep | Deep-delete (removes the tracked directory too) alongside --delete |
--no-fullscreen | Disable the alt-screen buffer (helpful on legacy terminals) |
Examples by task
Install a specific repo, no TUI
Back up and restore models
Tune Ollama env to ~90% of capacity
Launch a coding agent with a local model
Supported launch targets: claude, cline, codex, copilot, droid, hermes, kimi, opencode, openclaw, pi, vscode. Unsupported targets on your installed Ollama version are probed at runtime against ollama launch --help.
List and clean up
Exit codes
- 0 — success
- 1 — generic runtime error (message on stderr)
- 2 — invalid flag / unknown launch target
- 130 — interrupted by Ctrl+C (SIGINT)
- 143 — terminated by SIGTERM