No description
Find a file
2025-09-19 01:02:08 -07:00
.github fix linux auto-update required latest file missing from CI artifacts 2025-09-18 20:53:02 -07:00
.vscode better app colors, more borders for easier window separation, allow for beta releases, app auto-updates 2025-09-18 00:04:13 -07:00
assets WIP - figuring out more consistent .embd copying for portable binaries, starting to move away from dep injection to pure functional 2025-09-08 14:24:49 -07:00
screenshots update screenshots 2025-09-11 01:12:35 -07:00
scripts rename the project to gerbil 2025-08-30 12:11:59 -07:00
src code refactoring 2025-09-19 01:02:08 -07:00
.gitignore icon on about tab is now clickable too, better unmet req display 2025-09-14 11:53:47 -07:00
.nvmrc monkey patch koboldai lite on unpack to make it look better, minor improvements 2025-09-04 17:49:20 -07:00
.prettierignore add more network settings, start detecting GPU and CPU capabilities 2025-08-14 13:11:07 -07:00
.prettierrc Initial commit: FriendlyKobold Electron app with KoboldCpp management 2025-08-11 18:34:35 -07:00
.yarnrc.yml switch to yarn 2025-08-16 11:01:20 -07:00
electron.vite.config.ts auto update improvements, dont allow process globals (import instead), refactor to use execa more 2025-09-18 17:20:59 -07:00
eslint.config.ts auto update improvements, dont allow process globals (import instead), refactor to use execa more 2025-09-18 17:20:59 -07:00
index.html more excessive try/catch clean up, never wait for config set and logError, better titlebar color in dark mode 2025-09-18 22:16:51 -07:00
LICENSE making it better and refactoring, digging through the AI generated slop 2025-08-13 00:02:47 -07:00
package.json more excessive try/catch clean up, never wait for config set and logError, better titlebar color in dark mode 2025-09-18 22:16:51 -07:00
README.md more excessive try/catch clean up, never wait for config set and logError, better titlebar color in dark mode 2025-09-18 22:16:51 -07:00
tsconfig.json Initial commit: FriendlyKobold Electron app with KoboldCpp management 2025-08-11 18:34:35 -07:00
tsconfig.main.json making it better and refactoring, digging through the AI generated slop 2025-08-13 00:02:47 -07:00
tsconfig.node.json Initial commit: FriendlyKobold Electron app with KoboldCpp management 2025-08-11 18:34:35 -07:00
yarn.lock better app colors, more borders for easier window separation, allow for beta releases, app auto-updates 2025-09-18 00:04:13 -07:00

Gerbil

A desktop app to easily run Large Language Models locally.

Gerbil Icon

Core Features

  • Run LLMs locally powered by KoboldCpp which itself is a highly modified fork of llama.cpp
  • Cross-platform desktop app - Native support for Windows, macOS, and Linux (including Wayland)
  • Automatic updates - Download and keep your KoboldCpp binary up-to-date effortlessly
  • Smart process management - Prevents runaway background processes and system resource waste
  • Optimized performance - Automatically unpacks binaries for faster operation and reduced memory usage
  • Image generation support - Built-in presets for Flux and Chroma image generation workflows
  • SillyTavern integration - Seamlessly launch SillyTavern for advanced character interactions (requires Node.js)
  • OpenWebUI integration - Launch OpenWebUI for a modern web-based chat interface (requires uv)
  • Privacy-focused - Everything runs locally on your machine, no data sent to external servers

Installation

Pre-built Binaries

Download the latest release for your platform from the GitHub Releases page:

  • Windows: Gerbil-Portable-X.X.X.exe (portable executable)
  • Windows: Gerbil-Setup-X.X.X.exe (installer executable)
  • macOS: Gerbil-X.X.X.dmg (disk image)
  • Linux: Gerbil-X.X.X.AppImage (portable application)

Linux - AUR (Arch Linux)

For Arch Linux users, install from the AUR using your preferred AUR helper:

# Using yay
yay -S gerbil

# Using paru
paru -S gerbil

# Manual installation
git clone https://aur.archlinux.org/gerbil.git
cd gerbil
makepkg -si

The AUR package automatically handles installation, desktop integration, and system updates. This is the ideal way to run Gerbil on Linux.

Screenshots

Download & Setup

Download Interface

Model Launch Configuration

Launch Configuration

Text Generation

Text Story Generation

Image Generation

Image Generation

SillyTavern integration

SillyTavern integration

OpenWebUI integration

OpenWebUI integration

Future features

Not all koboldcpp features have currently been ported over to the UI. As a workaround one may use the "Additional arguments" on the "Advanced" tab of the launcher to provide additional command line arguments if you know them.

CLI Mode

The --cli argument allows you to use the Gerbil binary as a proxy to the downloaded KoboldCpp binary. This enables you to run KoboldCpp from the command line using the same binary that the GUI has downloaded.

Considerations

You might want to run CLI Mode if you're looking to use a different frontend, such as OpenWebUI, than the ones bundled (eg. KoboldAI Lite, Stable UI) with KoboldCpp AND you're looking to minimize any resource utilization of this app. Note that at the time of this writing, Gerbil only takes about ~200MB of RAM and ~100MB of VRAM for its Chromium-based UI. When running in CLI Mode, Gerbil will still take about 1/3 of those RAM and VRAM numbers.

Usage

Linux/macOS:

# Basic usage - launch KoboldCpp launcher with no arguments
gerbil --cli

# Pass arguments to KoboldCpp
gerbil --cli --help
gerbil --cli --port 5001 --model /path/to/model.gguf

# Any KoboldCpp arguments are supported
gerbil --cli --model /path/to/model.gguf --port 5001 --host 0.0.0.0 --multiuser 2

# CLI inception (Gerbil CLI calling KoboldCpp CLI mode)
# This is the ideal way to run a custom frontend
gerbil --cli --cli --model /path/to/model.gguf --gpulayers 57 --contextsize 8192 --port 5001 --multiuser 1 --flashattention --usemmap --usevulkan

Windows:

CLI mode will only work correctly on Windows if you install Gerbil using the Setup.exe from the github releases. Otherwise there is currently a technical limitation with the Windows portable .exe which will cause it to not display the terminal output correctly nor will it be killable through the standard terminal (Ctrl+C) commands.

You can use the CLI mode on Windows in exactly the same way as in the Linux/macOS examples above, except you'll be calling the "Gerbil.exe". Note that it will not be on your system PATH by default, so you'll need to manually specify the full path to it when callig it from the Windows terminal.

Local Dev

Prerequisites

  • fnm - Fast Node.js version manager (installs correct Node.js versions automatically)

Setup

  1. Install fnm (if not already installed):

    # Using package manager (recommended for Arch Linux)
    yay -S fnm-bin
    
    # Or using curl (other distros)
    curl -fsSL https://fnm.vercel.app/install | bash
    
  2. Clone the repository

  3. Install Node.js and dependencies:

    # fnm will auto-install Node.js based on .nvmrc or engines field
    fnm use --install-if-missing
    npm install -g yarn
    yarn
    
  4. Start the development server:

    yarn dev
    

Known Issues

  • automatic GPU layer detection does not currently work consistently accross all backends and platforms. It's advised to set this configuration manually if you are told in the launch terminal that your VRAM could not be detected. It should work correctly on all platforms after 1.99.0 of KoboldCpp gets released except for the Windows ROCm binary which was not written well.
  • Windows ROCm support is... problematic and currently requires for the user to manually add the installed ROCm bin directory to the system PATH. In particular "hipInfo.exe" must be present, which is not always the case for older verions of ROCm.
  • not specific to Gerbil, but the open sourced AMD GPU drivers for Linux likely won't work well for image gen. They are not throttled, unlike the proprietary AMD drivers, and are likely to result in system instability under heavy load, especially when running with the larger models. You will probably need to manually tweak your system, but dual-booting to Window is likely the easiest approach if you're experiencing crashes. User beware.

Future Considerations

  • transition to using llama.cpp binaries directly instead of running them indirectly through koboldcpp?

License

AGPL v3 License - see LICENSE file for details