// 01 / model + chat
GHoSt Terminal.
Your local GGUF model loader and desktop chat app — with hardware-aware fit checks, five themes, vision & document support, offline LaTeX math, opt-in web search, and an OpenAI-compatible local API.
Windows 64-bit · v1.1.0 · Bring your own GGUF model
// see it in action
Watch GHoSt Terminal in action.
// release notes / v1.1.0
Themes, vision, documents, math, and speed.
- Collapsible sidebar, 5 UI themes & live telemetry: Switch between GHoSt Cyan, Paper Light, Phosphor Amber, Blood Moon, and Stealth Mono with customizable
Autoicon packs and live header telemetry (prefill,tok/s,ctx %,VRAM). - Rich Markdown & 100% offline LaTeX math: Headings, lists, GFM tables, blockquotes, language-labeled code blocks with one-click Copy, and inline/display math render cleanly offline during and after streaming.
- Vision (
mmproj) & ephemeral document uploads: Same-familymmproj*.ggufauto-pairing with eager mount validation and safe text-only fallback, plus in-memory[ + FILE ]extraction for.pdf,.html,.txt,.md,.csv,.json,.log, YAML/XML, and code files. - Opt-in live web search & SSRF-safe URL reader: Strictly
WEB: OFFby default; enable free DuckDuckGo + Wikipedia search, SearXNG, Brave, or Tavily with clickable source pills and local/private network SSRF protection. - Gemma 4 preflight, vision thinking fix & transcript export: Full Gemma 4
CHECK FITsupport (per-layer KV lists, Sliding Window Attention, and tied-KV global layers), suppressedenable_thinkingleaks in multimodal vision models, and one-clickSAVE & CLEARMarkdown transcript export. - Verified RTX 5060 Ti benchmarks: ~60 tok/s decode and 0.061–0.079 s short/medium TTFT on 9B Q5_K_M with
2.68 smodel mount.
For local clients and agents, the API normally starts at http://127.0.0.1:5555/v1; the port can change or be configured. It is not authenticated, so run only trusted local software while it is active.
// the field manual
Everything you need to get started.
The complete project README is reproduced below. For the latest updates, visit the GHoSt Terminal repository.
GHoSt Terminal
GHoSt Terminal (GPU Hosted Static Terminal) is a streamlined, fully local GGUF model loader and desktop chat app for Windows. Drop in a GGUF model, check how it fits your GPU, mount it, and chat. No cloud, no accounts, no telemetry.
See It in Action
▶ Watch the GHoSt Terminal Demo on YouTube
Features
- Desktop Window & Local Loopback API: Opens in a native desktop window (pywebview + Microsoft Edge WebView2) backed by a local
llama.cpp/ FastAPI server bound strictly to127.0.0.1(auto-selects the first open port starting at5555, or override withGHOST_API_PORT). - Collapsible Sidebar, 5 UI Themes & Custom Icon Packs: Collapsible left sidebar with live header telemetry (
prefill,tok/s,ctx %,VRAM), five switchable themes (GHoSt Cyan, Paper Light, Phosphor Amber, Blood Moon, and Stealth Mono), and customizable PNG icons inassets/icons/(defaults toauto, using custom icons on GHoSt Cyan and minimalist monochrome line-art SVGs on other themes). - Hardware-Aware VRAM Preflight (
CHECK FIT): Inspects GGUF tensor and architecture metadata alongside livenvidia-smiVRAM availability to pick a safe GPU layer count and KV-cache type (F16orQ8_0). Supports standard transformers, hybrid SSM/DeltaNet architectures (such as Qwen3.5 and Qwen3.6), and Gemma 4 (per-layer KV lists, Sliding Window Attention, and tied-KV global layers). - Rich Markdown & Offline LaTeX Math: Live-streaming and completed replies render headings, bullet/numbered lists, GFM tables, blockquotes, language-labeled code blocks with one-click Copy, and inline/display LaTeX math (
$O(n)$,$O(n^2)$, fractions, roots) 100% offline with zero external CDNs. - Vision Models (
mmproj) & Image Input: Auto-detects and pairs same-family*mmproj*.ggufprojectors inghost_models/viaMTMDChatHandler(with eager mount validation, manual override, or text-only mode in [ CONFIG ]), supporting[ + IMG ],Ctrl+Vscreenshot paste, and drag-and-drop. - Ephemeral Chat Document Upload (
[ + FILE ]): Extracts text in-memory from.pdf,.html,.txt,.md,.csv,.json,.log, YAML/XML, and code files (up to 20 MB, condensed cleanly for long files) and displays collapsible attachment cards in chat without writing to any database. - Opt-In Live Web Search & SSRF-Safe URL Reader: Strictly
WEB: OFFby default; toggle on in the composer or [ SETTINGS ] for free DuckDuckGo + Wikipedia search, self-hosted SearXNG, Brave, or Tavily, plus clickable source pills and SSRF protection blocking local/private network URLs. - Flash Attention Toggle: Enabled by default in [ CONFIG ] for faster inference and to unlock
Q8_0KV-cache compression when VRAM is tight (uncheck as a compatibility fallback to keepF16KV cache). - Full Sampler Controls: Temperature, Top P, Top K, Min P, Repetition Penalty, Presence Penalty, Seed, Maximum Response Tokens, Stop Sequences, Context Length, and Chat Template selection (
autoor manual override). - Clean System Prompt: Left blank by default so your models behave cleanly out of the box, or enter your own system prompt when needed.
- Chat Controls: Streaming responses with per-message Stop, Read aloud (speaker icon), Copy, Edit, Redo, and Delete.
- Local Read-Aloud Voices: Powered by Piper. Includes Silas and Kara out of the box (downloaded automatically from Hugging Face on first use, ~63 MB each, then cached offline in
piper_models/). Drop any custom.onnx+.onnx.jsonpair intopiper_models/to add more voices. - Optional Reasoning Disclosure:
<think>reasoning blocks are suppressed/hidden by default (including Jinjaenable_thinkingmodels) and can be toggled on in [ CONFIG ] as collapsible disclosures beneath replies. - Persistent Settings: Saved locally in
ghost_terminal_settings.jsonbeside the executable.
Performance & Benchmarks
Head-to-head comparison measured on an NVIDIA GeForce RTX 5060 Ti (16 GB VRAM) running DeepSeek-V4-Pro-Qwen3.5-9B-UNCENSORED-heretic.i1-Q5_K_M.gguf (6.19 GiB) across three deterministic prompts (temperature=0, seed=42, max_tokens=256, stream=True, thinking disabled via show_reasoning=False / --jinjathink false).
Matched Engine Configuration: 33 / 33 GPU layers · F16 KV cache · 8192 context · 512 batch size · Flash Attention ON · identical token counts (207, 256, 256) and output prefixes on both servers.
- Model Mount / Cold Startup:
2.68 s(GHoSt TerminalPOST /v1/loadon an active Python/API process) vs.35.64 s(KoboldCppv1.125.1standalone single-EXE cold unpack + startup + model load).
Prompt (in / out tokens) |
Metric | GHoSt Terminal (--api-only) |
KoboldCpp v1.125.1 |
|---|---|---|---|
Short (39 / 207) |
Client TTFT (time to first token) | 0.061 s | 0.435 s |
| Decode Speed | 60.0 tok/s | 50.1 tok/s | |
| Total Wall Time | 3.513 s | 4.417 s | |
| Peak VRAM (Total / Delta) | 7,392 MiB (+6,521 MiB) | 7,170 MiB (+6,304 MiB) | |
Medium (100 / 256) |
Client TTFT (time to first token) | 0.079 s | 0.627 s |
| Decode Speed | 60.1 tok/s | 50.2 tok/s | |
| Total Wall Time | 4.342 s | 5.875 s | |
| Peak VRAM (Total / Delta) | 7,324 MiB (+6,453 MiB) | 7,167 MiB (+6,301 MiB) | |
Long (1,528 / 256) |
Client TTFT (time to first token) | 0.543 s | 0.657 s |
| Decode Speed | 59.8 tok/s | 49.7 tok/s | |
| Total Wall Time | 4.823 s | 5.938 s | |
| Peak VRAM (Total / Delta) | 7,302 MiB (+6,431 MiB) | 7,171 MiB (+6,305 MiB) |
(KoboldCpp v1.125.1 ran via --skiplauncher --usecublas --contextsize 8192 --gpulayers 33 --quantkv f16 --batchsize 512 --jinjathink false; decode speeds reflect GHoSt Terminal's ghost_meta.tok_per_sec and KoboldCpp's /api/extra/perf last_eval_speed.)
Quick Start
Option A: Download the Standalone Windows Release (Recommended)
- Download and extract
GHoSt-Terminal-v1.1.0-win64.zipfrom Releases. - Copy one or more
.ggufmodel files into the extractedghost_models/folder. - Double-click
GHoSt-Terminal.exe. - In [ CONFIG ], select your model, click CHECK FIT (optional) and MOUNT, then click CLOSE (or SAVE SETTINGS & CLOSE) to start chatting.
- UNLOAD releases the resident model and frees VRAM while keeping your chat on screen.
- NEW CHAT clears the transcript and resets the model's active KV/context state without unloading the model.
- SAVE & CLEAR exports the conversation to a local Markdown transcript file before clearing the chat.
Option B: Run From Python Source
Requires Python 3.11 on Windows (install CUDA-enabled llama-cpp-python + nvidia-cublas if using an NVIDIA GPU).
python -m venv .venv
.\.venv\Scripts\activate
pip install -r requirements.txt
python ghost_terminal.pyTo run only the local OpenAI-compatible API + web UI without opening the desktop window:
python ghost_terminal.py --api-onlyOptional environment variables:
GHOST_API_PORT: override the default port (5555, or next free port up to5574).GHOST_BACKEND: forceauto(default),cuda,vulkan, orcpu.
Build & Package From Source
Build GHoSt-Terminal.exe
python build_terminal.pybuild_terminal.py automatically switches to ./.venv if present and requires CUDA llama-cpp-python (ggml-cuda.dll + cublas) by default (pass --cpu-only if you intentionally want a CPU-only build). It outputs GHoSt-Terminal.exe and stages external backend DLLs into backends/.
Run the focused regression tests without loading a model:
python -m unittest discover -s tests -vCreate a Clean Distributable Release .zip
python package_release.pyThis stages files in a temporary directory and writes ../GHoSt-Terminal-v1.1.0-win64.zip containing:
GHoSt-Terminal/
GHoSt-Terminal.exe
README.md
LICENSE
THIRD_PARTY_NOTICES.md
assets/
backends/ cpu/ and cuda/ runtime DLLs
ghost_models/ drop your *.gguf files here
piper_models/ MODEL_CARDs + README (voices download on first use)
source/ complete first-party source code
No .gguf model files, personal settings, or logs are included in the release archive.
Backend Packaging Status
The builder externalizes the prebuilt DLLs from llama-cpp-python and nvidia-cublas into backends/cpu and backends/cuda rather than embedding the CUDA runtime inside the EXE. Verified on NVIDIA Windows hardware (RTX 5060 Ti); CPU-only machines without the linked CUDA/cuBLAS DLLs and Vulkan hardware are not yet certified.
Privacy
The server binds to 127.0.0.1 only with zero telemetry. When WEB: OFF (the default), nothing leaves your machine except the one-time download of a selected Piper voice from rhasspy/piper-voices on Hugging Face the first time you click the speaker button. Enabling live web access is strictly opt-in per toggle, and the SSRF guard blocks local, loopback, and private network URLs.
Browser requests from other origins are rejected. The local API is not authenticated, so other programs running on the same machine can still access it; only run trusted local software while it is active.
License
GHoSt Terminal's first-party code is licensed under GPL-3.0-or-later — see LICENSE. Third-party components and voice models retain their respective licenses — see THIRD_PARTY_NOTICES.md.




