TurboLLM
Run any local LLM engine, auto-tuned to your GPU — with a polished web UI
and an OpenAI/Anthropic-compatible API.
Bring your own llama.cpp fork. No compiling. No Electron. No Python. Point Claude Code at
your own machine in one command — fully offline.
Source-available under FSL-1.1 — free for personal and
internal business use; every release converts to Apache-2.0 two years after it ships.
npx turbollm
That one command starts a local daemon, opens a browser UI, and serves your models over an
API any tool can talk to. TurboLLM is the performance & bleeding-edge layer for local
LLMs — built for people who today hand-compile forks and hunt forums for the right flags.
The speed is measured, not promised: 74.7 vs 61 t/s on the same official llama.cpp as
LM Studio — and 2.2× on forks it can’t load (the numbers).
📖 Full docs · what runs on your GPU · model picks → turbollm.dev
Contents
Why TurboLLM
Local-LLM tools make two choices for you, and both cost you performance:
- They pick the engine. LM Studio ships one blessed runtime; Ollama hides the engine
entirely. The fastest community innovations — new quant formats, speculative decoding,
low-bit KV cache — land in forks first, and you can’t use them without compiling.
- They don’t tell you what speed to expect, and they don’t tune the dozens of launch
flags (
-c, -ngl, --n-cpu-moe, KV type, threads, flash-attn, draft models) that make
the difference between 20 and 80 tokens/sec on the same hardware.
TurboLLM does the opposite:
- 🔌 Any engine, including forks. Point it at any
llama-server-compatible binary — a
build you compiled, a community fork, or the one it auto-provisions for your GPU. It probes
the binary’s real capabilities and adapts the UI to them. This is the whole point.
- ⚡ Auto-tuned to your hardware. It benchmarks on load, derives fast defaults, and shows
a VRAM-fit verdict before you load — no more flag guessing.
- 📊 Real tokens/sec, never faked. Speed in the model list is measured on your machine
from actual generation — live while you chat, and remembered per model.
- 🪶 Lightweight. A ~7 MB npm package on Node — no Electron, no bundled Chromium, no
Python. It downloads only the engine your GPU actually needs (Vulkan ≈ 38 MB).
- 🔌 Drop-in APIs. OpenAI and Anthropic-compatible — so Claude Code and every existing
tool work unchanged.
- 🔀 A gateway that loads models for you. Name any model in your API request and TurboLLM
loads it on demand, keeping your favorites hot in a small pool — so an agent that hops between
models just works, with nothing to pre-wire.
- 🔒 Offline-first & private. No account, no backend, no internet required. Telemetry
defaults to on (usage + benchmarks + crash reports) so setup issues and real-hardware speed
get found — change your level any time in Settings, and see exactly what leaves your machine,
verified in Privacy.
Who this is for — and who it isn’t
It’s for you if:
- you’re tired of hand-tuning
-ngl / KV / offload flags for every model and never trusting
the speed number;
- you want community forks (low-bit KV cache, NextN speculative decoding, new quant formats)
on day 0 — without compiling anything;
- you’re pointing agents or Claude Code at a local model and want that to be one command;
- you already have folders of GGUFs from LM Studio / Ollama and refuse to re-download them.
It’s probably not for you if:
- you want a zero-terminal, one-click desktop installer — TurboLLM currently needs
Node ≥22 and one terminal command (a packaged installer is planned);
- you’re happy with a single blessed runtime and stock settings — LM Studio and Ollama
already serve that well;
- you need training or fine-tuning — TurboLLM is inference only.
Speed: TurboLLM vs LM Studio
Same GPU (RTX 5070 Ti 16 GB), same model, same 200K context — measured generation speed.
TurboLLM is faster than LM Studio on the very same official llama.cpp, and faster still when you
run a community fork LM Studio can’t.
① On official llama.cpp, TurboLLM is faster. It auto-provisions a GPU-native engine build (CUDA
13 for Blackwell here) and tunes expert-offload to the layer, so at the same KV-cache quant it
beats LM Studio’s bundled runtime:
| Qwen3.6-35B-A3B · 200K |
TurboLLM |
LM Studio |
Speed-up |
official llama.cpp — q4_0 |
74.7 t/s |
61.0 t/s |
1.2× |
official llama.cpp — q8_0 |
72.3 t/s |
~66 t/s* |
1.1× |
② Run a faster engine and pull far ahead. Because TurboLLM runs any engine, you can drop in
the TurboQuant fork — a llama.cpp fork with a low-bit turbo4 KV cache that LM Studio simply
can’t load — in one click. On a large-KV model it delivers q8_0-level quality at more than
double the speed:
| Qwen3.6-27B · 200K · matched quality |
TurboLLM + TurboQuant |
LM Studio |
Speed-up |
turbo4 vs q8_0 |
24.6 t/s |
11.4 t/s |
2.2× |
Same run, 1.7× faster prefill too (1288 vs 757 tok/s).
*LM Studio’s q8_0 mildly spilled VRAM at its best offload. A low-bit KV cache helps most
when the cache is large; TurboLLM’s auto-tuner and on-screen measured t/s pick the fastest engine +
config for each model, so you don’t have to.
Features
The headline — running any engine, including community forks —
has its own section below. Everything else is grouped here; each summary is the gist, expand for
the detail:
📦 Models — bring your own, or browse Hugging Face
- Use the folders you already have. Point TurboLLM at any directory of GGUFs — your
existing LM Studio folders or manual downloads — no re-downloading. It parses GGUF
metadata (arch, params, quant, context, vision) for every file. (Models pulled by
ollama pull live in Ollama’s own blob store, which TurboLLM doesn’t read.)
- Browse & download from Hugging Face, in-app: a live, sortable list (trending / downloads
/ likes / recently updated / newest) alongside a permanent detail pane — pick a quant, read
the rendered model card, and download with pause / resume + SHA-256 verification. Each model
lands in its own folder (mirroring Hugging Face’s own layout) with its vision projector and
every shard of a split/multipart quant fetched alongside it automatically. Gated models
(Llama, Gemma) work via your own HF token, which never leaves your machine.
- Import from any URL — not just Hugging Face. Paste a direct
.gguf link (model-author
sites, mirrors, private servers) and it disk-space-checks and downloads through the same
manager; paste a Hugging Face model page link instead and it opens that repo’s quant
picker so you can choose which one to download.
- Pause and resume downloads — pause one download or all of them, close TurboLLM, and resume later from the exact
byte; a download cut off by a restart comes back as Paused. Discard deletes a paused or failed download’s partial file
(it asks first above 50 MB).
- Hide a model from the Library and every model picker (a model’s ⋯ menu → Hide; “Show hidden models” brings them
back). A hidden model keeps its files and settings and still loads when something names it, such as an API client, a
routine or
launch --model.
- Show models for every engine (Settings → Models & loading, off by default) — list every model in the Models
screen, the pickers and
/v1/models, also those the selected engine isn’t expected to run. A model still loads only
on the selected engine.
- Search in the Load a model picker (Chat, Code, the terminal toolbar) — type to filter by name, quant, machine or
repo; arrow keys and Enter pick a model.
- Default KV cache types (Settings → Models & loading → Advanced) — pick the K and V cache type a model loads with
when it has none saved of its own (q8_0 roughly halves KV memory, q4_0 quarters it). Automatic keeps f16 (q4_0 on
Android); the list is the selected engine’s.
- Quant recommendation per GPU and a VRAM-fit verdict so you pick a quant that
actually fits before you commit.
- Primary download folder, real-time measured t/s per model, delete-from-disk, and
pin your favourites to the top of the list.
⚡ Auto-tuning & performance
- Auto-benchmark on load derives fast defaults for your exact GPU.
- Recommended sampling from Hugging Face — auto-tune checks a repo’s structured params /
generation_config.json sidecar first when the quantizer publishes one (exact values, no
guessing), then falls back to reading the model’s card (and the original model behind a
requant) and prefills the author’s recommended temperature / top_k / top_p / min_p. No
recommendation → your sampling is left untouched.
- Real measured tokens/sec in the model list — live while generating, last-session
when idle (never a synthetic estimate).
- Full load-parameter UI, a superset of what other tools expose: context length, GPU offload
(
-ngl), MoE CPU-offload (--n-cpu-moe), parallel slots, independent K and V cache-quant
type (incl. low-bit on supporting forks), CPU threads, flash attention, speculative decoding
(NextN / MTP / draft / DFlash, with a configurable draft min/max window), a pinned engine port per
model, and a custom/raw flags field for anything not exposed as its own control.
- Copy the exact launch command for a loaded model — runs the same config standalone with
llama.cpp/the fork directly, no TurboLLM required.
- Auto-fit GPU layers / MoE offload — an optional toggle (off by default) that hands the
GPU/CPU split decision to llama.cpp’s own memory-fitting logic at load time instead of a fixed
number, honored by Auto-tune too. Useful when a large context or model doesn’t fit your usual
fixed setting.
- Fast by default: flash attention on, NextN self-speculative decoding on for models that
carry a draft head, threads auto — safely gated to what your engine actually accepts.
- Multi-GPU, per model — split a model across cards (layer/row split + main-GPU pick on
llama.cpp, tensor-parallel on vLLM). Defaults are no-ops, so single-GPU rigs are untouched.
- Saved per-model profiles, per engine — tune once per (model, engine) pair, so
switching engines (or between two installs of the same engine, e.g. a fork) never
overwrites another engine’s tuning for the same model.
- Named load presets, many per model — keep “max speed 32k” and “200k long context”
side by side instead of the second tune overwriting the first. Pick one from the Model
Detail panel to fill the load parameters (it’s remembered and auto-applied on the next
load), Save as… captures the current settings, and rename/delete live in the ⋯ menu.
Auto-tune mints a preset every time you save one — named
Auto-tune <date> and badged
with its measured tok/s — so every tune becomes browsable, restorable history rather than
a one-slot overwrite. The ten newest auto-tune presets are kept; your own saves are never
pruned. Existing profiles carry over as presets automatically, and a model with no presets
behaves exactly as before.
- Configurable VRAM headroom (Settings → Models & loading → Advanced, 300 MB–2 GB, default
1 GB) — tell auto-tune how much VRAM to keep free for other GPU workloads instead of a fixed margin.
Drag it to 0 to opt into an experimental MoE “VRAM-spill” search — auto-tune keeps pushing more
experts onto the GPU past the safe margin as long as both generation and prompt-processing speed
keep improving.
💬 Chat & agentic tools — a genuinely good UI, not an afterthought
- Streaming with a stop button, live tokens/sec, prompt-processing % and
prefill t/s, time-to-first-token, total time, exact token counts, and a
context-usage meter (filled / max) on every reply.
- Thinking control — toggle reasoning off for a direct answer, or leave it on with
collapsible, timed “thought for N s” blocks that grow with the reasoning; drag a block’s bottom
edge to size it once and every block remembers it.
- Find in chat — Ctrl/Cmd+F (or the header’s search button) searches the open conversation:
“3 of 17”, Enter or the up/down buttons jump between matches and pan the chat to each, Esc closes.
- Voice — talk to it, and have it talk back, without anything leaving your machine. The
microphone in the chat box records a message and stops by itself when you finish speaking;
whisper.cpp turns it into text you can read and fix
before sending. Settings → Voice sets it up: one click installs whisper.cpp’s own build on
Windows and Linux (on macOS it uses Homebrew’s
whisper.cpp; the Android app is to carry it, with a matching app release), and you pick a model to download.
A model that hears audio (Voxtral, Ultravox, Qwen-Omni, a LiteRT-LM bundle with an audio
encoder) can be sent the recording itself instead, so it hears your voice and not only your
words: TurboLLM asks which you want, once or every time. Read aloud on any reply speaks it
in your device’s own voice, picking one for the language the reply is written in, and replies
can be read out as they are written. A model that answers in speech (LFM3-Audio on llama.cpp)
replies with its own voice, in a player on the message: see
Audio-to-audio models.
- Voice conversation (Beta, off by default: Settings → Voice → Voice conversation) — hands-free: press the
conversation button next to the microphone and just talk. TurboLLM sends what you say when you stop speaking, reads
the reply aloud and listens again; tap the microphone while it answers to cut in. With an audio-to-audio model loaded
on this machine, the model hears your voice itself and its spoken reply plays while it is still being generated;
cutting in stops it and the chat keeps only the part you heard. What you said is written down under your voice
message when speech-to-text is set up.
- Markdown + syntax-highlighted code with one-click copy — plus inline Unicode charts
the model draws when a comparison, trend, or hierarchy is genuinely worth a visual.
- Live artifacts —
html, svg, and mermaid replies render as sandboxed, offline
previews shown as an image, with one-click export to PNG / JPEG / SVG / animated GIF / HTML.
- Agents — pick a style (Default · Designer · Concise · Detailed · Blunt · Formal · Tutor ·
Creative · Research · Lite · Code) per conversation, no prompt-wrangling required. The
Designer persona produces polished, self-contained, previewable designs by default; Lite
strips the hidden prompt to the bare minimum for the fastest responses. Switch a chat’s agent
after it has started from the agent badge in the chat header; the next reply runs under it and
earlier messages are kept. See below for editing built-ins or creating your own.
- Edit or regenerate any message without losing history — both branch instead of
overwriting, with a ‹ 1/2 › switcher to flip between versions (including nested branch
points); delete and copy still work as before. Fork from here on any message opens a new
chat with the history up to that message and the same settings, leaving the original as it was
(in Code, Fork from before this message opens a new session). Persistent, searchable conversations with
rename, delete, and auto-generated titles, organized into drag-resizable, collapsible
folders you create/rename/move conversations into.
- A reply runs in TurboLLM, not in the page — switching chats, closing or reloading the tab, or a dropped
connection never cancels it. It keeps running in the background and saves normally; open the chat again, on this
device or another, and it shows the reply live with its Stop button. The sidebar shows a live indicator on any chat
still generating, and a dot on one that finished while you were elsewhere.
- Desktop app keeps running in the tray — on Windows and Linux, closing the window leaves TurboLLM running (Open
TurboLLM / Quit TurboLLM in the tray), so replies, Code runs, downloads and auto-tunes go on. On a Linux desktop with
no tray icons, closing minimizes instead.
- Preserve thinking across turns (on by default) — the model’s past reasoning is resent on
later turns, not just its final answers, so follow-ups have real context to work with.
- Per-chat system prompt and per-chat sampling overrides — temperature, top-p/k, min-p,
repeat/presence/frequency penalties, and stop strings — prefilled from the loaded model’s
own recommended values, available even before you send the first message.
- Image input for vision models, PDF and code/text attachments (real extracted text,
not raw bytes), and TurboLLM Expert — a built-in assistant that knows the app and your
hardware for onboarding and troubleshooting without leaving the UI.
- Agentic tools — built-in
web_search (Tavily, Kagi, SearXNG or Keenable, which works without a key),
fetch_url, and sandboxed run_code, plus
an MCP marketplace in Customize: one-click connect for hosted MCPs (GitHub, Linear, Stripe,
Atlassian, Neon, Supabase, Cloudflare, Zapier, Apify, Mixpanel) and open-source local MCPs
(filesystem, git, postgres, playwright, …), plus your own custom servers. Connected tools appear
in every chat with no restart. A Research persona forces multi-step web search and cites sources inline.
run_python (experimental: Settings → Experimental → Python sandbox; desktop only) — the model can run Python
(pandas, numpy, matplotlib, Pillow, sympy) on the files attached in the chat, with no network and no access to your
files. Every run asks first and shows the whole code (Allow once only); charts appear on the reply, and CSV, JSON and
text files it saves come back to the model and as downloads. Its Python runtime has to be installed from the same settings first.
- Tool-call approval gate — every tool call asks for your approval by default before it runs,
with Deny, Allow, Allow for this chat, or Always Allow on an inline bar above the
composer. Set per-tool defaults globally from Settings → Tools & safety, or flip Auto-allow
all to skip prompts entirely — a tool set to Deny still stays blocked either way. A call set to Ask that nobody
answers is not run: a chat reply waits a set time (Settings → Tools & safety → Tool permissions → Wait for an answer,
30 minutes by default, 0 = forever), says so, and goes on as after a Deny.
- Usage dashboard — a GitHub-style activity heatmap of your local generation history (adaptive
1h/12h/24h boxes for the 7-day/30-day/all-time views), streaks, peak hour, a per-model
breakdown, a lifetime token-milestone tracker, and a separate API tab tracking tokens hitting
the gateway from external tools like Claude Code — not just in-app chat.
- Auto-memory (experimental, off by default) — silently extracts durable facts you mention
in chat (name, preferences, hardware) using your own loaded model, and carries them into future
new conversations. Nothing leaves your device; the full fact list is reviewable and deletable
from Settings → Memory, and turning the toggle off stops new chats from seeing it immediately.
- Turbo Link (experimental, off by default) — link a second machine running TurboLLM
with one pasted link string and use its models as if they were local: they appear in the chat
model picker (grouped by machine), in
/v1/models and in launch --model, and Models,
Downloads and Engines merge both machines’ rows into one list. You grant an explicit capability
set per link — use models only, run a server, or full control — optionally pinned to specific
models, and revocable at any time from the host. Not yet verified against a real two-machine
setup, so it stays behind Settings → Experimental.
- Remote access (experimental, off by default) — expose TurboLLM to the internet through
Cloudflare (Quick or Named tunnel), Tailscale (Serve or Funnel), ngrok, or your own reverse
proxy, from Settings → Network & sharing. Enabling it mints a capability-scoped access token —
restrict it to chat-only, or also allow loading/unloading models — instead of exposing your
regular API key, with a live status chip and one-click stop. Not yet verified
against real Cloudflare/Tailscale/ngrok accounts, so it stays behind Settings → Experimental.
- Thinking-budget control — a graduated slider, not just on/off: cap reasoning to a specific
token count, disable it entirely, or leave it unlimited. Works in Chat and Code alike.
- Reasoning-effort control for models whose own chat template supports it (e.g. Qwen3.8) —
an Off/Low/Medium/xhigh slider swaps in automatically in place of the thinking-budget one,
detected per model.
🧑💻 Code — a local coding agent, in a real project directory
Workspace → Code hands a task to an agent running on the same model you already have loaded —
point it at a repo folder, describe what you want, and it reads, edits, and runs commands to get
there. Entirely local; nothing leaves your machine.
- Real repo access — plans and edits end-to-end (or asks before mutating, or plan-only,
depending on mode), with an optional isolated git worktree so your actual checkout stays
untouched, and a real diff summary of what changed.
- Persistent sessions — archive/filter past runs, revert to any earlier message (with
optional real file-edit reversal), attach files as context, and a “Coding activity” dashboard
(sessions, tasks shipped, files touched, diff shipped, streaks) built from real history, not
mock data.
- Real LSP integration for TypeScript/JavaScript and Python — detects the language, installs
the language server if needed, and uses it for edits.
- The same tools Chat gets from Customize — any connected MCP server, plus the sandboxed
run_code tool — are available to Code too, alongside honest skill invocation and
AGENTS.md/agents.md support.
- Independent access control — gated behind its own API key on non-host devices, separate
from Chat’s gate.
- Expose it to other tools over MCP —
turbollm mcp-server runs a stdio MCP server so any
MCP-compatible tool (Claude Desktop, Cursor, Windsurf, Cline, Claude Code, and more) can
delegate a real coding task to Code, not just chat completions. Setup snippets for any host are
under Customize → Connect.
- Or run Claude Code,
pi or opencode itself, inside Code — set Settings → Code agent and a session
opens the real CLI in a full-screen terminal, on your local model, in your project folder. The
model picker, context ring, thinking-budget slider and stats row stay right where they are: the
CLI replaces the transcript, not the controls. Any of the three not installed yet is shown
with an Install button rather than failing when you open the session, and a CLI launched this
way sees only your local models — never your cloud API keys. It starts in the mode you picked (auto / plan /
ask), the thinking budget applies live with no restart, switching models keeps your scrollback,
and the conversation survives a restart of TurboLLM. The terminal backend is an optional native
component — if it can’t be built for your platform it’s skipped (TurboLLM installs and runs
normally), and this agent simply isn’t offered on that machine.
🤖 Customize → Agents — edit any built-in, or build your own
- Edit any built-in agent in place — system prompt, which shared skills it uses, and which
tools it may call — with a one-click Reset back to the original.
- Create your own agent from scratch: a name, description, and system prompt, plus a
checklist of which shared skills and which tools it’s allowed to use (everything on by
default). Pick it from the same in-chat agent picker as the built-ins.
- Skills on by default — each skill in the Skills library has an On by default switch, and
new chats start with those skills on. Type
@ and part of a skill’s name in the chat box to turn
that skill on for the chat.
- MCP tools grouped by server in the tool checklist — one toggle selects or deselects an
entire server’s tools at once, or expand it to pick individually.
🧠 Text classification (Jev and Laya) — ask structured questions about any text, locally
- Models → Discover → Text classification finds every model TurboLLM can run for this, whichever chat
engine is active. Two kinds run today: Jev (NLI cross-encoders on vLLM) and Laya (its own engine).
- Load an NLI model (such as OpenJev) and TurboLLM detects it as a Jev model. Workspace turns
into a playground: two editors — the content, and the questions you’re asking about it — are
the request. Ctrl/Cmd+Enter to run; see the answers per question, the raw response, and a
copyable
curl.
- The questions editor has a Form view, too. Toggle between JSON and Form any time. Form gives
you one card per question — a type dropdown (Yes/no, Pick one, Scale), instructions, and the
fields each type needs (an option list, an ordered scale) — no hand-written JSON required. Both
views stay in sync, and editing one question never touches another’s.
POST /v1/systemone answers yes/no, pick-one, and scale questions in one call, using the
public System One API’s exact field names — a client written for that shape only changes its
base URL and key. POST /v1/classify and POST /v1/rerank are there too for raw
premise/hypothesis work.
- Honestly labelled: answers are the model’s NLI entailment scores, not a calibrated decision
model, and the docs explain exactly how each number is computed.
- Runs on vLLM (Linux or WSL2). Full guide: https://turbollm.dev/docs/jev.
- Laya decision models, too (convaiinnovations/laya):
- What it is: a calibrated System One model that answers the same
/v1/systemone questions in 100+ languages.
- Where it runs: on its own Laya engine (Engines page; Windows, macOS, Linux; CPU or GPU), beside your chat model.
- How to get it: switch on the Text classification chip in Discover, or search “laya”. The same playground opens from the Text classification tab under Chat, Code and Routines.
- Overview of both: https://turbollm.dev/docs/text-classification.
🔌 APIs & integrations — OpenAI + Anthropic, a model-loading gateway, and a stateful chat API
With a model loaded, TurboLLM serves two compatible APIs on the same port:
# OpenAI-compatible
curl http://127.0.0.1:6996/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"local","messages":[{"role":"user","content":"hello"}]}'
- OpenAI-compatible
/v1/chat/completions, /v1/embeddings, … — point any OpenAI client
or tool at it. Embedding models are auto-detected and pooled separately, so a RAG pipeline and
a chat model can stay loaded side by side.
- Anthropic-compatible
/v1/messages — including tool use and streaming — which powers
Claude Code below. No other local host offers this.
- Audio output —
/v1/chat/completions with modalities: ["text", "audio"] returns
message.audio (base64 WAV and its transcript) from a local model that answers in speech; see
Audio-to-audio models.
- Speech-to-text API —
POST /v1/audio/transcriptions and /v1/audio/translations, the
shape of OpenAI’s Whisper API (json, text, srt, vtt, verbose_json), answered by
whisper.cpp on your machine once it is set up in Settings → Voice. WAV, MP3, FLAC and Ogg
Vorbis are read as they are.
- Structured output — constrain any response to a GBNF grammar (or JSON shape).
- API-key auth you can require when sharing over a LAN (Settings → Network & sharing).
- A stateful External Chat API (Experimental — manual setup, no onboarding UI yet),
/api/ext/v1, for building a real chat product instead of the gateway’s stateless
send-full-history-every-call model — persistence, history, message editing, and resumable
streaming generation are handled for you. Off by default; using it today needs two manual
config.json edits — a key with an explicit, non-local tenant field, which works on this
API and nowhere else (the local tenant, this install’s own desktop UI data, is never reachable
through this API), and a configured chatStore adapter (the SQLite default only ever serves
the local tenant). A generated OpenAPI spec, a TypeScript client, and a working Postgres
adapter example ship with it. The daemon logs a warning at startup while it’s enabled — a
remote tenant’s generations currently inherit this install’s own tool permissions, not an
independent trust boundary of their own. Full guide.
The gateway loads models for you. Most local hosts make you load a model first, then call it.
TurboLLM’s gateway reads the model field of any incoming request, fuzzy-matches it to your
library, and loads it on the fly if it isn’t already running — then keeps up to four models
hot in an LRU pool so the next switch is instant. An agent (or Claude Code) that hops between a
coding model, a vision model, and an embedder just names each one and it works — no pre-wiring.
One command wires up more than just Claude Code. turbollm launch <cli> also supports
opencode, kilo, openclaw, and hermes — each gets pointed at TurboLLM the way that tool
expects (config file merge, or its own CLI command) instead of a manual copy-paste setup. Inside
Claude Code, /model lists your local models directly (with Auto Model Swap on in Settings →
Models & loading) so you can switch mid-session instead of only at launch.
🎨 Share the GPU with ComfyUI
If you run ComfyUI on the same GPU, an LLM holding VRAM while ComfyUI renders means both
fight for memory (and one usually OOMs). TurboLLM can hand the GPU over automatically:
- The instant ComfyUI starts a render, TurboLLM unloads its model and pauses new loads.
- When ComfyUI’s queue drains, TurboLLM reloads the exact model it unloaded.
It’s push-based, not polling — ComfyUI signals TurboLLM the moment a job starts/ends, so the
handoff is immediate and deterministic (the model is gone before ComfyUI executes).
One-time setup (Settings → Network & sharing → ComfyUI): turn on Pause for ComfyUI, enter your ComfyUI folder
(the one containing custom_nodes), click Install gate (it writes a small custom node wired to
this daemon), then restart ComfyUI once. The panel shows a live indicator (rendering / idle /
connected); Remove undoes it.
📊 Live hardware monitoring
- A persistent bottom strip on every screen shows real-time CPU, RAM, GPU and VRAM — values
and percentages — pulled from
nvidia-smi, WDDM counters, rocm-smi, AMD sysfs, ioreg,
or /proc on Linux. Clicking the bar opens detailed gauges and sparklines in Settings → System,
including live disk I/O (read/write MB/s) and a shared/spilled VRAM figure that shows
when a discrete GPU has spilled into system memory. Toggle it off entirely from Settings → General.
- Engines → Monitor puts the live engine log and those same hardware gauges on one
always-visible split screen, plus a second, LM Studio-style developer request log: every
completion the daemon serves — external API clients, Code sessions, in-app Chat — with
sampling params, timings, token counts, and (opt-in, off by default) full prompt/response
text. In-memory only; never written to disk or sent anywhere.
🪶 Platform — tiny, offline, private
- A ~7 MB npm package on Node — no Electron, no bundled Chromium, no Python.
- Offline-first — no account, no backend, no internet required. Telemetry defaults to on,
changeable any time; see Privacy.
- Windows · macOS · Linux, with a CPU fallback when there’s no GPU.
Quick start
# run without installing (recommended for first try)
npx turbollm
# or install globally
npm install -g turbollm
turbollm
On first run the daemon:
- Detects your GPU and downloads a matching
llama-server build (CUDA for NVIDIA, ROCm
for AMD, Metal for Apple, SYCL for Intel, Vulkan otherwise — with a CPU fallback).
- Starts on http://127.0.0.1:6996 and opens your browser.
- Walks you through a short setup wizard: pick how you’ll use it (casual chat, coding,
tinkering, or pro), get a model recommended for your actual hardware (or bring your own),
watch it download and load for real, and try it — before landing in Chat or Code.
Skippable from any step, and safe to close mid-download — reopen
/onboarding any time
from Models to pick up where you left off.
After that (or any time later), open Models, download or pick a GGUF, click Load, and
start chatting. Stop the daemon any time with Ctrl+C.
⭐ Bring any engine — the headline feature
No other local-LLM app lets you run whatever inference engine you want. TurboLLM treats
the engine as a swappable component.
Add a custom engine (Engines screen → Add your own engine):
- Compile or download any
llama-server-compatible binary — stock
llama.cpp, a community fork, or your own build.
- Point TurboLLM at the folder — or upload the build’s .zip — and it scans for the
llama-server binary, runs a capability probe, and learns exactly which flags and features
that build supports.
(Optional: paste the source repo URL so TurboLLM flags when a newer build ships.)
- Activate it. The load-parameter UI adapts to that engine — features the build doesn’t
support are hidden; ones it adds (e.g. low-bit KV cache, NextN) light up.
No prebuilt for your OS? The build-from-source guide checks your toolchain (git / CMake /
CUDA / a compiler — MSVC on Windows, gcc/clang on Linux), hands you the exact build commands
(or a 1-click “Build it for me” on Windows and Linux), then drops you into the folder scan
above.
Or skip the manual clone entirely — Engines screen → Add via git repo: paste any
llama.cpp-compatible fork’s git URL (+ optional branch, defaults to the repo’s own default) and
build it in-app with the same 1-click flow, no separate “point at a folder” step needed.
Branch pickers and engine update checks both read GitHub’s API, which allows 60 anonymous
requests an hour. If you run into that ceiling, add a GitHub token in Settings → Models &
loading to raise it to 5,000/hour — it is write-only and never leaves your machine.
Auto-provisioned default. Don’t want to fetch anything? On first run TurboLLM downloads
the right upstream prebuilt for your GPU automatically — and a backend picker lets you
switch between CUDA / ROCm / Metal / SYCL / Vulkan / CPU at any time (it downloads the variant
you choose, LM Studio-style).
Install a prebuilt from a GitHub release. Engines → Add engine → From a GitHub release (or a card’s Install
prebuilt): name a repo or pick a known fork, and TurboLLM lists the newest release’s builds for your OS, CPU and GPU,
downloads the one you choose, checks that it runs, and only then adds it. Release engines update from new tags with the
same check-before-swap, and the install keeps going if you close the dialog or reload.
Engine types. llama.cpp / GGUF, KoboldCpp and llamafile (GGUF, every OS),
MLX and MLX-VLM (macOS), vLLM (Linux + NVIDIA), and LiteRT-LM (Google’s on-device
runtime for .litertlm models, CPU or GPU, incl. Android via Termux and built into the Android app; experimental) are all first-class engine kinds —
install from the curated catalog, pick the right one per model, and switch from a single dropdown.
Fully supervised. Every engine runs under a real state machine: health-gated readiness,
graceful stop, an idle auto-stop watchdog, and live logs + clear error surfacing in
the UI when something fails to load.
Why it matters: fork-exclusive features — speculative decoding (NextN / MTP / draft),
low-bit KV cache, new quant formats — are usable on day 0, with zero compiler knowledge
on your part beyond producing the binary (and often not even that).
Audio-to-audio models: a model that answers in speech
Some models take speech in and give speech back directly, with no speech-to-text and text-to-speech
steps in between. TurboLLM runs one of them today: LFM3-Audio-2B
(the LFM3-Audio-2B-Q4_K_M.gguf model and its mmproj-LFM3-Audio-2B-Q8_0.gguf projector, kept in
one folder so they pair) on the llama.cpp engine, build b11960 or newer. TurboLLM’s default llama.cpp
(b9608) is older and cannot load this model (the engine exits with “unknown model architecture: ‘lfm3’”): add a newer
llama.cpp build on the Engines screen and make it active before you load the model. It is small enough for a CPU.
Use it. Load the model. Press the microphone, speak, and choose Send as audio. The reply
comes back as its text with a player under it (it never plays by itself), is saved with the chat
and plays again after a reload. A model that does not answer aloud never shows any of this.
From the API. POST /v1/chat/completions with modalities: ["text", "audio"] answers in OpenAI’s
shape. Send the question as a base64 WAV input_audio part, or as text:
curl http://127.0.0.1:6996/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "local",
"modalities": ["text", "audio"],
"audio": { "voice": "female", "format": "wav" },
"messages": [{ "role": "user", "content": [
{ "type": "input_audio", "input_audio": { "data": "<base64 WAV>", "format": "wav" } }
] }]
}'
# → choices[0].message.audio = { id, data: "<base64 WAV>", expires_at, transcript }
audio.format is wav or pcm16 (raw samples with no header, at the model’s own rate: 24 kHz for LFM3-Audio). Send earlier turns back as text:
the ids of earlier audio replies are not stored here, so an assistant message with only an
audio: { id } reaches the model as [Spoken reply], and an earlier input_audio part as [Voice message].
A request that does not ask for audio is untouched.
Limits, so they are no surprise.
- A finished clip, not a stream. The reply is played once it is complete;
stream: true with audio
is refused (audio_stream_unsupported).
- At most about 5 minutes of mono audio in one spoken turn (all its recordings together, with a few seconds of
slack for the recorder’s own overrun). The page records 16 kHz mono, so a full recording always fits. A WAV with more
channels or a higher rate is bounded by its total samples as well: 44.1 or 48 kHz stereo fits only about 3 minutes, so
send mono for longer clips. A message over the limit is sent as an ordinary text turn by the page, and refused
(
audio_format_unsupported) by the API.
- WAV only. An MP3 recording is refused (
audio_format_unsupported); the page records WAV.
- A local model only. A model on a linked machine, or in an extra pool slot, cannot answer aloud
(
audio_output_unsupported), and a request for audio is refused, never answered in text.
- One engine slot is held while it speaks. With one slot (
--parallel 1), another request waits for the reply to finish.
- Stop is quick once the reply is under way, slower before it. It tells the engine to cancel, which answered in
0.14 to 0.26 s once the model was speaking. During the first second or two (the engine reading your recording) the
engine can ignore a cancel, so TurboLLM sends it again until the engine ends the reply: in testing that took about
2.4 s on an idle 4-core CPU, longer when the machine is busy, and never more than 30 s (after which TurboLLM closes
the session anyway). The engine’s slot was free about a second after. What arrived is kept, marked stopped.
- Regenerate and Edit & resend answer in text. Only sending a new recording asks for a spoken reply, so a
regenerated reply to a spoken message has no player.
- An audio request through the API names a model like any request. With auto-swap on, a request for audio that
names a model that is not loaded loads it first, and only then is told whether it can speak. A request that its own body
makes unanswerable (
stream: true, a bad format, an MP3 or empty clip) is refused before any model is loaded.
- A spoken reply is capped at about a minute of speech (1024 tokens, which are 80 ms frames of sound) unless an API
request sets
max_tokens; Settings’ text token limit does not apply to it. A reply that reaches the cap ends with
finish_reason: "length" through the API; the chat, as for a text reply, shows nothing special.
- Earlier turns are sent as text, trimmed to about half the model’s context, oldest first.
Measured on a cloud container with 4 vCPUs (Intel Xeon @ 2.10 GHz), 15 GB RAM and no GPU, a spoken
4.4 s question (“What is the capital of France?”): the first sound after 2.6 to 2.8 s and the whole reply
(2.6 s of speech) in about 6.7 s. A typed question took 0.9 s to the first sound and 4 s in all. The whole
reply is waited for before it plays, so expect roughly the second figure. No GPU number has been measured yet.
Run Claude Code on your own GPU
TurboLLM’s Anthropic-compatible endpoint means Claude
Code can run against whatever model
you’ve loaded — no cloud key, fully offline. One command wires it up:
turbollm launch claude # auto-loads a model if none is running, then opens Claude Code
turbollm launch claude --model qwen3-8b # load a specific model first, then launch
It sets Claude Code’s ANTHROPIC_BASE_URL and pins ANTHROPIC_MODEL to whatever model is
loaded (so the status line, /status, and context-window sizing all reflect the real model),
then execs claude; extra args are forwarded. If no model is loaded it auto-loads your
last-used one (or the first in your library); --model picks a specific one by key or name.
If claude isn’t installed, it tells you how.
Other coding CLIs work too — turbollm launch opencode, turbollm launch kilo, and
turbollm launch openclaw write a turbollm provider into that tool’s own config file
(preserving anything you already configured) and then launch it. If an existing config can’t
be parsed, TurboLLM refuses to overwrite it and prints how to add the provider by hand.
turbollm launch hermes does the equivalent for Hermes Agent
via its own hermes config set command (its config is YAML, so we drive its CLI instead of
hand-editing that file). The in-app Customize → Connect tab also shows copy-paste snippets
for any OpenAI- or Anthropic-compatible tool (Open WebUI, Kilo Code, opencode, …).
Use it from any device on your network
The UI runs in the browser, so any phone, tablet, or laptop on your LAN can use the model on
your GPU box — every screen is responsive down to phone widths, with the desktop layout
untouched:
turbollm --addr 0.0.0.0:6996 # bind all interfaces, then open http://<your-ip>:6996
Other devices need an API key: it is required by default on any address other than loopback.
On the first such start with no key yet, one is generated and printed once in the startup
banner; otherwise create one under Customize → Connect → API keys on the host machine.
Paste it when the other device asks. To let any device on your network in without a key, turn on
Expose on local network (LAN) in Settings → Network & sharing, then turn
Require an API key off there. Any website opened in a browser on that network can then use
it without a key too (through DNS rebinding).
Command-line reference
turbollm # start on :6996, open browser
turbollm --port 9000 # listen on a specific port
turbollm --no-open # start without opening a browser
turbollm --addr 0.0.0.0:6996 # bind all interfaces (LAN sharing)
turbollm --stop # stop a running daemon (any terminal)
turbollm launch claude # start Claude Code (auto-loads a model if none is running)
turbollm launch claude --model qwen3-8b # load a specific model, then launch
turbollm launch opencode # wire opencode (or kilo / openclaw) to TurboLLM, then launch
| Flag |
Description |
--port <n> |
Listen on a specific port (default: 6996) |
--addr <host:port> |
Full host:port override, e.g. 0.0.0.0:6996 for LAN sharing; an IPv6 address bracketed, [::1]:6996 |
--no-open |
Start without opening a browser window |
--config <file> |
Path to a custom config file |
--stop |
Stop a running TurboLLM daemon (reads ~/.turbollm/daemon.pid) and exit |
--version, -v |
Print the installed version and exit |
--help, -h |
Show usage and exit |
turbollm launch claude also accepts --model <key|name> to load a specific model before
launching; without it, an already-loaded model is used, or the last-used / first model is
auto-loaded. The same command works with opencode, kilo, and openclaw — each gets a
turbollm provider merged into its own config file before it starts — and with hermes,
which gets configured via its own hermes config set command instead.
Configuration & data
Everything lives under ~/.turbollm/ on every OS — config.json, the SQLite chat
database, downloaded engines, models cache, and logs. Back it up or delete it to reset.
Use --config <file> to point at an alternate config (its directory becomes the data dir).
Requirements
-
Node.js 22.13.0 or newer — enforced at startup with a clear message.
Don't have Node? One command installs it.
Then open a new terminal (Windows needs one for PATH to refresh) and run npx turbollm.
-
Windows, macOS, or Linux for npx turbollm (x64 or arm64; Linux on glibc 2.28+ or musl; Android arm64 via Termux). TurboLLM needs its native core package to start and exits with a message on any other system. A native Android app also exists, with a
bundled Vulkan-accelerated engine — currently in closed/open testing, see turbollm.dev.
-
A GPU is recommended but not required — a CPU build is provisioned as a fallback.
-
On Windows, the first time the auto-downloaded llama-server runs, SmartScreen/Defender may
prompt (it’s an upstream binary). Allow it once.
Privacy
TurboLLM is offline-first: core local use needs no account, no backend, and no internet.
Your prompts, chats, files, and keys never leave your machine — regardless of your telemetry
choice. That’s not a promise you have to take on faith: the client is source-available, so the
claim is checkable against the actual code that ships.
Voice is no exception: a recording is turned into text by whisper.cpp on your machine, or handed to
the model you loaded, and replies are read aloud by voices that run on your own device (an online
voice is used only if you allow it in Settings → Voice).
Telemetry defaults to on (Usage + benchmarks + crash reports), so setup problems and
real-hardware speed get found and fixed — verifiable telemetry only helps if enough people are
actually sending it. Change your level any time from Settings → Privacy & telemetry:
- Off — sends only that one-time choice, nothing else, ever.
- Anonymous usage + benchmarks — which features you use, your hardware, model names, and
measured speed. Never prompts, files, paths, or keys.
- Usage + benchmarks + crash reports (default) — adds error fingerprints (never your content),
the resolved model config behind a load or benchmark (context length, quantization, GPU
offload — never anything that could identify a specific file), which coding tool is connected to
the local API (e.g. Claude Code, opencode — never which files, projects, or prompts it sends),
daily volume counts (chats, messages per chat, API requests — never their content), and which
screens and buttons you use (never their content or your cursor position).
You can preview the exact payload before anything is sent, and inspect a running log of every
event this machine has actually transmitted, from the same Settings section. For scripted or
unattended use, --no-telemetry (or TURBOLLM_TELEMETRY=off) is a hard, one-way kill switch,
independent of the saved level.
How TurboLLM compares
Focused on the differences that matter — all four are good tools, and the others move fast.
Marks reflect mid-2026; verify the moving rows against each tool’s current docs.
|
TurboLLM |
LM Studio |
Ollama |
Open WebUI |
| Run any engine / community forks |
✅ |
❌ llama.cpp/MLX only |
❌ hidden |
❌ frontend |
| Benchmark-based auto-tune of launch flags |
✅ |
◐ basic offload |
◐ basic offload |
❌ |
| Measured t/s in the model list |
✅ |
◐ per-run |
◐ --verbose |
❌ |
Anthropic API (/v1/messages) → Claude Code |
✅ |
✅ 0.4.1+ |
✅ v0.14+ |
❌ |
| OpenAI-compatible API |
✅ |
✅ |
✅ |
◐ proxy |
| Auto-load the requested model / multi-model pool |
✅ |
✅ JIT |
✅ |
❌ |
| Use existing model folders (no re-download) |
✅ |
◐ import |
◐ import |
❌ frontend |
| Speculative decoding (draft / MTP) |
✅ |
✅ |
◐ env flag |
❌ |
| Web UI from any LAN device |
✅ |
❌ |
❌ |
✅ |
| Lightweight (no Electron / no Python) |
✅ npm |
❌ Electron |
✅ Go |
❌ Python |
| Offline-first · verifiable telemetry (on by default) |
✅ verifiable (source-available) |
◐ closed app — not verifiable |
✅ |
✅ |
LM Studio and Ollama both added Anthropic /v1/messages endpoints in 2026, so the API rows are
now parity — Claude Code works against any of them. TurboLLM’s durable edges are any engine
including community forks, benchmark-based auto-tuning with a VRAM-fit verdict + measured t/s
before you commit, and telemetry you can actually verify — on by default, changeable any
time, and checkable against source-available code rather than taken on trust.
Prefer Open WebUI’s chat breadth? It works great pointed at TurboLLM’s OpenAI endpoint.
Troubleshooting
TurboLLM requires Node.js 22.13.0 or newer — upgrade Node: https://nodejs.org.
- Model won’t load / OOM — pick a smaller quant (the VRAM verdict warns you), lower GPU
offload, or close other GPU apps. Failures surface in the Engines screen with the engine log.
- Windows Defender / SmartScreen prompt — that’s the upstream
llama-server binary on
first run; allow it once.
- Port already in use —
turbollm --port 9000.
- Slow generation — open the model’s load params; ensure GPU offload is high and flash
attention / NextN are on for supported models.
Develop from source
npm install # daemon deps
cd web && npm install && cd ..
npm run build:web # build the React UI -> src/webdist
npm run start # run the daemon in dev (hot TS via tsx) -> :6996
npm run build # production bundle -> dist/cli.js (web assets included)
node dist/cli.js --port 6996
Frontend hot-reload: cd web && npm run dev (proxies /api and /v1 to the daemon on
:6996).
Stack: Node ≥22.13 · TypeScript · Hono · node:sqlite · tsup — and a React 19 + Tailwind v4 +
shadcn/ui frontend. One TypeScript codebase, shipped as an npm package.
🐳 Docker Deployment (NVIDIA / AMD GPU)
TurboLLM includes Docker support with dedicated configurations for NVIDIA CUDA
and AMD ROCm GPUs.
The Docker images provide an isolated environment while allowing TurboLLM to
access your GPU directly for accelerated local LLM inference.
The Dockerfile.* and docker-compose-*.yaml files referenced below live in the
GitHub repository, not in the npm package —
clone the repo to use them.
Getting your API key
The container publishes port 6996 on 0.0.0.0, so TurboLLM’s daemon requires an API key
for every request the moment it starts — there is no browser inside the container to log
in with. Both images launch with --print-token, which mints a fresh key and prints
it on every container start (not just the first), so it’s always one command away:
docker compose -f docker-compose-nvidia.yaml logs | grep 'Token:' # or docker-compose-amd.yaml
Grab the value after Token: and either paste it into the web UI’s login prompt, or send
it yourself as X-TurboLLM-Auth: <key> (or Authorization: Bearer <key>). Each restart
mints a new one, so re-run the command above after a restart rather than reusing an old
value — old keys keep working too and can be revoked from Customize → Connect → API keys once
you’re in.
NVIDIA GPU (CUDA)
Requirements
- NVIDIA GPU with CUDA support
- Installed NVIDIA drivers
- NVIDIA Container Toolkit
Install NVIDIA Container Toolkit:
# Ubuntu / Debian example
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | \
sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg
curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \
sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#' | \
sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
sudo apt update
sudo apt install -y nvidia-container-toolkit
sudo systemctl restart docker
docker compose -f docker-compose-nvidia.yaml up -d
AMD GPU
Requirements
- AMD ROCm
- Installed AMD drivers
# Ubuntu / Debian example
sudo apt update
sudo apt install wget gnupg
wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | \
sudo gpg --dearmor -o /usr/share/keyrings/rocm.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/latest ubuntu main" | \
sudo tee /etc/apt/sources.list.d/rocm.list
sudo apt update
sudo apt install rocm
sudo usermod -aG render,video $USER
sudo reboot
docker compose -f docker-compose-amd.yaml up -d
Questions, ideas, and show-and-tell — join the Discord.
Want to contribute? See CONTRIBUTING.md.
If TurboLLM saved you flag-hunting time, a ⭐ on the repo helps others find it.
License
Source-available under the Functional Source License 1.1 (Apache-2.0 future grant) — SPDX
FSL-1.1-ALv2. Full text: LICENSE.md.
License FAQ (plain-language summary — the license text is what’s binding):
- Can I use it for free? Yes. Personal use, internal business use, education, research,
and self-hosting — including commercially, inside your company — are all free. The license
permits any use except the one below.
- What’s the one restriction? You can’t take TurboLLM and ship it (or its functionality)
as a competing commercial product or service. That’s the entire boundary.
- Can I fork it or redistribute it? Yes — modify, fork, and redistribute freely for any
permitted purpose; keep the license text and copyright notices with it.
- When does it become fully open source? The license includes an irrevocable grant:
each release converts to Apache-2.0 exactly two years after that release is published.
The first public release shipped June 2026, so it converts in June 2028 — and every release
after it follows on its own two-year clock.
- Why not MIT/Apache from day one? TurboLLM is built by a solo maintainer; FSL prevents a
large vendor from re-skinning it as their own product while it’s young, and the future grant
guarantees the full open-source outcome anyway. (Sentry created the FSL; GitButler, PowerSync,
and Codecov ship under it too.)
Built for people who refuse to wait for the mainstream to bless the fast path. ⚡
评论