Yes, if only the chat app is reachable, it has its own logins, and the model runner behind it stays on localhost. The common mistake is opening a runner's port to the network or the internet: most runners have no login, so anyone who finds the port gets free use of your hardware and can see whatever is sent to it.
The defaults we checked, and what to change:
- ✓Ollama binds to 127.0.0.1:11434 and its docs describe no login for the local API. Leave it on localhost and let the chat app call it. If you change OLLAMA_HOST to 0.0.0.0, firewall the port to the chat server only.
- ✓KoboldCpp listens on every interface unless you pass --host. Start it with --host 127.0.0.1, and add --password to require an API key.
- ✓llama.cpp server defaults to 127.0.0.1; set --api-key (or an API key file) before binding anywhere else. TextGen has --api-key and --gradio-auth for the same reason.
- ✓vLLM's own security docs say --api-key covers only some endpoints and must not be your only protection. Firewall everything except the API port and keep multi-node traffic on an isolated network.
- ✓Open WebUI makes whoever signs up first the admin, then switches sign-ups off; if you re-enable them, new users wait as pending until approved. Create the admin account before anyone else can reach the server.
Beyond defaults: never port-forward from your router. Remote staff should come in through a VPN, or through a reverse proxy with HTTPS and single sign-on. Patch on a schedule, since these projects release often, and keep personal information off the box unless you've decided it belongs there. We wrote about a runner that gets these defaults right in our post on running a 744B model on a laptop, and about your obligations in the Privacy Act guide for AI in business.