The usual way to reach a home machine is to open a port on the router. That exposes whatever answers on it to the whole internet. There is a better shape for this.
Outbound only
The CLI makes a single outbound secure WebSocket connection (wss://) to Tokmine and keeps it open. Requests arrive over that connection; your machine accepts no inbound traffic at all. No port forwarding, no firewall rules, no public IP needed. TLS is used everywhere and certificate verification cannot be disabled in release builds.
What callers can reach
Even over the tunnel, exposure is narrow:
- Only the model servers the CLI discovered or that you listed with
--provider. - Only allow-listed API paths for each dialect. A caller cannot pick a host or an arbitrary path, so there is no route into the rest of your LAN.
- Hop-by-hop headers are stripped before a request reaches your runner.
Every request carries a token
There are no open endpoints. Signed-in callers use their own account token, so usage is attributable to a person. Anonymous sessions get an auto-generated token, live 30 minutes, and are strictly rate limited. Tokens are stored hashed, shown once and never logged.
What happens to your prompts
Request and response bodies pass through Tokmine to reach your machine and are not logged or stored. Usage counts (requests, tokens, bytes) are kept per day for billing and your dashboard.
Compared with the DIY version
Port forwarding plus a reverse proxy can produce the same reachability, but you then own TLS termination, auth, path filtering and abuse handling yourself. The tunnel folds all of that into the connection the CLI already makes.
Read more
The full model is on the security page. To report a vulnerability, email [email protected].