| Feature | Description |
|---|---|
| GUI Configuration | Visual configuration of llama-server without memorizing CLI flags |
| Multi-Profile Management | Save/load named profiles, switch between environments and models |
| Route Mode | Multi-model routing via --models-preset with auto-generated config.ini |
| Auto Language Detection | Automatically detects system language (Chinese / English) |
| Advanced Parameters | GPU layers, context size, Flash Attention, MTP, mmproj vision model |
| Command Line Preview | Real-time CLI display, supports manual extra-args editing |
| One-Click Start/Stop | Start/stop server with automatic health check and port conflict detection |
- Select Executable — Browse and select
llama-server - Select Model Directory — Choose the folder containing your models
- Select Model File — Pick a model from the dropdown
- Configure Parameters — Port, GPU layers, context size, etc.
- Enable Route Mode (optional) — Check the route mode radio to run as a multi-model router
- Start Server — Click the ▶ Start button
Profiles can be saved and loaded for quick environment switching.
When route mode is enabled, the launcher generates a config.ini file alongside the executable and starts llama-server with --models-preset. The router listens on port 8080 by default.
INI layout:
# version = 1
[*]
n-gpu-layers = 30
ctx-size = 4096
models-max = 1
[ModelName]
model = /path/to/model.gguf
n-gpu-layers = 30
ctx-size = 4096
extra-args = --no-warmup[*]section sets defaults for all models- Named sections are auto-created when saving a profile matching a model filename
extra-argsin each section are forwarded to that model's instance
cargo build --releaseOutput: target/release/llamacpp-launcher
Requires MinGW-w64:
sudo apt install mingw-w64
rustup target add x86_64-pc-windows-gnu
cargo build --release --target x86_64-pc-windows-gnuOutput: target/x86_64-pc-windows-gnu/release/llamacpp-launcher.exe
Cargo.toml uses:
- LTO (Link-Time Optimization)
- Strip (remove debug symbols)
opt-level = "z"(minimize binary size)codegen-units = 1
Profiles are stored in llamacpp_config.json alongside the executable:
{
"__meta__": { "last_profile": "Local Dev" },
"Local Dev": {
"executable": "/path/to/llama-server",
"model_dir": "/path/to/models",
"model_name": "model-name-q4_k_m",
"mmproj": "",
"host": "127.0.0.1",
"port": 11433,
"n_gpu_layers": 30,
"ctx_size": 4096,
"models_max": 1,
"flash_attn": "auto",
"mtp_enabled": false,
"spec_draft_n_max": 2,
"route_mode": false,
"command_text": ""
}
}Switching profiles does not auto-save current changes. Click 💾 Save to persist.
| Crate | Purpose |
|---|---|
| eframe | GUI framework |
| rfd | Native file dialog |
| serde | Serialization |
| serde_json | JSON config persistence |
| ureq | HTTP health check |
| sys-locale | System locale detection |
- Linux:
psmisc(providesfuserfor port conflict detection)sudo apt install psmisc
- Windows Cross-Compilation:
mingw-w64
MIT License
