Already have vLLM running? Skip to Step 3: Install the Tokios connector. If you just want the short version, see vLLM remote access.
Prerequisites
Before you start, make sure you have:- 1 NVIDIA GPU with CUDA support (RTX 3090, 4090, A100, or DGX Spark).
- CUDA 12.1+ installed (run
nvidia-smito check). - Python 3.9–3.12 with
pipavailable. - A Tokios account (free to sign up).
Step 1: Install and launch vLLM
Install vLLM with pip:127.0.0.1 — don’t bind wider:
http://127.0.0.1:8000.
Verify it’s running
In another terminal:Common launch configurations
Pick the flags that match your hardware:Multi-GPU: tensor parallelism
For models that don’t fit in 1 GPU, use tensor parallelism across multiple GPUs on the same machine:Windows (WSL2)
vLLM doesn’t run natively on Windows. Use Docker inside WSL2 with GPU passthrough:Step 2: Test locally
Before setting up remote access, confirm vLLM responds correctly:Step 3: Install the Tokios connector
The connector dials out from your machine tohttps://api.tokios.com. No inbound port opens. No port forwarding. No DNS record.
Sign in at tokios.com/console, open the Setup tab, and click Start pairing. Tokios shows a one-time claim code like TKS-XXXX-XXXX, valid for about 15 minutes.
Run the install command on the machine running vLLM:
Windows
macOS
Linux
tokios-connector installed? Pass the code directly:
ct-tok-…) is delivered over the tunnel once approved — you never see it on screen or paste it into a file.
Step 4: Point the connector at vLLM
vLLM’s OpenAI-compatible server speaks the exact surface Tokios expects. For a single model, the console’s Setup wizard defaults tohttp://127.0.0.1:8000/v1 automatically.
For multiple models or a custom config, create a tokios-connector.json:
Step 5: Register a deployment
In the Models tab, register your vLLM model and choose a public name — for example,mistral-tunnel.
That public name is what clients send in the model field. It’s decoupled from vLLM’s local model id, so you can change the upstream model without breaking client configs.
Step 6: 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.
Step 7: Connect from any client
Your vLLM model is now reachable athttps://api.tokios.com. Here’s how to call it:
Security model: outbound-only tunnel
Here’s what makes this different from SSH tunnels, port forwarding, or Tailscale:
Your vLLM process never changes. It stays on
127.0.0.1:8000, unreachable from the outside. The connector is the only thing that can reach it, and the connector only dials out.
You can keep vLLM’s
--api-key flag as defense in depth on the loopback connection between the connector and vLLM. Client requests through Tokios are authenticated with your sk-tok-… key — the connector is what’s allowed to reach 127.0.0.1:8000 at all.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 serve more than one model?
Can I serve more than one model?
Yes. Register additional deployments in the Models tab, or use a
tokios-connector.json config to define multiple upstreams and routes. See Connector config.What happens if vLLM restarts?
What happens if vLLM restarts?
The connector automatically reconnects to vLLM when it comes back up. No manual intervention needed — just restart vLLM and the endpoint recovers.
Does this work on Windows?
Does this work on Windows?
Yes. Run vLLM inside WSL2 with Docker (see the WSL2 config above), then install the Tokios connector on the Windows host or inside WSL2 — either works.
Your vLLM, accessible from anywhere
vLLM keeps running exactly as it does today — on localhost, on your GPU, with no inbound ports. The connector only dials out. Everything past that — authentication, routing, streaming, key management — is one endpoint you call from any machine, teammate, or agent you 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.
Compatible clients
39 clients confirmed working — coding agents, chat apps, SDKs.
Remote access comparison
How Tokios compares to Tailscale, Cloudflare Tunnel, and SSH tunnels.