setup

Connect SillyTavern to KoboldCpp and TabbyAPI

Connect SillyTavern to KoboldCpp or TabbyAPI. Get the right local ports and API keys, then set context length, ContextShift, and samplers.

Illustrated title card for the guide: Connect SillyTavern to KoboldCpp and TabbyAPI

In SillyTavern, open API Connections and choose Text Completion. Select KoboldCpp for http://127.0.0.1:5001 or TabbyAPI for http://127.0.0.1:5000, then click Connect once the selected backend has loaded a model. These are the default ports for this setup, with SillyTavern and the backend running directly on the same machine. KoboldCpp setup in SillyTavern · TabbyAPI setup in SillyTavern · SillyTavern 1.19.1 interface

Local connection settings

API TypeAPI URLCredential
KoboldCpphttp://127.0.0.1:5001If you configured a password, enter it in koboldcpp API key (optional).
TabbyAPIhttp://127.0.0.1:5000Copy the backend’s API key into Tabby API key.

Enter the base URL as shown. If you change the port in either backend, use that port in API URL too. KoboldCpp connection documentation · TabbyAPI quickstart · TabbyAPI server options

Connect KoboldCpp

  1. In the KoboldCpp launcher’s Quick Launch tab, select your GGUF model and set Context Size. SillyTavern’s KoboldCpp setup guide · GGUF example
  2. On the Network tab, set Host: to 127.0.0.1 for same-machine access. Keep the default Port: or enter your chosen port there. KoboldCpp security settings · KoboldCpp port settings
  3. Click Launch and wait for the model to load and the console to report the listening port. In SillyTavern, enter the matching base URL and click Connect. Open a character chat and send a short message to check for a reply. KoboldCpp launch and connection steps

Connect TabbyAPI

Copy config_sample.yml to config.yml. Edit the existing network and model sections to match the example, replacing your-model-folder with the folder name of your installed model under models. TabbyAPI getting started · TabbyAPI server options

network:
  host: 127.0.0.1
  port: 5000
  disable_auth: false
model:
  model_dir: models
  model_name: your-model-folder

Run start.bat on Windows or start.sh on Linux. Copy the API key from the TabbyAPI terminal into SillyTavern’s Tabby API key field. The admin key is for privileged operations such as loading and unloading models. TabbyAPI startup scripts · TabbyAPI authentication · SillyTavern’s TabbyAPI quickstart

Click Connect and send a short message in a character chat. If TabbyAPI reports that its port is already in use, change network.port, relaunch TabbyAPI and update API URL in SillyTavern. SillyTavern 1.19.1 interface · TabbyAPI port behavior

Set the context budget and ContextShift

WhereWhat to set
KoboldCpp launcherSet Context Size in Quick Launch or Context. Stay at or below the model’s supported context length.
TabbyAPIFor a model loaded at startup, set model.max_seq_len in config.yml if you need to specify the maximum sequence length.
SillyTavernOpen AI Response Configuration. Set Context (tokens) for the combined prompt and reply budget, and set Response (tokens) to the maximum reply length you want.

SillyTavern subtracts the response allowance from the context setting to determine how much prompt it can send. Messages above the dotted line in the chat fall outside that prompt. KoboldCpp context settings · TabbyAPI model options · SillyTavern context settings · SillyTavern 1.19.1 interface

For KoboldCpp, Derive context size from backend in API Connections lets SillyTavern use the server’s context size if the server reports it as a number when you connect. SillyTavern 1.19.1 interface · SillyTavern 1.19.1 connection behavior

In KoboldCpp’s Context tab, leave Use FastForwarding and Use ContextShift enabled when supported. When the context fills up, ContextShift drops the oldest tokens and reuses the rest of the cached context. To turn it off, clear Use ContextShift or launch with --noshift. KoboldCpp context reuse · KoboldCpp 1.125.1 launch arguments

KoboldCpp disables ContextShift when sliding window attention (SWA) is active, for MRoPE models, or when Parallel Requests: is above 1. On a model using SWA, turning off Allow SWA to use ContextShift increases KV cache memory. KoboldCpp context reuse conditions

Set samplers and check TabbyAPI overrides

In SillyTavern, open AI Response Configuration and select a preset under Text Completion presets. Adjust Temperature to change how strongly sampling favors likely tokens. Adjust Top P to change the cumulative probability threshold for the candidate pool. Use Save preset as to keep your changes under a separate name. SillyTavern 1.19.1 preset controls · SillyTavern sampler settings

With KoboldCpp selected, use Load default order under Samplers Order to restore its default sampler sequence. SillyTavern shows the sequence from top to bottom. SillyTavern 1.19.1 sampler order controls · SillyTavern 1.19.1 sampler order behavior

If changing Temperature in SillyTavern seems to have no effect with TabbyAPI, check the server’s sampling section for an inline override and check any preset named by override_preset. The loaded model can also carry overrides in tabby_config.yml. TabbyAPI sampler overrides · TabbyAPI sampling options

For example, this inline setting in TabbyAPI’s config.yml supplies a temperature fallback. A temperature sent by SillyTavern takes precedence over this fallback. With force: true, the override can replace the temperature sent by the client. TabbyAPI inline overrides and precedence

sampling:
  temperature:
    override: 0.5
    force: false

Save connections for switching

With the first backend connected and the sampler preset selected, click Create under Connection Profiles in API Connections. Review the settings and name the profile for that backend, then repeat for the other backend. Select the saved profile to restore its API type, URL, key selection and preset. SillyTavern connection profiles

Profiles remember which preset is selected. Save any new sampler edits to the preset before switching profiles. SillyTavern connection profile settings

Browse Roleplay GPU Guide articles or search the site for KoboldCpp.

Evidence and limits

The official SillyTavern docs, the 1.19.1 interface source, the KoboldCpp manual and 1.125.1 launch arguments, and TabbyAPI’s wiki were checked on November 26, 2026. The steps were documented without a local run.

Sources

  1. SillyTavern documentation: How to use a self-hosted model
  2. SillyTavern documentation: TabbyAPI
  3. SillyTavern 1.19.1 interface source
  4. KoboldCpp documentation: Connect SillyTavern and other apps
  5. TabbyAPI wiki: Server options
  6. SillyTavern documentation: KoboldCpp
  7. KoboldCpp documentation: Passwords and security
  8. TabbyAPI wiki: Getting started
  9. TabbyAPI wiki: Usage
  10. KoboldCpp documentation: Context size
  11. SillyTavern documentation: Common settings
  12. SillyTavern 1.19.1 text completion settings source
  13. KoboldCpp documentation: Reusing context between requests
  14. KoboldCpp 1.125.1 launcher source
  15. TabbyAPI wiki: Sampler overrides
  16. SillyTavern documentation: Connection profiles

Related