Steps
Share the chat interface with a qURL link: replies stream word by word to the reviewer’s browser, and the app stays on your machine with no public URL. In the sample, Stop cancels generation; wire your backend to cancel when the request closes. Keep the model’s API key in your backend and share the interface, not the model API. Server-Sent Events and WebSockets both stream through the link.
Working in a coding agent? Paste the prompt instead
In Claude Code, Cursor, Codex or another agent that can run commands, paste this in the project whose chat app is running. The agent installs the CLI, publishes the app privately and asks who should get in. The steps below do the same by hand.
Read this skill and use qURL to share local apps and files moving forward. https://layerv.ai/skills/qurl/SKILL.mdInstall the qURL CLI
On macOS, install it with Homebrew. On Linux and Windows, download the package for your platform from the latest release; the CLI page lists each one. Nothing asks you to sign up.
brew install layervai/tap/qurl qurl --versionStart the chat app, or the sample
The sample is one file with no dependencies. Its backend streams fixture replies one word at a time as Server-Sent Events, the way model APIs stream tokens, and its page has a Stop button. It listens on 127.0.0.1:47614, not on your network. Skip this step if your own chat app is running. The sample accepts local and qURL Host headers. For another sharing tool, forward Host: localhost or add its exact assigned hostname to the sample’s check; a 403 “Host not allowed” is not a streaming failure.
curl -fsSLO https://layerv.ai/data/qurl-streaming-chat/server.cjs node server.cjsKeep the model key on the server
Share the chat interface, not the model. The browser should talk only to your backend, and your backend calls the model provider with the key from its own environment. In the sample, that call replaces fixtureReply() in server.cjs. A local model server such as Ollama stays bound to localhost; only the chat app is published.
Publish the chat app
The first publish creates this device’s identity, starts a background service that keeps serving after you close the terminal (while you stay logged in), and prints the app’s CRID, its stable ID. The Access row says who can open the app: a plain publish makes it private from qurl 3.4.1 on.
qurl shareturns the CRID into an access link, and the link is what you send.qurl publish http://127.0.0.1:47614Create a link with a longer session
A demo usually needs more than the default 1-hour session. The link itself still opens once and expires within 24 hours.
qurl share <CRID> --session-duration 2hSend the link to one person
Send it in a direct message, not a public channel: whoever opens it first uses it. Avoid email and apps that preview links, because a scanner that runs the page could use its one opening. Don’t open it yourself to check it, for the same reason. Run
qurl shareagain whenever you need a fresh link.Check that replies stream for the reviewer
Ask the reviewer to send a message. The reply should appear word by word. If it arrives all at once at the end, something between the model and the browser is buffering the response; see Troubleshooting. If your interface has a Stop button, check that pressing it also stops generation on your server, so an abandoned reply does not keep spending tokens.
End the demo
Stop serving the app with
qurl stop;qurl startresumes it.qurl deleteremoves the resource for good after asking you to confirm, and its CRID can never be shared again.qurl stop <CRID> qurl delete <CRID>
What the recipient sees
The reviewer opens the link and lands on the chat at an address like https://r_….qurl.site/, with no warning page, sign-up or install.
More
Replies appear as they are generated. In the sample, pressing Stop closes the request and stops generation on the local server. Your app’s own login still applies.
Troubleshooting
| If you see | Do this |
|---|---|
| The reply appears all at once at the end | Something is buffering the stream. Send each event as soon as it is ready with Content-Type: text/event-stream and Cache-Control: no-cache, and turn off response compression for that route. A qURL link passes each event on as it is sent. |
| The page loads but no reply ever starts | Check your backend’s log for the provider call. A key read from a .env file the server never loaded is the usual cause; the browser cannot fix it, because it never sees the key. |
Show 7 more fixes
| If you see | Do this |
|---|---|
| The chat UI is a Vite or Next.js dev server and shows “Blocked request” or never updates | Allow qURL’s hostnames first: .qurl.site in Vite’s server.allowedHosts, or the exact browser hostname in Next.js allowedDevOrigins. The client review guide has the config. |
| qurl publish says the local app is not accepting TCP connections | Start the app first and check that curl works on the same address. qurl publish connects to localhost as 127.0.0.1, so if your app listens only on IPv6 (on macOS or Linux, lsof -iTCP -sTCP:LISTEN -nP shows [::1]), publish 'http://[::1]:PORT' instead, or start the dev server with --host 127.0.0.1 and publish that address. Neither requires listening on your LAN. Keep the quotes: zsh treats the brackets as a pattern. |
| The recipient sees “Access link invalid” | The link was already used or has expired. Run qurl share again and send the new link. |
| The recipient sees “Resource not found” | The resource was deleted after the link was made. Publish the app again, then run qurl share and send the new link. |
| publish rejects http://127.0.0.1 with “only HTTPS URLs are allowed”, asks you to log in, or prints no Access: line | Your qURL CLI is out of date. On macOS run brew update, then brew upgrade qurl; elsewhere install the latest release. After updating, qurl --version prints 3.4.1 or later, and every publish is private by default. |
| publish says this Linux session “can’t reach a systemd user manager” | You are in a container or sandbox without a user service manager. Run qurl publish with --foreground; sharing lasts as long as that process runs. Container and CI setup → |
| publish says “Quota Exceeded” with “protected resource limit reached”, or “Your qURL account has reached a plan limit” | You can see this without an account: a device with no account can keep up to 3 active resources, with links that last up to 24 hours. Run qurl list --status active, then qurl delete <CRID> for any you no longer need (it asks you to confirm; --yes skips that). qurl stop keeps the resource, so it does not free a slot. |
Frequently Asked Questions
Do Cloudflare Quick Tunnels support Server-Sent Events?
No. Cloudflare’s Quick Tunnels page says they do not support Server-Sent Events. A qURL link carries both Server-Sent Events and WebSockets, so the chat streams either way.
Should I share the chat interface or the model’s API?
Share the interface when a person is trying your app: they use it as you built it, and your backend decides what reaches the model. A raw model endpoint lets whoever has access send it any request, so the interface is the safer thing to share.
Does Stop cancel generation through qURL?
In the sample, yes. Pressing Stop aborts the browser’s request and closes the connection through the qURL link. Your backend must listen for that close and cancel its provider call, as the sample does.
Does my computer have to stay on?
Yes. The app is served from your machine, so the machine and the app must be running and connected. The background service reconnects after sleep, but the app is unavailable while the machine is asleep.
Who else can reach my app while the link is open?
Opening the link starts a session for that browser, which lasts 1 hour by default. After a browser opens it, another browser on the same public IP cannot use its access. A script or agent that opens the link without a browser is admitted by its network address instead, which other devices on that public IP share until the session ends. A link admits whoever opens it: the API’s IP and country rules do not apply to the signed links qurl share issues. Keep your app’s own sign-in for anything sensitive.
How do I stop sharing?
Run qurl stop <CRID> to pause serving the app, and qurl start <CRID> to resume it; a stopped app still counts toward your resource limit. qurl delete <CRID> removes the resource for good after asking you to confirm; its CRID can never be shared again.