SushilaDocumentation

Sushila documentation

Sushila runs AI models on your own computer: chat, code, images, music and video. One program, sushila (sushila.exe on Windows), does everything; the web page it serves is the user interface. The commands are the same on Windows, macOS and Linux.

Getting started

  1. Download sushila.exe (Windows) or sushila (macOS, Linux) for your system.
  2. Run it: double-click it, or in a terminal type sushila serve. The first time it installs the engine for your GPU (NVIDIA: CUDA; AMD and Intel: Vulkan; Apple: Metal; otherwise the CPU) and a first model, and asks you to choose an admin password. The first model depends on the computer: Qwen3 4B (about 2.5 GB) with a GPU of 8 GB or more, a Mac with Apple silicon and 16 GB or more, or 16 GB of memory without a GPU (if the disk has room); otherwise Qwen2.5 0.5B (about 535 MB). The log says which one and why.
  3. Open http://localhost:7874/ in a browser (double-clicking opens it for you).

To check that everything works: sushila selftest. It installs what is needed, asks the small model (or the 4B model, if installed) one question and ends with PASS (exit code 0) or says what failed.

All commands

Type them in a terminal. Every command accepts --json (machine-readable output), --quiet and --data-dir <folder>. sushila --help and sushila <command> --help show the details.

CommandWhat it does
sushila (no command, or double-click)Starts the server and opens the web page in the browser.
sushila selftestEnd-to-end check: engine, the small default model (or the 4B one if installed; --pack picks another), one answer. Exit code 0 = everything works.
sushila doctorChecks this computer: GPU, driver, engine build, free disk, the port, the home folder, every pack file's SHA-256, the admin password. Each line says OK, WARN or FAIL, with the command that fixes it.
sushila assistant ["<question>"]Ask Sushila how Sushila works: answers from this documentation and live facts about this computer, by the largest installed text model (no question: keeps asking; /exit ends). Also in the ☰ menu (Ask Sushila) and in the server window. With a model under 3B parameters it quotes the matching sections and their commands instead of writing an answer (small models invent steps); install a 3B+ chat model, e.g. sushila install qwen3-4b-instruct-2507, for answers in its own words.
Engine and model packs
sushila engine installInstalls Sushila.cpp for this computer's GPU (CPU only when there is no usable GPU).
sushila engine install --build cpuForces a build: cpu, vulkan or cuda.
sushila engine infoEngine version, GPU, data folder.
sushila packsThe model packs you can install (--all also lists packs for other hardware).
sushila search <words> [--kind chat|code|image|music|video] [--fits]Finds packs in the catalog by words and kind; --fits: only packs this computer can run.
sushila show <pack>Name, kind, license, size, every file with its SHA-256, what Accelerated adds (precomputed files, engine options, cache plan), installed or not.
sushila license <pack>The pack's license, its link, and the license files in the pack.
sushila install <pack>Downloads a pack and checks the Sushila signature and every file's SHA-256. Several packs at once are fine.
sushila install <file>.sushilapackInstalls a pack file (from a USB drive or another computer), with the same checks.
sushila install my-model.ggufYour own GGUF model: becomes our pack if we precomputed it, else "your own model" (Standard mode).
sushila install hf:<owner>/<repo>/<file>.gguf[@rev]Downloads a GGUF from Hugging Face (checked, revision recorded), then the same as above.
sushila listInstalled packs.
sushila verify [<pack>]Checks every file of installed packs against its SHA-256.
sushila remove <pack>Removes a pack and its files.
sushila update [--check]A newer signed engine and packs whose files changed in the catalog: --check lists them, without it they are installed (only changed files are downloaded).
sushila clean [--dry-run]Removes leftovers: unfinished downloads (only while no server runs), old engine versions, outputs of removed queue jobs, stale checksum cache entries; prints the space freed.
sushila duDisk use per pack, engine, logs, outputs and in total.
sushila export <pack> <file.zip|.tar|.sushilapack>The pack as one file for another computer (with sushila-pack.json).
sushila import <file>Installs such a file; every file's SHA-256 is checked before anything is adopted (signed packs also against Sushila's signature).
sushila convert <hf-repo|folder> [--out file.gguf] [--outtype q8_0]Converts a Hugging Face model to GGUF with llama.cpp's converter (fetched at the version Sushila.cpp builds on) and adds it as your own model. Needs Python and the converter's packages; if they are missing it prints the exact steps.
sushila precompute <pack>Experimental: runs the repository's day-0 landscape pipeline (scripts/day0_landscape.sh) for a text pack; without the repository it prints what is needed.
Serving
sushila serve [<pack>...]Starts the server: web page, API and queue, and the named packs (default: the first installed one).
sushila serve --port 8844Another port (default 7874).
sushila serve --publicReachable from other machines (listens on all addresses); they need an access key.
sushila serve --public --openNo key needed for chat and generation (trusted networks only).
sushila serve --standardPlain models instead of Accelerated (Sushila's precomputed files off).
sushila start <pack> [--standard]Starts a model in the running server.
sushila stop <pack>Stops a model.
sushila stopStops the whole server.
sushila statusWhat is installed, whether the server runs, which models run (Accelerated or Standard).
sushila psRunning models: mode, port, parallel slots, uptime, memory and GPU memory.
sushila top [--interval 2]The same, refreshed every 2 s, with GPU use and the last tokens/s (Ctrl+C ends).
sushila mode <pack> standard|acceleratedSwitches a running model at once; otherwise remembered for its next start.
sushila idle <minutes>|offUnloads models nobody used for that long; the next request loads them again (it waits while the model loads).
sushila limit [--threads N] [--parallel N] [--context N] [--gpu-layers N]Engine limits used when a model starts next (no flags: shows them).
sushila config list | get <key> | set <key> <value>The settings (port, enginePort, threads, contextSize, gpuLayers, parallel, idleMinutes, keepCopy, catalogUrl, ticker), checked before they are saved.
sushila queue [list] | pause [<id>] | resume [<id>] | cancel <id>The running server's background queue (without an id: the whole queue).
sushila history [show <id>]Past queue jobs with prompt, settings, seed, times and the output file.
sushila open [admin|docs|assistant]Opens the page in the browser.
sushila example <pack> [curl|python|js]A working API request for this computer (with its local token) and for other machines (with an access key).
sushila share on [--open] | off | qrOther machines: on makes the next sushila serve listen on the network (keys needed unless --open), off stops sharing at once, qr prints a QR code of the network address for a phone.
sushila https <domain>HTTPS for a domain: writes a Caddyfile (Caddy forwards to this server), allows that host name, prints the steps; offers to start Caddy if it is installed. Installs nothing itself.
sushila homeSushila's home folder: where model-packs, settings, logs and the engine live. Sushila remembers it in one small text file in your own settings folder, which every user can write without admin rights: Windows %APPDATA%\sushila\home (C:\Users\<you>\AppData\Roaming\sushila\home), macOS ~/Library/Application Support/sushila/home, Linux ~/.config/sushila/home. It holds one line, the folder's path, which you can also edit by hand; sushila home prints where it is. Sushila reads it at every start and goes straight there. It is the only file Sushila keeps outside its home folder. If it is deleted, Sushila searches again (and writes it again); if it finds no home, it asks for the folder of your existing home, or starts a new one when you press Enter. The first time, it searches the usual places (the system's app-data folder, next to the program, the current folder, ~/sushila, Documents, Downloads); if it finds several homes it asks which one to use. sushila home <folder> makes another folder the home (replacing the remembered one); sushila home --reset forgets it so the next start searches again; --data-dir <folder> uses a folder for one command only. The home is also printed every time the server starts. (sushila location is the same command.)
sushila urlThe addresses: Inference URL (the page for using models, e.g. http://localhost:7874/), Admin URL (http://localhost:7874/admin, this computer only, password protected), the OpenAI-compatible API, and the address for other machines when serving on the network. The same block is printed every time the server starts, in the terminal or in the window that opens when you double-click sushila.
Generating from the terminal
sushila run <pack> "<prompt>"One answer (printed), or one picture, video or song (saved). Uses the running model if there is one.
... --out file.pngWhere to save; images also take --size 1024x1024 --seed 42, video --size 1280x704 --frames 121, music --lyrics "..." --duration 60 (the prompt is the style).
sushila chat [<pack>] [--standard]Chat in the terminal, streamed; keeps the conversation. /clear forgets it, /save <file> saves it, /exit ends.
sushila ask <file> "<question>" [--pack p]Answers a question about a text, markdown or code file (long files are read in parts). PDF: convert it to text first.
sushila batch <pack> <prompts.txt> [--out <folder>]One prompt per line (# starts a comment): one output each, plus index.json with prompt, seed, settings and seconds.
sushila watch <folder> [--pack p] [--once]Each new .txt file in the folder is a prompt: the output is written next to it, the prompt renamed to .txt.done.
sushila embed <pack> <text|file>An embedding vector (/v1/embeddings). A chat engine does not compute embeddings, so a separate engine with --embeddings is started for it.
sushila bench <pack> [--prompt ..] [--runs 3]Speed on this computer in Standard and Accelerated (tokens/s for text, seconds for images, music and video), the speedup, saved in bench/ in the home folder.
sushila eval <pack> [--n 20]Accuracy on 20 built-in grade-school math questions, in Standard and Accelerated.
Security and logs
sushila passwordSets the admin password, or changes it (asks the current one first).
sushila password --resetLost the password: sets a new one without the old one. Only on this computer.
sushila keys add <name>An access key for another machine or program (shown once; only its hash is kept).
sushila keys list / sushila keys remove <name>Lists or revokes keys.
sushila logs [-f] [-n 40]The log of every action, from the web page, the commands and the queue (-f follows it).
sushila service install [--packs a,b] [--public] [--port N]Starts the server automatically (at boot or login).
sushila service removeStops starting it automatically.
sushila backup <file.zip> / sushila restore <file.zip>Settings, access keys (their hashes), queue history and the admin password hash; never the model packs. Restore with the server stopped.
sushila report [<file>]A zip for bug reports: versions, GPU, settings, the last 300 log lines, crashes. Access keys, tokens and the password hash are removed.
sushila version [--verify]Versions of sushila and the engine; --verify prints this program's SHA-256 and checks it against Sushila's signed list of builds when one is published.
sushila completion bash|zsh|fish|powershellTab completion for your shell.
sushila reproduce [<name>]The commands that reproduce the paper's results (e.g. yue, zimage, wan, llama3.3-70b) and the link to the full guide.
sushila uninstall [--all] [--yes]Removes the start-at-login service and the home pointer; --all also deletes the home folder after listing it and asking.
While a server runs, install, remove, engine install, start and stop are sent to it and you see its progress: the server is the one place that changes anything, so the web page and the commands always agree.

Windows, macOS, Linux

The commands are identical. What differs is how you open a terminal, how you call the program, and a first-run security prompt.

Windows

Terminal: PowerShell, Command Prompt or Git Bash.
In the folder of the file: .\sushila.exe serve
Anywhere: put sushila.exe in a folder on your PATH, then sushila serve.
First run: SmartScreen may say "unknown publisher": More info → Run anyway.

macOS

Terminal: Terminal or iTerm.
chmod +x sushila once, then ./sushila serve
Anywhere: sudo mv sushila /usr/local/bin/, then sushila serve.
First run: if macOS blocks it, System Settings → Privacy & Security → Open Anyway (or xattr -d com.apple.quarantine sushila).

Linux

Terminal: any shell.
chmod +x sushila once, then ./sushila serve
Anywhere: sudo mv sushila /usr/local/bin/, then sushila serve.
NVIDIA: a recent driver is enough (the CUDA runtime comes with the engine).

Serving and the web page

sushila serve runs one web server on one port (default 7874). The page has two tabs:

Every page has the ☰ menu with Inference, Admin (this computer only), this documentation and the API, followed by the four addresses and, on this computer, the home folder: the same lines the server prints when it starts. Each running model's engine listens on an internal port (7875, 7876, …) on 127.0.0.1 only; the server forwards to it, so only the one port is ever exposed.

Accelerated or Standard: Accelerated uses Sushila's precomputed files for the model (faster); Standard is the plain model, as Ollama or stock llama.cpp would run it. Switch on the Use tab, or start with --standard.

The server window

The window where sushila serve runs (it opens when you double-click sushila) takes typed lines:

The ticker. The bottom line of the window scrolls, like an LED message board, one short sentence for every command ("To add a new model pack: sushila install <pack> …", with this server's real addresses), with live news in between (models running and their mode, the queue's job and progress, GPU memory, requests served). Everything else scrolls above it. It starts with its keys: Enter pauses or resumes (paused, the whole message is shown), b goes back one message (and pauses; b again goes further back), n forward, all prints every message, grouped like the command list, with the live news and their times, so you can scroll up and read them. ticker off / ticker on hide or show it; sushila config set ticker off keeps it off. It is off by itself when the output is not a terminal, with --json or --quiet, with TERM=dumb or SUSHILA_TICKER=0, and in windows narrower than 40 columns. Windows: escape sequences and UTF-8 are turned on for the console at start (Windows Terminal and the classic console); where symbols cannot be shown it uses ASCII keys. On exit (stop, Ctrl+C, a crash) the window is left as it was.

Other machines and the internet

sushila serve --public --port 8844      # listens on all addresses
sushila keys add alice                  # prints a key once, e.g. sk-sushila-…
Plain http:// sends keys unencrypted. For use over the internet, put HTTPS in front: Cloudflare Tunnel, Caddy or nginx (any reverse proxy that forwards to the port works).

Admin password

API (OpenAI-compatible)

curl http://localhost:7874/v1/chat/completions \
  -H "Authorization: Bearer <key>" -H "content-type: application/json" \
  -d '{"model":"qwen3-4b-instruct-2507","messages":[{"role":"user","content":"Hello"}]}'
PathWhat
/v1/chat/completions, /v1/completionsText (streaming supported); "model" names a running pack.
/v1/modelsThe running models.
/v1/images/generationsImages.
/v1/video/…, /v1/music/…Video and music jobs (used by the page).
/api/stateInstalled packs, running models, actions in progress.
/api/queueThe background queue.
/healthThe server is alive (200). For process monitors.
/ready200 when at least one model is loaded and answering, else 503. For load balancers.
/metricsPrometheus counters: requests by model and status, requests in flight, 429 refusals, time per request, slots, queue (this computer or a key).

Many users

Any OpenAI client works: base URL http://<server>:<port>/v1 and the access key as the API key.

The model-packs folder

Every model pack is one folder inside model-packs: the model files plus sushila-pack.json (its name, how to run it, every file's SHA-256 and Sushila's signature). Adding a model is just adding a folder:

  1. Download the pack's file (one .zip or .sushilapack per pack).
  2. Unzip it into model-packs, so you get model-packs/<pack>/.
  3. Within a few seconds the running server finds it, checks the signature and every file, and the model is available on the Use and Admin tabs. No restart. The log says new pack in …: <pack> verified and available.

Removing a folder removes the model (it is stopped first if it runs). A folder that fails the checks is listed on Admin → Packs with the reason and is never run. sushila install <pack>, sushila install <file>.zip and the Admin tab create exactly the same folders. Big packs are checked once: a file is read again only if its size or date changes.

WhereWhich folder
Defaultmodel-packs in the data folder (below)
Everything in one place (e.g. a USB drive)a model-packs folder next to sushila / sushila.exe: used when it exists
Anywhere else--packs-dir <folder> or the environment variable SUSHILA_PACKS

sushila engine info shows which folder is used.

Your own model (GGUF)

Any text model in GGUF format (the files Ollama, LM Studio and llama.cpp use, e.g. from Hugging Face) can be added:

sushila install hf:Qwen/Qwen2.5-7B-Instruct-GGUF/qwen2.5-7b-instruct-q4_k_m.gguf     # from Hugging Face (@revision optional)
sushila install C:\Users\me\Downloads\my-model.gguf                                # a file you have

or drop the .gguf file (or a folder holding it) into model-packs, or use Admin → Packs → "Add from Hugging Face".

Files and folders

Created the first time; no administrator rights are needed. The program itself can live anywhere. Two places: your files (pictures, songs, videos) in your Documents folder, where you look for them and your backup (OneDrive, iCloud, Time Machine) already copies them, and Sushila's own folder (model packs, the engine, settings, logs), which is large and belongs to this computer, so it is never synced or roamed.

SystemYour filesSushila's own folder
WindowsDocuments\Sushila (your real Documents, also when OneDrive moved it)%LOCALAPPDATA%\Sushila
macOS~/Documents/Sushila~/Library/Application Support/Sushila
Linux~/Documents/Sushila~/.local/share/sushila

Your files: Images/, Music/ and Videos/, one folder per day. Choose another folder in Settings → Where my files go (with or without moving what is there). If Windows' Controlled folder access (ransomware protection) blocks Sushila from Documents, the page says so and how to allow it; until then the files go to outputs/ in Sushila's own folder.

Before build 27 everything was in %APPDATA%\ai.sushila.hoststation (macOS ~/Library/Application Support/ai.sushila.hoststation, Linux ~/.local/share/ai.sushila.hoststation). The first server start of a newer build moves that folder to the new place, and the page asks once whether to move your pictures, songs and videos to Documents or keep them where they are.

Another place for Sushila's own folder: --data-dir <folder>, the environment variable SUSHILA_HOME, or sushila home <folder>. Inside:

engine/<version>/Sushila.cpp (text, image/video and music engines)
model-packs/<pack>/Installed model packs (one folder each; see above)
logs/sushila.logEvery action, with its source (page, cli, server)
logs/<pack>.logThe engine output of each model
queue.json, outputs-folderThe queue; where your files go (one line, when you chose a folder)
state.jsonSettings, installed packs, what runs (written only by the server)
adminpassword, admin-cli.tokenThe admin password's hash; the commands' private token
downloads/Partial downloads (resumed automatically)

Start automatically

sushila service install uses each system's own service manager:

SystemHowCheck
WindowsTask Scheduler task "Sushila", at logonschtasks /Query /TN Sushila
macOSlaunchd agent ai.sushila.serve, at loginlaunchctl list | grep sushila
Linuxsystemd user service sushila.service (also without a login session)systemctl --user status sushila

Troubleshooting