Overview
Tailscale is a mesh VPN built on WireGuard. You install it on your model server and every client device, and each device gets a stable IP on a private network (a “tailnet”). Traffic flows peer-to-peer over encrypted WireGuard — no inbound port, no public IP required. For LLM use, the typical setup looks like this: install Tailscale on the machine running Ollama or vLLM, install it on your laptop and phone, then call the model at its Tailscale IP (100.x.y.z:11434). It works well when you control every device that needs access.
Tokios takes a different approach. Instead of a VPN mesh, it provides an outbound-only tunnel with an API gateway in front. You install 1 connector on the model server, create per-user API keys in a dashboard, and any HTTP client — a coding agent, a chat app, a curl script — calls a single endpoint at api.tokios.com. No client software needed on the caller’s side.
Comparison table
Where Tailscale wins
- Free for personal use. Up to 6 users and 100 devices on the free plan. For a solo dev or a small family of devices, that’s $0.
- Peer-to-peer latency. Once the WireGuard tunnel is established, traffic flows directly between devices (when possible). No intermediary server in the data path.
- Mature ecosystem. Tailscale has been in production since 2019. It’s well-documented, widely deployed, and integrates with dozens of identity providers.
- Tailscale Funnel and LM Link. Funnel exposes a tailnet service on a public
*.ts.netURL (ports443,8443,10000only). LM Studio’s LM Link feature uses Tailscale under the hood for one-click sharing. - Works offline. With Headscale as a self-hosted coordination server, Tailscale works on a fully airgapped network. Tokios requires internet to reach its gateway.
- Full infrastructure control. You own every node. No third-party service sits between your client and your model.
Where Tokios wins
- Per-user API keys. Each
sk-tok-…key is scoped to specific deployments. Revoke one key without touching others. Tailscale has no per-request auth — anyone on the tailnet reaches the model with no credential. - No client software needed. Any HTTP client can call
api.tokios.com. Coding agents (Claude Code, Cline, Cursor), chat apps, and scripts work with a base URL and API key — no VPN client to install. - OpenAI + Anthropic protocol translation. Tokios translates between OpenAI and Anthropic API formats at the gateway. Point an Anthropic-compatible client at Tokios and it speaks the right protocol to your backend. Tailscale forwards a raw port.
- Works with any HTTP client. A teammate’s laptop, a cloud-hosted agent, a CI pipeline — none of them need to join a VPN. Just a URL and a key.
- CGNAT traversal built-in. Tailscale handles CGNAT via DERP relays (which add latency). Tokios’s outbound-only connection passes through CGNAT natively with no relay overhead.
When to choose Tailscale
- Solo dev or small team controlling all devices. You have 2–4 machines, you control all of them, and you want peer-to-peer access with no intermediary.
- Multi-purpose VPN needs. You also want SSH access, file sharing, or internal service discovery — not just model API access.
- Offline or airgapped environments. With Headscale, Tailscale runs entirely on your network with no external dependency.
- Budget is $0. The free tier covers personal use with no data caps on peer-to-peer traffic.
When to choose Tokios
- Need API key management. Multiple teammates or external users each need their own scoped credential.
- Coding agent compatibility. Claude Code, Codex, Cline, and similar tools expect a base URL + API key — not a VPN connection.
- No client software. Callers are scripts, CI pipelines, or SaaS apps that can’t install a VPN client.
- Team access without VPN. You want to hand someone a URL and a key, not onboard them onto a tailnet.
Using both together
Tailscale and Tokios aren’t mutually exclusive — they operate at different layers and complement each other:- Tailscale for infrastructure access. SSH into the model server, access Grafana dashboards, reach internal services — all over the tailnet.
- Tokios for API-layer access. Hand out
sk-tok-…keys to teammates, coding agents, and chat apps that need to call the model but don’t need (or shouldn’t have) full network access.
Remote access comparison
Security comparison of SSH, Tailscale, Cloudflare Tunnel, and Tokios.
When to use Tokios
An honest guide to when Tokios is — and isn’t — the right choice.