# Self-host SillyTavern

> A local chat front end for language models with characters, lorem books and extensions, bringing your own model API. AGPL-3.0 licensed. Sign in with the admin user and the generated password.

- Page: https://levelrail.com/templates/sillytavern/
- JSON: https://levelrail.com/templates/sillytavern.json
- Category: AI
- Licence: AGPL-3.0-only (Network copyleft (AGPL) license)
- Source: https://github.com/SillyTavern/SillyTavern
- Upstream docs: https://github.com/SillyTavern/SillyTavern

## Requirements
- Memory: about 256 MiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: 1.19.0

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| sillytavern | ghcr.io/sillytavern/sillytavern | 1.19.0 | 8000 | config -> /home/node/app/config; data -> /home/node/app/data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| sillytavern | SILLYTAVERN_BASICAUTHMODE | preset |
| sillytavern | SILLYTAVERN_BASICAUTHUSER_PASSWORD | generated |
| sillytavern | SILLYTAVERN_BASICAUTHUSER_USERNAME | preset |
| sillytavern | SILLYTAVERN_LISTEN | preset |
| sillytavern | SILLYTAVERN_WHITELISTMODE | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy sillytavern --name my-sillytavern
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/sillytavern/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## First run
1. Sign in with user admin and the generated password, then add your model API key under API Connections.

## Questions

### Can I deploy SillyTavern on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for SillyTavern, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image ghcr.io/sillytavern/sillytavern:1.19.0 is what you deploy there.

Self-host SillyTavern, SillyTavern docker compose file, deploy SillyTavern on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
