Run GGUF models easily with a KoboldAI UI. One File. Zero Install.
11,653
stars
13,404
commits
C++
primary language
Sep 9, 2026
updated
KoboldCpp is an easy-to-use AI text-generation software for GGML and GGUF models, inspired by the original KoboldAI. It's a single self-contained distributable that builds off llama.cpp and adds many additional powerful features. Download Releases Here.

Presets and GPU Layers. Read the --help for more info about each settings.koboldcpp.exe --helpOn modern Linux systems, you should download the koboldcpp-linux-x64 prebuilt PyInstaller binary on the releases page. Simply download and run the binary (You may have to chmod +x it first). If you have an older device, you can also try the koboldcpp-linux-x64-oldpc instead for greatest compatibility.
Alternatively, you can also install koboldcpp to the current directory by running the following terminal command:
curl -fLo koboldcpp https://github.com/LostRuins/koboldcpp/releases/latest/download/koboldcpp-linux-x64-oldpc && chmod +x koboldcpp
After running this command you can launch Koboldcpp from the current directory using ./koboldcpp in the terminal (for CLI usage, run with --help).
Finally, obtain and load a GGUF model. See here
chmod +x koboldcpp-mac-arm64 and run it with ./koboldcpp-mac-arm64..gguf format.convert-hf-to-gguf.py to convert them, then quantize_gguf.exe to quantize the result.--usecuda flag (Nvidia Only), or --usevulkan (Any GPU), make sure you select the correct .exe with CUDA support.--gpulayers to offload model layers to the GPU. The more layers you offload to VRAM, the faster generation speed will become. Experiment to determine number of layers to offload, and reduce by a few if you run out of memory.--contextsize (number) to increase context size, allowing the model to read more text. Note that you may also need to increase the max context in the KoboldAI Lite UI as well (click and edit the number text field).--noavx2 flag. You can also try reducing your --blasbatchsize (set -1 to avoid batching)For more information, be sure to run the program with the --help flag, or check the wiki.
when you can't use the precompiled binary directly, we provide an automated build script which uses conda to obtain all dependencies, and generates (from source) a ready-to-use a pyinstaller binary for linux users.
git clone https://github.com/LostRuins/koboldcpp.git./koboldcpp.sh dist and run the generated binary. (Not recommended for systems that already have an existing installation of conda. Dependencies: curl, bzip2)./koboldcpp.sh # This launches the GUI for easy configuration and launching (X11 required).
./koboldcpp.sh --help # List all available terminal commands for using Koboldcpp, you can use koboldcpp.sh the same way as our python script and binaries.
./koboldcpp.sh rebuild # Automatically generates a new conda runtime and compiles a fresh copy of the libraries. Do this after updating Koboldcpp to keep everything functional.
./koboldcpp.sh dist # Generate your own precompiled binary (Due to the nature of Linux compiling these will only work on distributions equal or newer than your own.)
git clone https://github.com/LostRuins/koboldcpp.gitmake (when compiling, you can set the number of parallel jobs with the -j flag).make LLAMA_VULKAN=1LLAMA_CUBLAS=1, (or LLAMA_HIPBLAS=1 for AMD). You will need CUDA Toolkit installed. Some have also reported success with the CMake file, though that is more for windows.make LLAMA_CUBLAS=1 LLAMA_VULKAN=1. (Note that LLAMA_CUBLAS=1 will not work on windows, you need visual studio)LLAMA_PORTABLE=1python koboldcpp.py [ggml_model.gguf] [port]git clone https://github.com/LostRuins/koboldcpp.gitmake at the KoboldCpp source folder. This will create the .dll files for a pure CPU native build (when compiling, you can set the number of parallel jobs with the -j flag).make LLAMA_VULKAN=1. (Note that LLAMA_CUBLAS=1 will not work on windows, you need visual studio)LLAMA_PORTABLE=1pip install PyInstaller). Then run the script make_pyinstaller.batkoboldcpp_cublas.dll generated into the same directory as the koboldcpp.py file. If you are bundling executables, you may need to include CUDA dynamic libraries (such as cublasLt64_11.dll and cublas64_11.dll) in order for the executable to work correctly on a different PC.git clone https://github.com/LostRuins/koboldcpp.gitmake (when compiling, you can set the number of parallel jobs with the -j flag).make LLAMA_METAL=1, note that MacOS metal libraries need to be installed.LLAMA_PORTABLE=1python koboldcpp.py --model [ggml_model.gguf] (and add --gpulayers (number of layer) if you wish to offload layers to GPU).git clone https://github.com/LostRuins/koboldcpp.gitpkg_add gmakepkg_add vulkan-tools or pkg_add vulkan-loaderpkg_add shaderculimit -d 8388608 should workgmake LLAMA_VULKAN=1python3 koboldcpp.py --model [ggml_model.gguf]curl -sSL https://raw.githubusercontent.com/LostRuins/koboldcpp/concedo/android_install.sh | sh
and it will install everything required. Alternatively, you can download the above android_install.sh script to file, then do chmod +x and run it interactively.
apt updateapt install opensslpkg install wget git pythonpkg upgradegit clone https://github.com/LostRuins/koboldcpp.gitcd koboldcppmakeLLAMA_PORTABLE=1, this disables usage of ARM instrinsics.wget https://huggingface.co/concedo/KobbleTinyV2-1.1B-GGUF/resolve/main/KobbleTiny-Q4_K.ggufpython koboldcpp.py --model KobbleTiny-Q4_K.ggufhttp://localhost:5001 on your mobile browserpkg up and pkg upgradetermux-change-repo and choose a different repo (e.g. Mirror by BFSU)koboldcpp to your environment.systemPackages (or it can also be placed in home.packages).
--ropeconfig.make, you can rebuild the exe yourself with pyinstaller by using make_pyinstaller.bat/api (e.g. http://localhost:5001/api) and https://lite.koboldai.net/koboldcpp_api. An OpenAI compatible API is also provided at /v1 route (e.g. http://localhost:5001/v1)..bin models, though some newer features might be unavailable.(top 30 of 439)
C++
94.9%
C
2.0%
Python
1.1%
Run GGUF models easily with a KoboldAI UI. One File. Zero Install.
11,653
stars
13,404
commits
C++
primary language
Sep 9, 2026
updated
KoboldCpp is an easy-to-use AI text-generation software for GGML and GGUF models, inspired by the original KoboldAI. It's a single self-contained distributable that builds off llama.cpp and adds many additional powerful features. Download Releases Here.

Presets and GPU Layers. Read the --help for more info about each settings.koboldcpp.exe --helpOn modern Linux systems, you should download the koboldcpp-linux-x64 prebuilt PyInstaller binary on the releases page. Simply download and run the binary (You may have to chmod +x it first). If you have an older device, you can also try the koboldcpp-linux-x64-oldpc instead for greatest compatibility.
Alternatively, you can also install koboldcpp to the current directory by running the following terminal command:
curl -fLo koboldcpp https://github.com/LostRuins/koboldcpp/releases/latest/download/koboldcpp-linux-x64-oldpc && chmod +x koboldcpp
After running this command you can launch Koboldcpp from the current directory using ./koboldcpp in the terminal (for CLI usage, run with --help).
Finally, obtain and load a GGUF model. See here
chmod +x koboldcpp-mac-arm64 and run it with ./koboldcpp-mac-arm64..gguf format.convert-hf-to-gguf.py to convert them, then quantize_gguf.exe to quantize the result.--usecuda flag (Nvidia Only), or --usevulkan (Any GPU), make sure you select the correct .exe with CUDA support.--gpulayers to offload model layers to the GPU. The more layers you offload to VRAM, the faster generation speed will become. Experiment to determine number of layers to offload, and reduce by a few if you run out of memory.--contextsize (number) to increase context size, allowing the model to read more text. Note that you may also need to increase the max context in the KoboldAI Lite UI as well (click and edit the number text field).--noavx2 flag. You can also try reducing your --blasbatchsize (set -1 to avoid batching)For more information, be sure to run the program with the --help flag, or check the wiki.
when you can't use the precompiled binary directly, we provide an automated build script which uses conda to obtain all dependencies, and generates (from source) a ready-to-use a pyinstaller binary for linux users.
git clone https://github.com/LostRuins/koboldcpp.git./koboldcpp.sh dist and run the generated binary. (Not recommended for systems that already have an existing installation of conda. Dependencies: curl, bzip2)./koboldcpp.sh # This launches the GUI for easy configuration and launching (X11 required).
./koboldcpp.sh --help # List all available terminal commands for using Koboldcpp, you can use koboldcpp.sh the same way as our python script and binaries.
./koboldcpp.sh rebuild # Automatically generates a new conda runtime and compiles a fresh copy of the libraries. Do this after updating Koboldcpp to keep everything functional.
./koboldcpp.sh dist # Generate your own precompiled binary (Due to the nature of Linux compiling these will only work on distributions equal or newer than your own.)
git clone https://github.com/LostRuins/koboldcpp.gitmake (when compiling, you can set the number of parallel jobs with the -j flag).make LLAMA_VULKAN=1LLAMA_CUBLAS=1, (or LLAMA_HIPBLAS=1 for AMD). You will need CUDA Toolkit installed. Some have also reported success with the CMake file, though that is more for windows.make LLAMA_CUBLAS=1 LLAMA_VULKAN=1. (Note that LLAMA_CUBLAS=1 will not work on windows, you need visual studio)LLAMA_PORTABLE=1python koboldcpp.py [ggml_model.gguf] [port]git clone https://github.com/LostRuins/koboldcpp.gitmake at the KoboldCpp source folder. This will create the .dll files for a pure CPU native build (when compiling, you can set the number of parallel jobs with the -j flag).make LLAMA_VULKAN=1. (Note that LLAMA_CUBLAS=1 will not work on windows, you need visual studio)LLAMA_PORTABLE=1pip install PyInstaller). Then run the script make_pyinstaller.batkoboldcpp_cublas.dll generated into the same directory as the koboldcpp.py file. If you are bundling executables, you may need to include CUDA dynamic libraries (such as cublasLt64_11.dll and cublas64_11.dll) in order for the executable to work correctly on a different PC.git clone https://github.com/LostRuins/koboldcpp.gitmake (when compiling, you can set the number of parallel jobs with the -j flag).make LLAMA_METAL=1, note that MacOS metal libraries need to be installed.LLAMA_PORTABLE=1python koboldcpp.py --model [ggml_model.gguf] (and add --gpulayers (number of layer) if you wish to offload layers to GPU).git clone https://github.com/LostRuins/koboldcpp.gitpkg_add gmakepkg_add vulkan-tools or pkg_add vulkan-loaderpkg_add shaderculimit -d 8388608 should workgmake LLAMA_VULKAN=1python3 koboldcpp.py --model [ggml_model.gguf]curl -sSL https://raw.githubusercontent.com/LostRuins/koboldcpp/concedo/android_install.sh | sh
and it will install everything required. Alternatively, you can download the above android_install.sh script to file, then do chmod +x and run it interactively.
apt updateapt install opensslpkg install wget git pythonpkg upgradegit clone https://github.com/LostRuins/koboldcpp.gitcd koboldcppmakeLLAMA_PORTABLE=1, this disables usage of ARM instrinsics.wget https://huggingface.co/concedo/KobbleTinyV2-1.1B-GGUF/resolve/main/KobbleTiny-Q4_K.ggufpython koboldcpp.py --model KobbleTiny-Q4_K.ggufhttp://localhost:5001 on your mobile browserpkg up and pkg upgradetermux-change-repo and choose a different repo (e.g. Mirror by BFSU)koboldcpp to your environment.systemPackages (or it can also be placed in home.packages).
--ropeconfig.make, you can rebuild the exe yourself with pyinstaller by using make_pyinstaller.bat/api (e.g. http://localhost:5001/api) and https://lite.koboldai.net/koboldcpp_api. An OpenAI compatible API is also provided at /v1 route (e.g. http://localhost:5001/v1)..bin models, though some newer features might be unavailable.(top 30 of 439)
C++
94.9%
C
2.0%
Python
1.1%