Inbound workers, queued requests
Workers do not need a public IP or open inbound port. They connect outward to the gateway, poll for jobs, and stream results back, which makes WebGPU and home-GPU workers practical.
// Relay
The relay provider inverts the usual gateway/worker direction. WebGPU browser tabs, phones running mlc-llm, and desktops running llama.cpp connect inbound to pasclaw gateway, advertise models via X-Relay-Capabilities, pull pending requests off the in-process queue, run inference locally, and POST results back.
Workers do not need a public IP or open inbound port. They connect outward to the gateway, poll for jobs, and stream results back, which makes WebGPU and home-GPU workers practical.
The X-Relay-Capabilities header advertises which models a worker can serve, so the gateway only hands a request to a worker that can run it.
/v1/relay/poll streams pending jobs over SSE, /v1/relay/respond/<id> accepts the worker's reply, and /v1/relay/status surfaces queue and worker state for operators.
WebGPU inference without exposed ports, cog-hosted PasClaw served by your phone, and a shared home GPU across devices — all behind the same relay catalog row.
From the documentation
Implementation notes drawn from the PasClaw repository documentation.
Three gateway routes implement the pull-worker contract.
Workers advertise the models they can serve so the gateway only routes compatible requests.
X-Relay-Capabilities: model=llama-3-8b,quant=q4_k_mCommon questions
Keep exploring
See how the rest of PasClaw fits together.