GPU WebSocket Tunnels
BetaRun open-weight models on your own hardware, call them through the standard TarqaAI API
The tunnel agent is a small Node.js daemon you run on a machine with a GPU. It opens an outbound WebSocket connection to TarqaAI — no inbound ports or firewall changes needed — and relays chat requests to a model server already running locally (Ollama, LM Studio, or vLLM). Your team then calls that model through the normal TarqaAI chat API, at $0 cloud inference cost.
The tunnel agent (packages/tunnel-agent, CLI name tarqa-tunnel) isn't published to npm yet. The setup below uses the real, currently-working flow: register the agent in the dashboard, then run it from source on your GPU machine.
Setup flow
Register a tunnel agent
Download the config and run the agent
Register a hosted model
Select it in chat
Calling the tunneled model
Once online, a hosted model behaves like any other model in /v1/chat/completions — just use its hosted-<id> model ID (the ID shown in the dashboard, not the raw local model tag):
Security
- Outbound-only. The agent only opens outbound connections to TarqaAI — nothing listens for inbound traffic on your machine, so no port forwarding or firewall changes are required.
- Paired at registration. Each agent is bound to your account by a certificate thumbprint set when you register it in the dashboard; the connection is rejected unless the agent presents a match.
- Per-model visibility. Hosted models default to private. You can share one with your team or make it public to your whole workspace from the model's settings.
Available to Pro plan users and to anyone in a Team or Enterprise workspace. Local GPU inference has no TarqaAI token cost — use it for high-volume workloads, fine-tuned models, or data that has to stay on-premise.
