https://api.tokios.com, and your tools, teammates, or agents call one authenticated endpoint from anywhere.
SGLang exposes an OpenAI-compatible Chat Completions API, so it works with Tokios like any OpenAI-compatible server: the connector forwards to whatever
/v1 BaseUrl you set, regardless of which server implements that surface. Ollama, llama.cpp, vLLM, and LM Studio are the backends Tokios documents most closely (see Supported backends), but SGLang works the same way. If you hit a gap, it’s likely in SGLang’s OpenAI compatibility itself rather than in Tokios.The outbound-only way
1
Run SGLang locally, as usual
Keep SGLang on The default
127.0.0.1 — don’t bind it wider than loopback. Launch its OpenAI-compatible server:--port value and whether SGLang binds to 127.0.0.1 or 0.0.0.0 out of the box can vary by version — bind it to loopback explicitly if it doesn’t already.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 SGLang, run the install one-liner for your OS:Windows
macOS
Linux
tokios-connector installed? Pass the code directly instead:3
Point the connector at SGLang's /v1 API
SGLang’s server speaks the same OpenAI Chat Completions surface Tokios expects. For the basic single-model path, the console’s Setup wizard lets you enter the upstream manually — use See Connector config for the full multi-model file format.
http://127.0.0.1:30000/v1. If you’re serving multiple models through a tokios-connector.json config, set the upstream BaseUrl explicitly, including /v1:4
Register a deployment
In the Models tab, register the SGLang model and choose a public name — for example,
sglang-tunnel. That public name, not SGLang’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 SGLang model — from another machine, a teammate’s laptop, or a hosted agent.FAQ
Is SGLang officially supported by Tokios?
Is SGLang officially supported by Tokios?
Ollama, llama.cpp, vLLM, and LM Studio are the backends Tokios documents most closely — see Supported backends. But the connector doesn’t inspect which server is behind the upstream — it forwards requests to whatever
BaseUrl you configure, and SGLang’s launch server speaks the same OpenAI Chat Completions surface those backends do, so it works the same way. If SGLang’s OpenAI compatibility diverges from the others in some edge case, that’s a SGLang-side detail rather than a Tokios one.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 serve more than one model through SGLang?
Can I serve more than one model through SGLang?
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 — useful if you run more than one SGLang process. See Connector config.Your model never leaves your machine — your endpoint works everywhere
SGLang keeps doing exactly what it does today, on localhost, with no inbound ports and no endpoints exposed beyond/v1. 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.
Supported backends
See the full list of named backends and default upstream ports.
API keys
Create, scope, and rotate
sk-tok-… keys for teammates and agents.