Forgot the command? Just ask.
A Linux command assistant that runs on your own machine:
no Ollama, no Docker, no root, no API key, no cloud, no account.
$ lxask "show disk usage of each folder here, biggest first"
$ du -h --max-depth=1 . | sort -hr
- π Private and offline. Everything runs locally on your CPU. Nothing you ask leaves your machine.
- β‘ Small and fast. About 1 GB, no GPU needed; about 2 seconds per answer once loaded (the installer offers to keep it loaded).
- β Checks its own work. Every command is checked against the man pages and tldr, and anything it can't confirm is flagged. The check proves the programs and options exist and the line can run, not that it does what you meant (what it can't tell you).
- β¨οΈ Right on your prompt. Type what you want, press Ctrl+G, and the line becomes the command.
- πΎ Runs on very little RAM. About 1.3 GB at its peak, measured while answering questions.
curl -fsSLO https://github.com/arxhr007/lxask/releases/latest/download/install.sh
sh install.sh # about 1.1 GB, once; no root needed
lxask "find files bigger than 1GB in my home folder"For Ctrl+G, add one line to ~/.bashrc (or zsh in ~/.zshrc):
eval "$(lxask --shell-init bash)"For fish, add lxask --shell-init fish | source to ~/.config/fish/config.fish instead.
64-bit Linux on x86_64 or ARM64 with glibc 2.28+: Debian, Ubuntu, Fedora, Arch, openSUSE and most others, and a Raspberry Pi 4 or 5 with 2 GB or more (which boards). On a Mac it is built from source (macOS); its answers are still Linux commands. More in docs/install.md, including how to check the installer against the release checksums first.
install.sh only downloads files and puts them in place, so you can do the same yourself:
-
From the latest release, download one program (
lxask-x86_64-v3for x86 PCs since about 2015,lxask-x86_64for older ones,lxask-aarch64-dotprodfor ARM64 with dot product such as the Pi 5,lxask-aarch64for other ARM64), pluslxask-round4-Q4_K_M.gguf,restrict-round4.gguf,precision-round4.gguf,embed.gguf,docs.sqliteandSHA256SUMS. Check them withsha256sum -c --ignore-missing SHA256SUMS. -
Put the program on your PATH as
lxask:install -D -m 755 lxask-x86_64-v3 ~/.local/bin/lxask -
Put the rest in
~/.local/share/lxask/under these names:mkdir -p ~/.local/share/lxask mv lxask-round4-Q4_K_M.gguf ~/.local/share/lxask/model.gguf mv restrict-round4.gguf ~/.local/share/lxask/restrict.gguf mv precision-round4.gguf ~/.local/share/lxask/precision.gguf mv embed.gguf docs.sqlite ~/.local/share/lxask/ echo "serve = auto" > ~/.local/share/lxask/settings # optional: keeps it loaded, ~2 s answers
Already downloaded the files? sh install.sh --from DIR does steps 2 and 3 from that
folder, without the network.
Explains every part of a command, handles several steps in one request, keeps restrictions like "without lsof", asks back when a request is vague, and flags what it can't confirm. Real answers, mistakes included: docs/examples.md.
On questions it was never trained on, lxask picks the right tool for 96-99% of everyday tasks. Run for real in a sandbox, 87% of its commands for hand-written file and text tasks work as they are (75% on a harder generated set). When it misses, it is usually by a detail, a flag or a field number, which is why it explains every part and flags what it can't confirm.
On the public NL2SH-ALFA test (300 shell tasks run in Docker by the InterCode-ALFA harness), lxask solves 62% (95% CI 57-68%) against 54% (CI 48-60%) for the untuned Qwen2.5-Coder-1.5B it was trained from, given three worked examples (paired McNemar p = 0.003). Restricted to the 237 tasks with no overlap with its training sources: 61% vs 54% (p = 0.02). The benchmark authors publish 73% for GPT-4o, a hosted model; that number is theirs and was not re-run here. The gain over the untuned model comes from fine-tuning, not from the retrieval and retries around it, which change nothing on this set (details).
Why this base model: newer small models were tested untuned on the same benchmark, with the same three examples. Gemma 4 E2B solves 58% (not a significant difference) but needs about 2.6 times the memory and is almost twice as slow; Ternary Bonsai 2 9B ties at 54% but takes about 9 s per answer against 1 s on CPU; Qwen3.5-2B solves 43% and LFM2.5-1.2B 21% (the numbers).
We publish the misses too: the mistakes from the examples run and every measurement.
Qwen2.5-Coder-1.5B fine-tuned on tldr-pages, NL2Bash and questions and answers written by language models (every command validated), then reinforcement learning on commands run in a sandbox. The data: docs/development.md.
| lxask | hosted AI assistants | tldr | man | |
|---|---|---|---|---|
| no network, account or API key | β after installing | β | β | β |
| ask in plain words | β | β | β look up by name | β |
| checks its answer against the docs | β flags what it can't confirm | not as a rule | (it is the docs) | (it is the docs) |
| keeps "without X", asks back on vague requests | β | varies | β | β |
| runs commands for you | never | some can | no | no |
| local size | 1.1 GB disk, 1.3 GB memory at peak | none, or a large model | small | built in |
It is a 1.5B-parameter model, not a giant hosted one: a fast, private first answer for everyday Linux work, not a replacement for knowing your system.
| runs offline after installing | needs an account or API key | checks its answer against the docs | |
|---|---|---|---|
| lxask | β | none | β , and says when it cannot confirm |
| Ollama and a prompt | β , after you install Ollama and pull a model | none | β |
| GitHub Copilot CLI | β, it is an online service | a GitHub account and a Copilot plan | β |
| aichat | only against a local server, such as Ollama | an API key for the cloud providers | β |
| shell-genie | β, it is an online service | an OpenAI key, or the author's own backend | β |
| tldr, man | β | none | it is the docs |
Ollama and aichat are general chat CLIs: you can ask either one for a command, but neither is tuned for the job, knows your distribution or checks what it answers against the manual. Copilot CLI and shell-genie send your question to a service. lxask is a small model fine-tuned on this one task, keeps a "without X" restriction you state, and asks back when a request is too vague to answer.
- The model files are on Hugging Face: arxhr007/lxask (the 986 MB chat model, the 37 MB adapters, checksums and a model card). The installer downloads them for you; you only need that page to run the model in your own llama.cpp setup.
- Kept loaded between questions (the installer asks; on by default), answers take about
2 s instead of about 7; it frees its memory after 30 idle minutes.
serve = offin~/.local/share/lxask/settingsturns that off. lxask --bad "what was wrong"saves a wrong answer on your machine;lxask --shareturns it into a GitHub issue you can submit. Nothing is sent otherwise.lxask --command-only "..."prints just the command, for scripts.lxask --explain "tar -xzvf logs.tar.gz"explains a command you already have, part by part, from the man pages and tldr, and checks it; no model is loaded, so it is instant.- One model for a homelab:
lxask --serve --listen 0.0.0.0:7871on one machine, and every other machine or container needs only the program, withLXASK_SERVERand the token (usage).
| docs | |
|---|---|
| Install | platforms, checksums, offline install, upgrade, uninstall |
| Examples | real answers, and the mistakes from the same run |
| Usage | reading an answer, options, Ctrl+G, the server, feedback |
| Configuration | files and environment variables |
| How it works | retrieval, the checks and retries, explanations |
| Architecture | diagrams of the components and the build |
| Accuracy and limits | every measurement, where it goes wrong, speed |
| Development | building, training data, measuring |
Found a wrong answer or a bug? CONTRIBUTING.md Β· Security: SECURITY.md
Made by Aaron Thomas (arxhr007, website).
Code: MIT (LICENSE).
Model weights: a fine-tune of Qwen2.5-Coder-1.5B-Instruct (Apache 2.0).
Training data: human-written tldr-pages (CC BY 4.0) and NL2Bash (GPL-3.0), plus questions and answers written by language models. Evaluation: hand-written sets (46 execution tasks, 10 multi-part requests, 70 everyday questions), human-written NL2Bash and tldr held-out pairs, and held-out parts of the model-written data.
The weights, the training pipeline, the training data and the evaluation sets are all published. The model-written data was kept out of the public repository when it first opened (2026-10-19) and added on 2026-10-21, so the model can now be retrained and every number re-measured from a clone. How it was made and filtered: Development.
Documentation index used for answers: tldr-pages (CC BY 4.0) and the man pages of an Ubuntu installation, each under its own licence. Commands are also checked against the man pages installed on your machine, where it has them.
Details for each part: NOTICE.
