Getting started

Local-first AI chat with its own inference engine. One process, no cloud by default: a C++ engine (FISH) runs GGUF models on the CPU, and on a GPU through Vulkan where one is available (tested on NVIDIA only so far), a Python server hosts sessions, tools and connectors, and a vanilla-JS "Liquid Paper" UI opens in a native window or your browser. Windows, macOS and Linux. On macOS the engine runs on the CPU only (the Mac build has Vulkan off and there is no Metal backend), and Apple Silicon now has NEON kernels (0.3.4): on GitHub's Apple Silicon runner they run 14-29x faster than the scalar code Macs used before; whole-model tok/s on a Mac is not measured yet, and there is still no GPU on a Mac.

On this page6 sections

Install#

Needs Python 3.11–3.14 (3.12 recommended).

text
pip install imurun            # then:  imurun
npx imurun                    # or:    npm i -g imurun && imurun
  • pip installs the imurun command. Wheels for Windows x64, Linux x64 (glibc 2.28+) and macOS arm64 include the FISH engine; on other platforms pip installs the app without it, and imurun --get-engine or a source build supplies it. pip install "imurun[window]" adds the native window.
  • npm is a thin launcher with no dependencies: it finds Python, creates ~/.imurun/venv, installs the matching imurun version from PyPI there, and runs it. If Python is missing it tells you how to install it.
  • Everything IMURUN writes (sessions, models, logs, settings) goes to ~/.imurun (override with IMURUN_DATA_ROOT).
  • Upgrading: the latest release is 0.3.4 (PyPI and npm). From 0.3.3 the app checks for new releases itself and offers them (imurun update does it from a terminal). If you are on 0.3.0 or 0.3.2, upgrade once by hand with pip install -U imurun or npm i -g imurun@latest.

Flags: --window (native window via pywebview, default when installed), --browser, --no-open, --port N, --model path.gguf, --version, --get-engine.

From source#

text
# Windows            macOS                 Linux
run.bat              ./run.command         ./run.sh

Each script creates .venv, installs requirements.txt, and starts the server (python start.py, which takes the same flags as imurun). Full setup and troubleshooting: docs/setup/README.md. Releasing: docs/setup/RELEASE.md.

Models are downloaded from the Models tab (Llama 3.x, Mistral, Qwen 2.5/3/3.5, Phi-3, Gemma 2, DeepSeek-R1 distills, Mixtral…) or placed in models/. Optionally, a hosted model (NVIDIA, OpenRouter, DeepSeek, OpenAI, Groq, Together, Mistral or any OpenAI-compatible server) can answer instead, with your own key; then replies need the internet and the provider sees what you send (Use hosted models).

Engine in one paragraph#

FISH memory-maps a GGUF, keeps weights quantised, quantises activations to int8 once per matmul and runs AVX2 integer dot products (scalar fallback elsewhere). Chat templates are applied structurally inside the engine (user text can never inject control tokens), a KV prefix cache makes repeated system prompts free, and when a model is larger than free RAM the next layer's pages are prefetched while the current one computes. Supported architectures: llama (incl. Mistral, DeepSeek distills, Mixtral MoE), qwen2/qwen3 (+MoE), qwen35 (Qwen3.5, hybrid Gated DeltaNet), phi3, gemma2. A Vulkan GPU backend runs whole layers on the GPU for as many layers as fit (GPU). Details, limits and numbers: Models, Benchmarks.

What it is not (yet): a VRAM/NVMe tiered streamer with an expert-level cache, or a GPU engine on macOS — see the roadmap.

What's new (2026-11-09)#

  • Qwen3.5 (qwen35) now gives correct answers. On an RTX 3050 4 GB laptop GPU, Qwen3.5-2B Q4_K_M decodes at ~32-36 tok/s and prefills at ~149 tok/s. Its matmuls run on the GPU one at a time; the DeltaNet recurrence runs on the CPU. Not yet for this family: whole-layer GPU spans, prefix-cache reuse between chat turns (each turn re-prefills), speculative decoding.
  • Hosted models retry passing failures. A 429, a 5xx / "overloaded", a timeout or a dropped connection is retried up to 5 times, waiting 2, 4, 8, 16, 30 s (or exactly what the provider's Retry-After asks for). Bad keys, no credits and a model that is gone are not retried. IMURUN_REMOTE_RETRIES=<total tries> tunes it (1 turns it off). The app does not show the retry in the chat yet.
  • Windows Smart App Control: when it blocks an unsigned engine build, IMURUN now says so and what to do, instead of a raw WinError 4551 (troubleshooting).
  • Hosted model picker (/model, Ctrl/Cmd+M, /connect), the hosted model's real context window read from the provider, an Access level next to the composer (Manual / Ask for changes / Auto, also /permission), a Plan mode that only uses read-only tools, skills installed from a GitHub link, Copy and Edit-and-resend on your own messages, and an OpenAI-compatible API for other apps (Use IMURUN from other apps).

Build the engine#

text
cd model/fish
cmake -G Ninja -B build -DCMAKE_BUILD_TYPE=Release   # GCC/Clang; MSVC not supported
ninja -C build
./build/fish_test_m1 ../../models/<model>.gguf
./build/fish_test_m2 ../../models/<model>.gguf

Copy build/fish.dll (libfish.so, libfish.dylib) to bin/.

Layout#

text
imurun/                          the `imurun` command (pip); setup.py bundles the app into it
npm/imurun.js, package.json      the npm launcher
start.py, install.py, run.*      launchers and installer
model/fish/                      FISH engine (C++), tests in model/fish/test
model/*.py                       ctypes bindings and model client
services/                        server, turns, sessions, tools, connectors, safety
frontend/design-lab/             UI (no build step)
docs/                            documentation index: docs/README.md
tests/                           runnable engine/server scripts
archive/                         retired one-off scripts

Working on it? Read CLAUDE.md (applies to humans and CLI agents alike).

Security#

Loopback-only bind, per-run bearer token injected into the page (never in URLs or logs), 1 MB body cap, Host-header check, strict CSP (default-src 'self'), OAuth tokens in the OS keychain, approval cards for write actions.

MIT License — see LICENSE.