A command for everything
Type / in the app or the terminal. Explain, review, fix, test, document, optimize or convert code. Summarize, translate or proofread text. The same commands work in both.
KaiLu is a private assistant and coding companion powered by the KaiLu models from KvcHub. It runs entirely on your device — no account, no cloud, nothing you type ever leaves it.
██╗ ██╗ ██╗ ██╗ ██║ ██╔╝ ╚═╝ ██║ █████╔╝ █████╗ ██╗ ██║ ██╗ ██╗██╔═██╗ ██╔══██║ ██║ ██║ ██║ ██║██║ ██╗ ╚██████║ ██║ ███████╗ ╚██████╔╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚══════╝ ╚═════╝ KaiLu Code v1.0.0 · KaiLu 3 Pro · Metal ❯ /retry › /retry Get a different answer to your last message /review [file] Find bugs and risky spots /optimize [file] Make code simpler and faster
Features
KaiLu is built around what a compact, on-device model does well — quick answers, explanations and everyday code — with tools that make it easy to keep going.
Type / in the app or the terminal. Explain, review, fix, test, document, optimize or convert code. Summarize, translate or proofread text. The same commands work in both.
Models run on your hardware and chats are saved only on your computer. KaiLu works on a plane, in a cabin, or behind the strictest firewall.
Metal on Apple Silicon, Vulkan on Windows and Linux. The model loads in your background while you type, so replies start in a fraction of a second.
Every answer ends with suggestions for what to ask next — tests for code, an example for an idea, "continue" when a reply runs long.
Drop a file on the window, or mention @src/app.ts in the terminal, and ask about it. /review and /tests work on it directly.
The app
KaiLu Code
A coding assistant that lives next to your code. It streams answers with syntax-highlighted code panels, suggests commands as you type, and saves code straight to files.
$ npm install -g https://huggingface.co/KvcHub/KaiLu-Downloads/resolve/main/kailu-code-1.0.0.tgz
kailu-code starts a session; / shows every commandgit diff | kailu-code -p "write a commit message"@file attaches a file; /save app.py writes code back██╗ ██╗ ██╗ ██╗ ██║ ██╔╝ ╚═╝ ██║ █████╔╝ █████╗ ██╗ ██║ ██╗ ██╗ ██╔═██╗ ██╔══██║ ██║ ██║ ██║ ██║ ██║ ██╗ ╚██████║ ██║ ███████╗ ╚██████╔╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚══════╝ ╚═════╝ ╭─ KaiLu Code v1.0.0 ──────────────────────────────────────────────╮ │ ◒ Your private coding assistant. Runs on this computer. │ │ │ │ model KaiLu 3 Pro · q8_0 │ │ memory 1,024 tokens │ │ engine llama.cpp · Metal · Apple M5 Pro │ │ folder ~/projects/my-app │ ╰──────────────────────────────────────────────────────────────────╯ @file attach · /help commands · """ multi-line · ctrl+c stop ❯ write a python function that checks if a number is prime ◒ ╭─ python ─────────────────────────────────────────────────────────── 1 │ def is_prime(n): │ if n < 2: │ return False │ for i in range(2, int(n**0.5) + 1): │ if n % i == 0: │ return False │ return True ╰────────────────────────────────────────────────────────────────────── This function works by checking if the number n has any divisors other than 1 and itself. If n is divisible by any number in this range, it's not a prime number. If n is not divisible by any of these numbers, it's a prime number. You can use this function like this: ╭─ python ─────────────────────────────────────────────────────────── 2 │ print(is_prime(25)) # False │ print(is_prime(23)) # True ╰────────────────────────────────────────────────────────────────────── KaiLu 3 Pro · 118 tokens · 124.6 tok/s · memory ▰▰▱▱▱▱▱▱▱▱ 23% ↳ next /explain · /tests · /review · /doc · /save <file> ❯ /tests › /tests [file] Write unit tests /temp <0-2> Set creativity (lower is more focused)
Models
Every model comes from KvcHub on Hugging Face and is checked against its published SHA-256 before it runs. Download once; use offline forever.
The newest KaiLu. Best all-rounder for chat, writing and code.
The largest KaiLu. Reasons step by step in <think> for math, code and logic. 4K context.
Tiny and quick. For older or low-memory computers.
The first KaiLu, kept for comparison. Superseded by KaiLu 2 and 3.
These are small models. They're great for quick questions, explanations and everyday code, and they can be wrong — check anything important.
How it works
Download the app for your computer, or install KaiLu Code with npm.
KaiLu downloads it once from Hugging Face — about 1 GB — and verifies every byte.
From now on everything runs on your device. No account, no subscription, no internet needed.
Download
Version 1.0.0 · Free
Works on macOS, Windows and Linux with Node.js 20+.
$ npm install -g https://huggingface.co/KvcHub/KaiLu-Downloads/resolve/main/kailu-code-1.0.0.tgz
These builds aren't notarized by Apple yet. On macOS, open KaiLu App once, then go to System Settings → Privacy & Security and choose Open Anyway. On Windows, if SmartScreen appears, choose More info → Run anyway.
FAQ
Yes. KaiLu App and KaiLu Code are free for personal and commercial use under the KaiLu App and KaiLu Code License — just don't use them for anything malicious. Each model has its own license, shown on its card: KaiLu 2 and KaiLu 1 are Apache 2.0, and KaiLu 3 Mini is for personal, non-commercial use.
Only once, to download a model from Hugging Face. After that KaiLu works completely offline.
Yes. The model runs on your computer and chats are saved only there. KaiLu doesn't have an account system or a server to send anything to.
A Mac with Apple Silicon or Intel, or a 64-bit Windows or Linux PC, with 8 GB of memory and about 2 GB of free disk space. A GPU helps but isn't required.
KaiLu's models are small — around one to two billion parameters — so they're fast and private, and best at quick questions, explanations, short code and writing help. They can be confidently wrong, so double-check anything that matters.
KaiLu App is a desktop chat app. KaiLu Code is the same assistant in your terminal, made for working with code and files. They share the same models, so a model downloaded by one is ready in the other.