Install#
Needs Python 3.11–3.14 (3.12 recommended).
pip install imurun # then: imurun
npx imurun # or: npm i -g imurun && imurun- pip installs the
imuruncommand. 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, andimurun --get-engineor 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
~/, installs the matching.imurun/ venv imurunversion 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
~/(override with.imurun 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 updatedoes it from a terminal). If you are on 0.3.0 or 0.3.2, upgrade once by hand withpip install -U imurunornpm 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#
# Windows macOS Linux
run.bat ./run.command ./run.shEach 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/. Releasing:
docs/.
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-Afterasks for). Bad keys, no credits and a model that is gone are not retried.IMURUN_REMOTE_RETRIES=<total tries>tunes it (1turns 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 (
/, Ctrl/Cmd+M,model /), the hosted model's real context window read from the provider, an Access level next to the composer (Manual / Ask for changes / Auto, alsoconnect /), 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).permission
Build the engine#
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>.ggufCopy build/ (libfish.so, libfish.dylib) to bin/.
Layout#
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 scriptsWorking 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.