Skip to main content
← All guides

Give a contractor temporary access to your app

Why qURL here

Keep the app private on your machine and invite the contractor by email: they verify their address and save a passkey, with no LayerV account, and come back until you revoke the invitation. Ending access is one command.

See how LayerV compares to Cloudflare Access →

Steps

For a named contractor, publish the app invite-only and invite their email, from the qURL™ CLI or through your coding agent; they verify their email and save a passkey. For a single visit, run qurl publish, then qurl share with --ttl and --session-duration. End access by revoking the invitation, or with qurl stop or qurl delete. For longer engagements, revoke the invitation the day the work ends.

  1. Install 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 --version
  2. For a named contractor: publish invite-only and invite them

    With qurl 3.6.0 or later, publish the app with --access invite_only and check that the reply has private: true and the invite_only policy. Then invite the contractor’s address with the CRID it returned; qURL emails the invitation. Where the service does not offer private access policies yet, the CLI refuses and the app stays private. Tell the contractor: open the emailed invitation in a browser, verify your email there, and set up your passkey.

    Every invitation command, step by step →

    qurl publish http://127.0.0.1:3000 --access invite_only -o json
    qurl access invite <CRID> --email contractor@example.com -o json
  3. Or ask your coding agent to invite them

    Install the qURL skill in your coding agent first; the agent guides show where each one reads it. The agent applies the private access rules you choose. For named recipients, give it their email addresses so it can send invitations. Recipients verify their email in the browser and save a passkey; they never send you their email verification code. The agent checks policy support before sharing and keeps the app private if the deployment cannot support it. Give the contractor the address the agent prints, with the same note.

    Share the app I'm running with qURL, invite-only, and invite contractor@example.com.
  4. For a single visit: publish the 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 share turns the CRID into an access link, and the link is what you send.

    qurl publish http://127.0.0.1:3000
    Published
    
      Target:  http://127.0.0.1:3000
      Access:  private — only you and the people you allow can open it
      Status:  serving
    
    CRID: ae4jqpd7eaoslq7jinmjv4yikgzmcxgpjfsuobiniqnko32lpw743ivbeyha
  5. End access when the work is done

    For an invitation, find its ID and version with qurl access list_invitations, then revoke it, or ask your agent to: that removes the invitation and the access it granted. For links, qurl stop <CRID> stops serving the app and qurl start <CRID> resumes it. qurl delete <CRID> retires the resource for good after asking you to confirm: existing links stop working and its CRID can never be shared again.

    See what each command ends, and which need an account →

    qurl access list_invitations <CRID> -o json
    qurl access revoke_invitation <CRID> <invitation-id> --version <version> -o json
    qurl stop <CRID>     # pause; qurl start <CRID> resumes
    qurl delete <CRID>   # permanent; asks you to confirm

What the recipient sees

An invited contractor opens the emailed invitation in a browser and sees who published the app and whether LayerV has verified that publisher.

More

They verify their email there and save a passkey; their email verification code stays in that flow. A contractor with a one-time link lands on your app directly. Either way, the session belongs to the browser they opened it in, and your app’s own sign-in still applies.

Troubleshooting

Troubleshooting
If you seeDo this
The private-policy commands are unavailable or consumer access is disabledAsk the agent to follow the access-policy support check in the qURL skill. It updates an older CLI when needed. If the deployment cannot support the requested policy, stop sharing and keep the app private; do not fall back to legacy access requests.
The contractor says the invitation never arrivedRun qurl access list_invitations <CRID> -o json, or ask your agent to list the invitations, and check the address. An accepted send means the mail service took the message, not that it reached the inbox or that the contractor enrolled.
Show 6 more fixes
More troubleshooting
If you seeDo this
qurl publish says the local app is not accepting TCP connectionsStart 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: lineYour 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

Does the contractor need a LayerV account?

No. An invited contractor verifies their email and saves a passkey in their browser, and a link opens in a browser with nothing to install. You need no account either; without one you can keep up to 3 active resources, with links that last up to 24 hours.

Can the contractor reach anything else on my machine?

Not through qURL: access is scoped to the one app you published, not the network around it. Inside that app, the app decides what a signed-in user may do, so give the contractor an account with only the permissions the work needs. Publishing does not close a separate public route the app already has, so keep the app bound to 127.0.0.1.

Why use an invitation instead of sending links?

A link is a bearer secret: whoever holds it can try to open it, and each one opens once. An invitation names the contractor by email, so you are not sending a fresh secret every day, and strangers cannot request access to an invite-only app.

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.

Publish your app now

Install the CLI, then run one command. No sign-up, no API key.

Install the CLI →

Book a pilot

Tell us what to hide. We’ll scope a pilot.

Enterprise starts with a paid pilot on one application, typically 60 to 90 days, credited in full toward year one if you convert within 60 days. After that, an annual package sized to what you protect, not per seat.