The two things that break
Streaming gets buffered
An LLM completion streamed over SSE sends partial tokens as soon as they’re generated — the client expects a steady drip, not one chunk at the end. Some reverse proxies buffer response bodies by default to optimize throughput for typical web traffic, which is the wrong behavior for SSE: the client sits waiting, then gets the whole response at once (or times out first).Buffered: the client waits, then the whole answer dumps at once. Streamed: tokens flush as they're generated.
Requests run longer than the timeout allows
A large model on modest hardware can take well past the ordinary web-request budget to finish a long generation. Any proxy or tunnel with a fixed read/write timeout will cut the connection before the model is done, and the client sees a gateway error instead of a completion — even though the model was still working.Comparison
Every limit above is the vendor’s own documented behavior for its general-purpose use case, not a failure — Cloudflare Tunnel, ngrok, and Tailscale all do what they’re designed to do well. The friction shows up specifically when the workload is a streaming LLM API with generations that can run long.
Where Tokios fits
Tokios isn’t a replacement for Tailscale or Cloudflare Tunnel in general. Keep using Tailscale for SSH into a home server, or Cloudflare Tunnel for a low-traffic web app — those are exactly the jobs they’re built for. Tokios is specifically the connect layer for one path: getting a coding agent or API client to a streaming LLM endpoint running on your own hardware, without buffering SSE or racing a proxy timeout. Thetokios-connector dials out over a single outbound WebSocket, the same direction-flipping idea behind a tunnel — see How it works for the full request flow. From there, every request authenticates with an sk-tok-… API key scoped to specific deployments, rather than a raw port or hostname being reachable at all.
Next steps
Quickstart
Pair a connector, register a model, and send your first streaming request.
How Tokios routes requests
See the outbound-only architecture and request flow in detail.