http://127.0.0.1:1234/v1 — it isn’t reachable from another machine. LM Studio does have a serve on local network option, but that’s a LAN feature: it binds beyond loopback for devices on the same network, and authentication is off by default. Keep LM Studio on localhost and run the Tokios connector next to it instead: the connector dials out to https://api.tokios.com, and your tools, teammates, or agents call one authenticated endpoint from anywhere.
LM Studio’s network serving stops at your LAN
LM Studio’s serve on local network toggle is documented as exactly that — local network. Turning it on binds the server to your machine’s network interface (not just127.0.0.1) so other devices on the same Wi-Fi or LAN can reach it, and LM Studio shows a warning when you enable it because auth is off by default. That’s a reasonable fit for reaching your own server from another device on the same network. It doesn’t extend to a teammate on another network, a hosted agent, or anything you’d want to reach over the open internet with a real credential behind it.
This isn’t a knock on LM Studio’s local-network serving — it does what it says for devices on your LAN. Tokios solves a different problem: an authenticated endpoint reachable from anywhere, without opening LM Studio to your network at all. LM Studio is a first-class Tokios backend, alongside Ollama, llama.cpp, and vLLM.
The outbound-only way
1
Load a model and start LM Studio's server
Open LM Studio, go to the Developer (or Local Server) tab, load a model, and click to start the server. Leave serve on local network off — Tokios doesn’t need it. LM Studio keeps listening on the default
http://127.0.0.1:1234/v1.2
Pair the Tokios connector
Sign in at tokios.com/console, open the Setup tab, and click Start pairing. Tokios shows a one-time claim code like Already have Back in the console, approve the device on the Setup or Connectors tab. The connector’s token is delivered over the tunnel once approved — you never see it on screen or paste it into a file.
TKS-XXXX-XXXX, valid for about 15 minutes.On the machine running LM Studio, run the install one-liner for your OS:Windows
macOS
Linux
tokios-connector installed? Pass the code directly instead:3
Point the connector at LM Studio's /v1 API
LM Studio’s built-in server already speaks the OpenAI-compatible surface Tokios expects. For the basic single-model path, the console’s Setup wizard uses See Connector config for the full multi-model file format.
http://127.0.0.1:1234/v1 as the upstream automatically. If you’re serving multiple models through a tokios-connector.json config, set the upstream BaseUrl explicitly:4
Register a deployment
In the Models tab, register the LM Studio model and choose a public name — for example,
lmstudio-tunnel. That public name, not LM Studio’s local model id, is what clients send in the model field.5
Create an API key
In the Keys tab, click Create key. Optionally scope it to specific deployments with model-name patterns (comma-separated globs,
* for all). Copy the sk-tok-… key now — it’s shown only once.Use it from anywhere
Once you have a deployment name and an API key, any OpenAI- or Anthropic-compatible client can reach your LM Studio model — from another machine, a teammate’s laptop, or a hosted agent.FAQ
Does streaming work?
Does streaming work?
Yes. Set
"stream": true and Tokios returns standard server-sent events (SSE) in OpenAI or Anthropic format, depending on which API surface you called.Can I expose more than one model loaded in LM Studio?
Can I expose more than one model loaded in LM Studio?
Yes. Register additional deployments in the Models tab, or use a
tokios-connector.json config file to define multiple upstreams and routes for a single connector. See Connector config.Do I need to keep the LM Studio app open, or can the connector run as a service?
Do I need to keep the LM Studio app open, or can the connector run as a service?
LM Studio’s server needs the app running to serve requests. The
tokios-connector process itself can run unattended next to it — see Connector config for the config-file options used when running the connector long-term, such as for multiple models or as a background service.Do I still need LM Studio's serve on local network option?
Do I still need LM Studio's serve on local network option?
No. Leave it off. The connector reaches LM Studio over loopback (
127.0.0.1:1234), so LM Studio never needs to bind beyond localhost — Tokios is what makes the model reachable from other machines, authenticated with your sk-tok-… key.Your model never leaves your machine — your endpoint works everywhere
LM Studio keeps doing exactly what it does today, on localhost, with no inbound ports and no network-serving toggle switched on. The connector only dials out. Everything past that — auth, routing, streaming — is one endpoint you can call from any machine, teammate, or agent you choose to give a key to.Quickstart
Pair a connector and register your first model end to end.
API keys
Create, scope, and rotate
sk-tok-… keys for teammates and agents.