Portainer Templates logo

Portainer Templates

SillyTavern SillyTavern

Stack

AI

Chat frontend for LLMs, built for character roleplay and long-running stories: character cards, group chats, lorebooks, prompt presets and extensions, with OpenAI, Claude, Gemini, OpenRouter, Ollama, KoboldCpp and plenty more as the backend. Source: https://github.com/SillyTavern/SillyTavern

Image details

Architecture: amd64, arm64
Image size: 205 MB
User: sillytavern

Source details

Stars: 36.4k
Forks: 7k
Language: JavaScript
License: AGPL-3.0
Updated: 11 days ago

Configuration

Type
Compose
Platform
linux
Image
ghcr.io/sillytavern/sillytavern:latest
Ports
${SILLYTAVERN_PORT:-8030}:8000
Volumes
/home/node/app/config : sillytavern-config/home/node/app/data : sillytavern-data/home/node/app/plugins : sillytavern-plugins/home/node/app/public/scripts/extensions/third-party : sillytavern-extensions
Env vars
SILLYTAVERN_WHITELISTMODE=falseSILLYTAVERN_BASICAUTHMODE=trueSILLYTAVERN_BASICAUTHUSER_USERNAME=${SILLYTAVERN_USERNAME:-user}SILLYTAVERN_BASICAUTHUSER_PASSWORD=${SILLYTAVERN_PASSWORD:?Set a password}SILLYTAVERN_HEARTBEATINTERVAL=30SILLYTAVERN_PASSWORD=''SILLYTAVERN_USERNAME=userSILLYTAVERN_PORT=8030
Restart
unless-stopped
Source

Notes

Set a password before you deploy, since the stack won't start without one. Then open http://<your-host>:8030 (or whichever port you picked), and your browser will pop up a login box for the username and password. It does nothing until it's connected to a model: click the plug icon at the top (API Connections), pick Chat Completion for OpenAI, Claude, Gemini or OpenRouter, or Text Completion for something like KoboldCpp or Ollama, and paste in the key or the address. A model on your own machine needs its LAN address, like http://192.168.1.20:11434, since localhost is the container itself. API keys are saved on the server in plain text. Characters, chats, settings and backups live in the sillytavern-data volume, extensions installed for everyone in sillytavern-extensions, and config.yaml in sillytavern-config, though the login set here always wins over that file. To change the password, change it on the form and update the stack. Put it behind HTTPS before it goes anywhere near the internet, since basic auth sends the password with every request. Docs: docs.sillytavern.app

Standalone Install

Select an install method, to see config/commands for deploying SillyTavern

Installation method

Install on Portainer

Import all app templates into your Portainer instance, for easy 1-click deploys

  1. Ensure both Docker and Portainer are installed, and up-to-date
  2. Log into your Portainer web UI
  3. Under Settings → App Templates, paste the below URL
  4. Head to Home → App Templates, and the list of apps will show up
  5. Select SillyTavern, fill in any config options, and hit Deploy

Template Import URL

https://raw.githubusercontent.com/Lissy93/portainer-templates/main/templates.json
Show Me demo
Original stackfile

The compose file this template deploys, straight from its repo:

services:
  sillytavern:
    image: ghcr.io/sillytavern/sillytavern:latest
    restart: unless-stopped
    ports:
      - "${SILLYTAVERN_PORT:-8030}:8000"
    environment:
      SILLYTAVERN_WHITELISTMODE: "false"
      SILLYTAVERN_BASICAUTHMODE: "true"
      SILLYTAVERN_BASICAUTHUSER_USERNAME: ${SILLYTAVERN_USERNAME:-user}
      SILLYTAVERN_BASICAUTHUSER_PASSWORD: ${SILLYTAVERN_PASSWORD:?Set a password}
      SILLYTAVERN_HEARTBEATINTERVAL: "30"
    volumes:
      - sillytavern-config:/home/node/app/config
      - sillytavern-data:/home/node/app/data
      - sillytavern-plugins:/home/node/app/plugins
      - sillytavern-extensions:/home/node/app/public/scripts/extensions/third-party
    healthcheck:
      test: ["CMD", "node", "src/healthcheck.js"]
      interval: 30s
      timeout: 10s
      start_period: 20s
      retries: 3

volumes:
  sillytavern-config:
  sillytavern-data:
  sillytavern-plugins:
  sillytavern-extensions:

Or deploy it directly from the source:

git clone https://github.com/NotAFlightRisk/portainer-templates-extras
cd portainer-templates-extras
docker compose -f apps/sillytavern/compose.yml up -d

More install options in our documentation, or see SillyTavern/SillyTavern for app-specific guidance.


!cover

SillyTavern provides a single unified interface for many LLM APIs (KoboldAI/CPP, Horde, NovelAI, Ooba, Tabby, OpenAI, OpenRouter, Claude, Mistral and more), a mobile-friendly layout, Visual Novel Mode, Automatic1111 & ComfyUI API image generation integration, TTS, WorldInfo (lorebooks), customizable UI, auto-translate, more prompt options than you'd ever want or need, and endless growth potential via third-party extensions.
We have a Documentation website to answer most of your questions and help you get started.

What is SillyTavern?

SillyTavern (or ST for short) is a locally installed user interface that allows you to interact with text generation LLMs, image generation engines, and TTS voice models.
Beginning in February 2023 as a fork of TavernAI 1.2.8, SillyTavern now has over 300 contributors and 3 years of independent development under its belt, and continues to serve as a leading software for savvy AI hobbyists.

Our Vision

  1. We aim to empower users with as much utility and control over their LLM prompts as possible. The steep learning curve is part of the fun!
  2. We do not provide any online or hosted services, nor programmatically track any user data.
  3. SillyTavern is a passion project brought to you by a dedicated community of LLM enthusiasts, and will always be free and open sourced.

Do I need a powerful PC to run SillyTavern?

The hardware requirements are minimal: it will run on anything that can run NodeJS 20 or higher. If you intend to do LLM inference on your local machine, we recommend a 3000-series NVIDIA graphics card with at least 6GB of VRAM, but actual requirements may vary depending on the model and backend you choose to use.

Questions or suggestions?

Discord server

| !discord-shield-badgediscord-link | Join our Discord community! Get support, share favorite characters and prompts. | | :---------------------------------------- | :----------------------------------------------------------------------------------------------------------------- |
Or get in touch with the developers directly:

I like your project! How do I contribute?

  1. Send pull requests. Learn how to contribute: CONTRIBUTING.md
  2. Send feature suggestions and issue reports using the provided templates.
  3. Read this entire readme file and check the documentation website first, to avoid sending duplicate issues.

Screenshots

image image

Installation

For detailed installation instructions, please visit our documentation:

License and credits

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
  • TavernAI 1.2.8 by Humi: MIT License
  • Portions of CncAnon's TavernAITurbo mod used with permission
  • Visual Novel Mode inspired by the work of PepperTaco ()
  • Noto Sans font by Google (OFL license)
  • Lexer/Parser by Chevrotain (Apache-2.0 license)
  • Icon theme by Font Awesome (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
  • Default content by @OtisAlejandro (Seraphina character and lorebook) and @kallmeflocc (10K Discord Users Celebratory Background)
  • Docker guide by @mrguymiah and @Bronya-Rand
  • kokoro-js library by @hexgrad (Apache-2.0 License)

Top Contributors

Contributors

Check the logs first

Nine times out of ten the logs tell you exactly what went wrong.

  • In Portainer, go to Containers, click the container, then Logs. Or run docker logs <container>
  • Exit codes help too: 137 means killed, usually out of memory. 126 or 127 means the command inside the image is broken.

Image won't pull

Test the pull directly on the host: docker pull ghcr.io/sillytavern/sillytavern:latest

  • "manifest unknown" means the tag no longer exists. This template uses latest, so try pinning a specific version instead.
  • "toomanyrequests" is the Docker Hub rate limit. Log in with docker login to raise it.
  • "no space left on device" means a full disk. Reclaim space with docker system prune

"exec format error"

This means the image was built for a different CPU architecture than your server.

  • This image supports: amd64, arm64
  • Check yours with uname -m: x86_64 is amd64, aarch64 is arm64. Raspberry Pi and other ARM boards are the usual culprits.

Container keeps restarting

The unless-stopped restart policy relaunches the app after every crash, so the real error can scroll past.

  • Check the logs right after a restart, the last few lines before it died are the useful ones.
  • Get the exit code with docker inspect <container> --format '{{.State.ExitCode}}'
  • Still stuck? Redeploy once with the restart policy set to no so the failure stays visible.

Required settings are blank

SILLYTAVERN_PASSWORD has no default value, and sillytavern may crash or misbehave if left empty.

  • Fill it in on the deploy screen before hitting deploy.

Stack won't deploy

Compose stacks fail fast on small mistakes, and Portainer shows the reason just above the editor.

  • YAML only accepts spaces for indentation, a single tab breaks the whole file.

Raise an issue

Found something which isn't working as it should? Here's how to report it.

A Compose stack

SillyTavern is a Compose stack, a set of containers defined in one file and brought up together by Portainer, then started and stopped as a single app.

The app image

An image is the app packed up ready to go, everything SillyTavern needs bundled into one download. This template pulls ghcr.io/sillytavern/sillytavern:latest, which Docker fetches once (about 205 MB) and then starts your own copy from.

Where the image comes from

Docker pulls its images from registries, public libraries of ready-built apps. SillyTavern's comes from the GitHub Container Registry, published by sillytavern.

Version tags

The bit after the colon in the image name is the version tag. Here it's latest, which always points at the newest build, so a redeploy can bump you to a newer release without you asking. Pin a specific tag if you would rather stay on one version.

Which machines it runs on

Every image is built for particular CPU types. This one ships for amd64, arm64, so it runs on both regular x86 servers and ARM boards like a Raspberry Pi.

Volumes

A volume is where SillyTavern keeps its files so they survive an update or a restart. Without one, anything it saves would sit inside the container and vanish the moment it's recreated. This template mounts:

  • /home/node/app/config kept in the sillytavern-config volume Docker manages
  • /home/node/app/data kept in the sillytavern-data volume Docker manages
  • /home/node/app/plugins kept in the sillytavern-plugins volume Docker manages
  • /home/node/app/public/scripts/extensions/third-party kept in the sillytavern-extensions volume Docker manages

Environment variables

Environment variables are the settings you hand over when you deploy, things like a password or a timezone. SillyTavern takes 8 of them, and 2 need a value before it'll start properly:

  • SILLYTAVERN_WHITELISTMODE, defaults to false
  • SILLYTAVERN_BASICAUTHMODE, defaults to true
  • SILLYTAVERN_BASICAUTHUSER_USERNAME, defaults to user
  • SILLYTAVERN_BASICAUTHUSER_PASSWORD, needs a value
  • SILLYTAVERN_HEARTBEATINTERVAL, defaults to 30
  • SILLYTAVERN_PASSWORD, needs a value. What your browser will ask for when you open it. Generate one with: openssl rand -hex 16
  • SILLYTAVERN_USERNAME, defaults to user. Username
  • SILLYTAVERN_PORT, defaults to 8030. Host port for the web UI

Restart policy

The restart policy here is unless-stopped, so Docker restarts SillyTavern after a crash or reboot, but leaves it off when you stop it on purpose. You can change this on the deploy screen. The choices are no (never restart), on-failure (only after a crash), unless-stopped (restart unless you stop it), and always (bring it back no matter what).

Health check

A health check is how Docker tells whether SillyTavern is really working, not just switched on. It runs node src/healthcheck.js every 30s and flags the container as unhealthy if that keeps failing.

Networking

Nothing custom is set, so SillyTavern sits on Docker's default bridge network: its own private space that reaches the outside world only through the ports it publishes.

Container name

Once it's deployed, Portainer names the container sillytavern. That's what you'll spot in the containers list and use in commands like docker logs sillytavern.

Platform

The platform is linux, the kind of system the container is built to run on. Docker and Portainer handle this on a normal Linux server.

Open source license

SillyTavern is open source, released under the AGPL-3.0 license. In plain terms the code is out in the open, so you're free to run it and change it to fit what you need.

Portainer app templates

Zooming out, this whole page comes from a Portainer app template: a short recipe telling Portainer how to set SillyTavern up. Add the template list to Portainer once, then deploying SillyTavern is a click rather than a wall of config.