SillyTavern is easy to open up to other devices: change a couple of settings and you can chat with your local AI models from a phone or laptop anywhere in the house. But it stores your chats, characters and API keys, and its own documentation warns: "NEVER HOST ANY INSTANCES ON THE OPEN INTERNET WITHOUT ENSURING PROPER SECURITY MEASURES FIRST." Here's how to lock it down, step by step, using the settings SillyTavern already provides.
The steps and default values come from SillyTavern's official documentation on remote connections, config.yaml and multi-user mode, read on 27 November 2026. Settings can change between versions, so check the documentation for your release.
Before you start: find the right config.yaml
Almost everything here is set in config.yaml. SillyTavern creates it the first time it runs, so start SillyTavern once before you edit anything. The documentation points out that you may find two files with that name: edit the one in the SillyTavern root folder (SillyTavern/config.yaml), not the one in SillyTavern/default/. Restart SillyTavern after every change.
Step 1: Update SillyTavern first
Security settings don't help if the app itself has known holes. Version 1.19.1, released on 19 November 2026, fixes three security flaws in 1.19.0 and earlier, including one that let crafted character cards run scripts in the app. Our news report on the SillyTavern 1.19.1 security update has the details. On a git install, git pull in the SillyTavern folder updates it; on Windows, SillyTavern's documentation suggests trying UpdateAndStart.bat first.
Step 2: Only listen on the network if you need to
By default, SillyTavern only accepts connections from the PC it's running on. The listen setting controls this, and its default is false. You can see which mode you're in from the console when SillyTavern starts:
If you only ever use SillyTavern on the same PC, leave listen: false and you're done with the network side. If you want to use it from another device, set listen: true and carry on.
Step 3: Keep the IP whitelist on, and make it tight
When listen is on, SillyTavern says you must configure at least one access control method, or the server won't start. The simplest is the IP whitelist. whitelistMode is on (true) by default, and the default whitelist only allows the PC itself (::1 and 127.0.0.1).
Add only the devices you need. The documentation's example for two specific devices looks like this:
whitelist:
- ::1
- 127.0.0.1
- 192.168.0.2
- 192.168.0.5
Keep 127.0.0.1 in the list, or you won't be able to connect from the host PC. The documentation also shows how to allow your whole home network with private ranges such as 192.168.0.0/16, which is convenient but lets in every device on your Wi-Fi. Listing your own devices' addresses is tighter. Never use 0.0.0.0/0, which allows every IPv4 address. SillyTavern's documentation also advises editing the whitelist in config.yaml rather than using the older whitelist.txt file, which takes precedence if it exists.
Step 4: Add a password with basic authentication
A whitelist checks where a connection comes from, not who's making it. To ask for a username and password as well, turn on HTTP basic authentication:
basicAuthMode: true
basicAuthUser:
username: "pick-your-own"
password: "a-long-unique-password"
Change both values. SillyTavern's documented defaults are user and password. Basic authentication only works when listen is on, and the documentation is clear that it "does not provide strong security": the username and password travel in plain text unless you also use HTTPS (Step 7).
Step 5: Use user accounts if more than one person uses it
If family members or housemates share your SillyTavern server, turn on multi-user mode with enableUserAccounts: true and give each account a password. Setting enableDiscreetLogin: true hides the list of users on the login screen, so people have to type their handle. You can also set perUserBasicAuth: true (with basicAuthMode and enableUserAccounts on) so basic authentication uses each account's own login; make sure an account with a password exists before you enable it.
Be realistic about what this protects. SillyTavern's documentation says user passwords "provide basic privacy between users" and "are not a security feature", that all user data, including chat history and API keys, is stored in plain text on the server, and: "Do not use SillyTavern on a public server or with untrusted users."
Step 6: Turn on host whitelisting
If you use SillyTavern over the network without HTTPS, the documentation says it's "highly recommended" to enable request host verification, which helps prevent attacks such as DNS rebinding:
hostWhitelist:
enabled: true
It's off by default. If you reach SillyTavern through a tunnel with its own hostname, add that name under hostWhitelist.hosts; you don't need to add localhost or IP addresses such as 127.0.0.1, which SillyTavern always treats as trusted.
Step 7: Encrypt the connection with HTTPS
To encrypt traffic between your devices and SillyTavern, start it with the --ssl flag or set ssl.enabled: true in config.yaml. By default SillyTavern looks for its certificate and key in the certs folder (./certs/privkey.pem for the key), and you can point it elsewhere with --keyPath and --certPath. The documentation suggests certbot as the simplest way to get a certificate. If you run SillyTavern in Docker, it advises mounting certificates at runtime rather than building them into the image.
Step 8: Don't port-forward; use a VPN or tunnel for remote access
SillyTavern's documentation says you should not use port forwarding to expose your server to the internet, and recommends a VPN or a tunnelling service such as Cloudflare Zero Trust, ngrok or Tailscale instead. You don't need to change anything on your router to use SillyTavern on your home network. Our guide to accessing your home PC remotely with Tailscale explains the VPN approach.
Step 9: Leave the safety settings alone and check who's connecting
A few more habits help:
Don't disable built-in protections. config.yaml includes overrides such as disableCsrfProtection and securityOverride (which skips startup security checks). Both default to false, and SillyTavern marks them "not recommended". Leave them off.
Consider turning off full-data backups. backups.allowFullDataBackup is on by default. If you never use SillyTavern's full backup archive, setting it to false removes a feature you don't need; the 1.19.1 fixes involved this backup route.
Watch the console. New connections appear in the console and in access.log in SillyTavern's data folder. A refused connection shows a "Forbidden: Connection attempt from..." message, which tells you the whitelist is doing its job.
Allow it through the firewall on private networks only. On Windows 11, SillyTavern's guide says your network must use the Private profile for other devices to connect, and you may need to allow Node.js through Windows Firewall. On Linux, it gives sudo ufw allow 8000 as an example.
If you also serve models to other devices, our guide to sharing Ollama on your local network covers the back end side.
Our verdict
To secure SillyTavern, update to 1.19.1 or later, leave the listen setting off unless you need other devices to connect, and if you do turn it on, keep the IP whitelist tight, add basic authentication with your own username and password, and enable host whitelisting. Use HTTPS if you send passwords over the network, use a VPN or tunnel rather than port forwarding for access from outside your home, and don't treat user-account passwords as real security: SillyTavern stores data in plain text and says not to use it with untrusted users. We haven't tested every configuration ourselves. New to SillyTavern? Start with our SillyTavern setup guide.