Start to finish: invite a client to review your local app
Before you start
Your dev server is running on this computer, and qurl --version prints 3.4.1 or later (3.6.0 or later for an email invitation). No account, API key, Vercel preview deploy or public ngrok URL. The client sees the live build straight from this computer, so keep it awake and the dev server running for the whole review.
qurl --versionPublish the local address
Use your dev server’s port. qurl publish prints the CRID, the app’s permanent ID, and an Access line that should say private. To invite the client by email, add --access invite_only to this first publish (step 3). Vite and Next.js also need the host settings in the full steps below.
qurl publish http://127.0.0.1:3000Let the client in
For one review session, qurl share prints a one-time link: it opens once and expires on its own; an opened session lasts for its configured duration. Where private access policies are available, for a client who comes back over several days, invite their email address with qurl access invite, on an app published with --access invite_only; only that address gets in, and the invitation guide shows each command. The invitation flow has not been tested end to end against the hosted service.
qurl share <CRID> --session-duration 2hWhat the client does
With a one-time link, the client opens it in a browser and lands on your app, with no account, install or warning page. The link opens once and, unopened, expires within 24 hours. Once open, the visit lasts the --session-duration you set, 1 hour by default and 24 at most; the link expiring does not cut it short. With an invitation, the client opens the emailed invitation, verifies their email and saves a passkey, then lands on the app.
Stop when the review is over
qurl stop stops serving the app until qurl start. qurl delete retires it and every way in, for good, after asking you to confirm.
qurl stop <CRID>
The whole review at a glance
| Step | You | Your client |
|---|---|---|
| 1. Check the app | Open it on this machine at its local address | Nothing yet |
| 2. Publish it | qurl publish, invite-only for an invitation or plain for one-time links | Nothing yet |
| 3. Let them in | qurl access invite for repeat visits, or qurl share for one look | Receives the invitation email, or your direct message with the link |
| 4. Review | Keep the computer and the dev server running; edit as usual | Opens it in a browser, then goes to the page you named |
| 5. End access | Revoke the invitation, or qurl stop or qurl delete | Can no longer open the app |
Steps
Publish your running Vite or Next.js app with qURL™ and let the client in: invite their email so they can come back, or send a link that opens once. They see the live local build in a browser, including edits you make during the review, with no deploy and no public URL. Keep your computer and dev server running while they look.
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 app is running. The agent installs the CLI, publishes the app privately and asks who should get in; the agent guides show each step. 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 --versionVite: allow qurl.site hosts
Requests reach the dev server with a Host header under qurl.site, and Vite 6.0.9, 5.4.12, 4.5.6 and later reject hosts they don’t know. Add .qurl.site to server.allowedHosts in your existing config. Vite restarts itself when a config file it loaded changes; restart it yourself if you just created one. Your app stays on this computer; nothing listens on your network. If localhost resolves only to IPv6, publish the quoted http://[::1]:PORT address, or start the dev server with --host 127.0.0.1 and publish that address.
// vite.config.js (merge into your existing config) export default { server: { allowedHosts: ['.qurl.site'], }, }Next.js: allow the recipient’s browser hostname
Merge these settings into your existing Next.js config. They allow the recipient’s exact browser hostname for dev resources and Server Actions in development only; the hostname is set after the client opens the link below. Start Next.js with npx next dev -H 127.0.0.1 so the app stays on this computer. For next.config.ts or next.config.mjs, export the same object with export default instead of module.exports.
// next.config.js module.exports = { allowedDevOrigins: process.env.NODE_ENV === 'development' && process.env.QURL_DEV_ORIGIN_HOST ? [process.env.QURL_DEV_ORIGIN_HOST] : [], experimental: { serverActions: { // Development only: the hostname from the browser bar, without https:// or a port. allowedOrigins: process.env.NODE_ENV === 'development' && process.env.QURL_DEV_ORIGIN_HOST ? [process.env.QURL_DEV_ORIGIN_HOST] : [], }, }, }Choose how your client gets in, then publish
Decide before you publish. An email invitation names the client: only the invited address gets in, after verifying that mailbox and saving a passkey, and they come back with it until you revoke the invitation. A one-time link is a bearer link for one look: it opens once, for whoever holds it. Publish the address the dev server listens on: for Next.js, http://127.0.0.1:3000. Vite prints http://localhost:5173/, but on some systems, including macOS, it listens only on IPv6, while
qurl publishconnects to localhost as 127.0.0.1; if publish reports that the app is not accepting TCP connections, publish http://[::1]:5173 instead, in quotes so zsh doesn’t read the brackets as a pattern.Option A: an email invitation, for a client who comes back. Publish invite-only. Check that the reply has private: true and the invite_only policy, and keep the CRID it returns.
# Next.js; for Vite, publish http://localhost:5173 or 'http://[::1]:5173' qurl publish http://127.0.0.1:3000 --access invite_only -o jsonOption B: one-time links, for a single look. Publish plainly; the resource is private and opens for nobody until you share a link.
# Next.js (started with npx next dev -H 127.0.0.1) qurl publish http://127.0.0.1:3000 # Vite qurl publish http://localhost:5173 # Vite, if publish says it is not accepting TCP connections qurl publish 'http://[::1]:5173'Option A: invite your client’s email
Skip this step for one-time links. qURL emails the invitation: the client opens it in any browser, verifies their email and saves a passkey, then lands on your app. Strangers cannot ask for access, and
qurl access list_invitations <CRID> -o json shows each invitation, so you never need to open anything yourself.qurl access invite <CRID> --email client@example.com -o jsonOption B: create a one-time link with a longer session
Skip this step for an invitation. A review usually needs more than the default 1-hour session. The link itself still opens once, and waits at most 24 hours to be opened without an account. Check that the expiry line says “single use”.
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.Send your client this note
Paste it into your message beside the invitation or the link, with the page and the task filled in. It tells the client what to expect, so a passkey prompt or a spent link does not stall the review.
I've shared the app I'm building with you. It runs on my computer, so you'll see changes live while we review. - If you got an email invitation: open it in a browser, verify your email there, and save a passkey when asked. Keep the email code to yourself; I never need it. Your passkey brings you back later. - If I sent you a link: open it once, in the browser you'll review in, and keep that tab. It works one time only, so please don't forward it or open it to test it. The app opens on its home page. Then go to <page to review> and check <what to look at>.Next.js: finish setup with the client’s browser hostname
For Next.js, ask the client for the exact hostname from the page they just opened, such as r_your-link.qurl.site, without a scheme, port or path. They keep that page open; do not open their single-use link yourself. Set QURL_DEV_ORIGIN_HOST, restart next dev, and ask them to reload the same page. This development configuration trusts one recipient origin at a time; update it for each new browser session. Skip this step for Vite.
QURL_DEV_ORIGIN_HOST=r_your-link.qurl.site npx next dev -H 127.0.0.1Point them at the right page
Every visit starts at the app’s root, /, and during the session every path of the app answers. Name the page in your note, or make / redirect there for the review. If the app redirects to localhost, loads assets from absolute localhost URLs, or asks for its own sign-in, the nested routes guide has the fix for each.
End the review
Access ends in layers. An unopened link stops working at its --ttl. An opened session ends at its --session-duration, 2 hours here.
qurl access revoke_invitation removes one invited client and the access it granted;qurl access --helpshows its arguments.qurl stopstops serving the app to everyone untilqurl start.qurl deleteretires it for good after asking you to confirm, and its CRID can never be shared again. The app is also unreachable whenever your computer sleeps or the dev server stops.qurl stop <CRID> # pause; qurl start <CRID> resumes qurl delete <CRID> # permanent; asks you to confirm
What the recipient sees
An invited client opens the emailed invitation in a browser, verifies their email, saves a passkey and lands on your app; the passkey brings them back.
More
A client with a one-time link lands on the app directly, at an address like https://r_….qurl.site/, with no warning page, sign-up or install. Either way they see the live build as you do, and changes appear through hot reload without a manual refresh.
Troubleshooting
| If you see | Do this |
|---|---|
| The page says “Blocked request. This host … is not allowed.” | Vite’s host check rejected the request. Add .qurl.site to server.allowedHosts in vite.config.js and restart Vite; a config file created after Vite started is not picked up until it restarts. |
| next dev logs “Blocked cross-origin request to Next.js dev resource”, or hot reload never connects | Set QURL_DEV_ORIGIN_HOST to the exact browser hostname and restart next dev with the config above. |
Show 9 more fixes
| If you see | Do this |
|---|---|
| Server Actions fail with “Invalid Server Actions request” | The browser’s origin (r_….qurl.site) differs from the host your app receives (c-….qurl.site). Set QURL_DEV_ORIGIN_HOST to the exact r_….qurl.site browser hostname and restart next dev with the development-only configuration above. Never use a whole-domain wildcard for Server Actions. |
| The client says the one-time link was already used or expired before they opened it | Something opened it first, such as a scanner that runs pages, or it passed its --ttl. Run qurl share again and send the new link in a direct message; the app does not need publishing again. Fix a one-time link that was already used → |
| The client lands on a 404 or the wrong page | Every visit starts at /. Tell the client the path to open, or make / redirect there for the review. Share a local app with nested routes → |
| 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
Why not send a Vercel preview?
A preview is a deployed copy, so edits you make during the review appear only after another deploy. Sharing the app with qURL shows the client the build you are working on now, with nothing to deploy. For a client who reviews over several days, invite them by email: they come back with their own passkey until you revoke the invitation.
How do I limit who opens the review?
Publish the app with qurl publish --access invite_only and invite the client with qurl access invite <CRID> --email (qurl 3.6.0 or later). That address verifies once, saves a passkey, and gets in until you revoke it. For one quick look, a qurl share link opens once and expires on its own.
Does hot reload work through qURL?
Yes, once the dev server accepts qURL’s hostnames. WebSocket upgrades and Server-Sent Events pass through the link. Allow .qurl.site in Vite’s server.allowedHosts or the exact browser hostname in Next.js allowedDevOrigins so source edits reach the reviewer’s browser through hot reload.
Why does Vite block the request?
Vite only allows localhost, .localhost subdomains, and IP addresses as the Host header by default. qURL requests arrive with a qurl.site host, so add .qurl.site to server.allowedHosts.
Is it safe to share a dev server?
Safer than binding it to every interface or putting it on a public tunnel URL, because the app has no public route and each link works once. But whoever opens the link reaches the dev server itself, and dev servers are not hardened for hostile traffic: Vite CVE-2025-31125, listed in CISA’s Known Exploited Vulnerabilities catalog, let clients that could reach a dev server read files it should refuse (fixed in Vite 6.2.4, 6.1.3, 6.0.13, 5.4.16 and 4.5.11). Keep the dev server updated, share with people you trust, and stop sharing when the review is done.
How long does my client have?
An invited client keeps access until you revoke the invitation or delete the app. A one-time link waits up to its --ttl to be opened, 24 hours at most without an account; once opened, the session lasts its --session-duration, 1 hour by default and 24 hours at most. Either way the app answers only while your computer and dev server are running.
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.