Skip to content

How-ToGPU

How to Set Up SillyTavern with a Local LLM Using KoboldCpp

How to set up SillyTavern with a local LLM: installing it on Windows or Linux, loading a GGUF model in KoboldCpp, connecting the two, tuning GPU layers to fit your graphics card's VRAM, adjusting context settings and fixing common problems.

By , Systems & Technical Editor

8 min read

How to Set Up SillyTavern with a Local LLM Using KoboldCpp

The steps are based on SillyTavern's official documentation (installation, API connections, KoboldCpp setup, common settings and config.yaml reference), all read on 24 November 2026. Menus and option names can change between versions, so if something looks different on your screen, check the current docs.

SillyTavern describes itself as a locally installed user interface for interacting with text generation large language models (LLMs), image generation engines and text-to-speech voice models. It's free and open source, began in February 2023 as a fork of TavernAI, and is popular for character chat and interactive fiction, with character descriptions, lorebooks, personas and fine control over how prompts are built. It doesn't run models itself. Instead, it connects to a back end, which can be a cloud service or an LLM server running on your own PC. Pair it with a local back end and everything stays on your machine.

This guide uses KoboldCpp as the back end, because SillyTavern's documentation includes a dedicated KoboldCpp setup guide and because KoboldCpp makes it easy to see and control how much of the model sits in your graphics card's VRAM. SillyTavern's docs also list llama.cpp, Ollama, Oobabooga's Text Generation WebUI and TabbyAPI as local options. If you're weighing up front ends and back ends more generally, see our KoboldCpp vs LM Studio comparison.

What you'll need

Item

Notes

A Windows, Linux or macOS PC

SillyTavern's docs say it can't be installed on Windows 7, because it can't run Node.js 20

Node.js and Git

SillyTavern's Windows guide recommends the latest LTS version of Node.js

KoboldCpp

A self-contained server for GGUF models, downloaded from its GitHub releases page

A GGUF model file

Downloaded separately; SillyTavern's docs note local models can be 5-50GB each

A graphics card (recommended)

For local inference, SillyTavern's docs recommend an NVIDIA RTX 3000-series card with at least 6GB of VRAM. KoboldCpp can offload part of a model to system RAM, which helps low-VRAM cards, but performance is best when as much as possible fits in VRAM

How much VRAM do you need?

That depends on the model size and how much context you want. As a rough guide, a 4-bit quantised model needs a little over half a gigabyte per billion parameters, plus extra for the context (chat history and character information). Character chats can use a lot of context, because the character card, lorebook entries and chat history are all sent with every message. Our explainers on context length and VRAM and GGUF quantisation go into more detail, and SillyTavern's KoboldCpp page links to a community VRAM calculator for estimating a specific model.

Step 1: Install SillyTavern on Windows

SillyTavern's documentation gives a clear warning first: don't install it into a folder Windows controls or monitors, such as Program Files or System32, and don't run Start.bat with administrator permissions.

  1. Install Node.js (the latest LTS version is recommended) and Git for Windows.

  2. Open File Explorer (Win+E) and create or browse to a folder that isn't controlled by Windows, for example C:\MySpecialFolder.

  3. Click in the address bar, type cmd and press Enter to open a Command Prompt in that folder.

  4. Clone the release branch:

git clone https://github.com/SillyTavern/SillyTavern -b release
  1. When cloning finishes, open the new SillyTavern folder and double-click Start.bat. Node.js installs what SillyTavern needs, the server starts and SillyTavern opens in your web browser.

SillyTavern's docs also describe two alternatives: the SillyTavern Launcher, installed via Git from a Command Prompt, and cloning the repository with GitHub Desktop. Either works if you'd rather avoid the command line.

The docs recommend the release branch for most users. The staging branch gets the newest features several times a day but may break at any time.

Step 1 (alternative): Install SillyTavern on Linux

  1. Install Git and Node.js (the method varies between distributions).

  2. Clone the release branch and move into the folder:

git clone https://github.com/SillyTavern/SillyTavern -b release
cd SillyTavern
  1. Start it with ./start.sh (or bash start.sh).

SillyTavern's Linux docs also describe the SillyTavern Launcher, which installs with chmod +x install.sh && ./install.sh from the cloned SillyTavern-Launcher folder.

By default, SillyTavern stores its settings in config.yaml and its data in the data folder inside the installation directory, which makes backups straightforward. Its config reference lists the default port as 8000.

Step 2: Set up KoboldCpp and load a model

SillyTavern's KoboldCpp guide is written for Windows and an NVIDIA GPU, using KoboldCpp version 1.58, so some labels may differ in newer releases.

  1. Download the latest KoboldCpp release from its GitHub releases page and launch it. If Microsoft Defender shows a warning, the guide says to click Run Anyway.

  2. On the Quick Launch tab, select your GGUF model and your preferred Context Size.

  3. Select Use CuBLAS (the NVIDIA option in the version the guide covers) and check that the GPU ID text matches your graphics card.

  4. The guide advises not ticking Low VRAM, even if you have little VRAM. It also says to untick Use QuantMatMul (mmq) unless you have an NVIDIA 10-series or older card.

  5. Leave GPU Layers at the value KoboldCpp fills in when you load the model, for now.

  6. On the Hardware tab, tick High Priority.

  7. Click Save so you can reload these settings next time, then click Launch.

When the model has loaded, the KoboldCpp console shows the address to connect to. In the docs' example it's http://localhost:5001, with both the Kobold API and an OpenAI-compatible API on port 5001.

Step 3: Connect SillyTavern to KoboldCpp

  1. In SillyTavern, open the API Connections panel.

  2. Select KoboldCpp from the available APIs. SillyTavern's docs list it under local APIs; exact menu wording can vary between versions.

  3. Enter http://localhost:5001 as the API URL and connect.

Once connected, pick a character and start chatting. SillyTavern's docs explain the difference between Text Completion and Chat Completion: with Text Completion, your chat, character description and other prompts are combined into one long string that the model continues. Most Text Completion models have a recommended Instruct Template, usually mentioned on the model's download page, and SillyTavern includes most of them under Advanced Formatting. Choosing the right template helps the model reply properly instead of rambling.

Step 4: Tune GPU layers to fit your VRAM

This is where your hardware matters most. The more of the model's layers sit in VRAM, the faster it runs. SillyTavern's KoboldCpp guide walks through a simple method:

  1. After launching, look in the KoboldCpp console for the lines showing how many layers were offloaded (for example, "offloaded 9/33 layers to GPU") and the CUDA0 buffer size (VRAM used by the model) and CUDA0 KV buffer size (VRAM used for context).

  2. Work out roughly how much VRAM each layer uses by dividing the model's CUDA0 buffer by the number of layers offloaded.

  3. Subtract the context buffer from your card's total VRAM, divide what's left by the per-layer figure and round down. That's your new GPU Layers value.

  4. Load your saved settings, change GPU Layers to the new number, save again and relaunch.

In the docs' worked example on a 12GB card, KoboldCpp's automatic setting offloaded 9 layers using about 9GB of VRAM. Recalculating allowed 12 layers, using about 11.5GB of the 12GB, which the guide says should perform a lot better. Leave a little headroom, especially if you use the same GPU for your desktop, games or a browser with hardware acceleration.

If the whole model fits in VRAM with room to spare, you can increase the context size instead. If it doesn't fit at all, choose a smaller model or a more heavily quantised version.

Step 5: Adjust context and response settings

SillyTavern's common settings control how much text it sends and how long replies can be:

  • Context (tokens): the maximum number of tokens SillyTavern sends as the prompt. A dotted line in the chat marks the cut-off; messages above it aren't sent to the model. Keep this at or below the context size you set in KoboldCpp.

  • Response (tokens): the maximum length of each reply. Longer replies take longer to generate. Enable Streaming if you want to see text as it's written.

  • Temperature: lower values give more predictable text, higher values more varied output. A value of 1 uses the model's original probabilities.

  • Repetition Penalty: discourages repeated words and phrases. A value of 1 disables it.

Optional: Use SillyTavern from another device

By default, SillyTavern only accepts connections from the PC it's running on: the config reference lists listen as false by default and a whitelist containing only the local addresses 127.0.0.1 and ::1. To use it from a phone or laptop on your home network, you'd enable listening and add that device's IP address to the whitelist in config.yaml. SillyTavern's remote connections documentation warns against port forwarding to expose it to the internet and suggests a VPN or tunnelling service such as Tailscale if you need access from outside your home network.

Troubleshooting

  • SillyTavern won't start or install: make sure it isn't in Program Files or another protected folder and that you didn't run Start.bat as administrator.

  • Can't connect to KoboldCpp: check KoboldCpp has finished loading the model and that the URL in SillyTavern matches the one shown in its console.

  • Very slow replies: too few layers may be on the GPU. Follow Step 4, or use a smaller model.

  • Out-of-memory errors or crashes: you've offloaded too many layers or set the context too high. Reduce GPU Layers or context size.

  • Strange or rambling replies: check that the Instruct Template matches your model.

If you're not sure your PC is up to the job, our guide to checking if your PC can run a local LLM is a good place to start.

Our verdict

SillyTavern is one of the most flexible front ends for character chat and creative writing with local AI models, and pairing it with KoboldCpp keeps everything on your own PC. Installation takes a few minutes once Node.js and Git are in place, and connecting the two is as simple as pointing SillyTavern at KoboldCpp's local address. The step that makes the biggest difference is tuning GPU layers so as much of the model as possible sits in your graphics card's VRAM, while leaving room for the long context that character chats tend to use. SillyTavern's own docs recommend at least 6GB of VRAM on an RTX 3000-series card for local inference, and more VRAM gives you more room for bigger models and longer context, while KoboldCpp's ability to offload to system RAM means smaller cards can still take part.

The bottom line

SillyTavern is one of the most flexible front ends for character chat and creative writing with local AI models, and pairing it with KoboldCpp keeps everything on your own PC. Installation takes a few minutes once Node.js and Git are in place, and connecting the two is as simple as pointing SillyTavern at KoboldCpp's local address. The step that makes the biggest difference is tuning GPU layers so as much of the model as possible sits in your graphics card's VRAM, while leaving room for the long context that character chats tend to use. SillyTavern's own docs recommend at least 6GB of VRAM on an RTX 3000-series card for local inference, and more VRAM gives you more room for bigger models and longer context, while KoboldCpp's ability to offload to system RAM means smaller cards can still take part.

Sources

  1. 01SillyTavern documentation, What is SillyTavern?
  2. 02SillyTavern documentation, Windows Installation
  3. 03SillyTavern documentation, Linux/MacOS Install
  4. 04SillyTavern documentation, Installation (branches and data paths)
  5. 05SillyTavern documentation, API Connections
  6. 06SillyTavern documentation, KoboldCpp
  7. 07SillyTavern documentation, Common Settings
  8. 08SillyTavern documentation, config.yaml reference
  9. 09SillyTavern documentation, Remote connections

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Set Up a UPS to Shut Down Your PC Automatically

How-To

How to Set Up a UPS to Shut Down Your PC Automatically

How to make a UPS shut your PC down automatically in a power cut: connect the UPS's USB data cable, install the maker's software (CyberPower PowerPanel Personal as the example), choose Keep Computer Running or Preserve Battery Power, pick shutdown or hibernation, then test it.

Marcus Thorne7 min

Clonezilla vs Rescuezilla: Which Free Disk Imaging Tool Should You Use?

Versus

Clonezilla vs Rescuezilla: Which Free Disk Imaging Tool Should You Use?

Clonezilla vs Rescuezilla: both are free bootable disk imaging and cloning tools that share an image format. Clonezilla adds network destinations, encryption, scripting and mass deployment; Rescuezilla offers a point-and-click desktop, image browsing and extra rescue tools.

Callum Reid6 min

ShareX vs Snipping Tool: Which Free Screenshot Tool Should You Use?

Versus

ShareX vs Snipping Tool: Which Free Screenshot Tool Should You Use?

ShareX vs Snipping Tool: Windows' built-in Snipping Tool is quick and now does local OCR and video snips, while free, open-source ShareX adds scrolling captures, richer annotation, automated after-capture tasks, uploads and many extra tools. Here's which suits you.

Callum Reid7 min