Skip to main content
← All guides

Give an AI agent access to a local app

Why qURL here

The agent publishes your app privately and hands you the way in: invitations for the people you name, or a one-time link that another agent opens with the qURL™ Go SDK. The app never gets a public URL, and you end access with one command.

Steps

Give your coding agent the qURL skill. It checks policy support, publishes privately, and gives you an address to send. Choose access rules and recipient emails for invitations. Recipients verify email in their own browser; never ask for their verification codes. If the deployment cannot support the policy, the app stays private. For another agent, ask for a one-time access link and open it with the qURL Go SDK.

  1. Give the agent the qURL skill

    For Claude Code, save the skill to your personal skills folder. If Claude Code was already running and this created the folder, run /reload-skills. Other agents read the file from its URL; the prompt in the next step points them there.

    mkdir -p ~/.claude/skills/qurl && curl -fsSL https://layerv.ai/skills/qurl/SKILL.md -o ~/.claude/skills/qurl/SKILL.md
  2. Ask it to share the app

    The agent finds the running app (or asks which one), installs the CLI if needed, publishes the app as a private resource, and gives you an address to send. 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. To let one person in at once, ask it for a one-time access link; that link is a secret.

    Read this skill and use qURL to share local apps and files moving forward.
    https://layerv.ai/skills/qurl/SKILL.md

What the recipient sees

A person opens the address in a browser and sees who published the app and whether LayerV has verified that publisher.

More

Recipients of a private invitation verify email in their own browser and save a passkey; their email verification code stays in that flow. For an existing legacy resource only, they ask for access and pass on a legacy code through a trusted channel. A person with a one-time link lands on your app directly. An agent that opens that link with the SDK gets your app’s URL and calls AuthorizeContentRequest on each request to it until the session ends, 1 hour by default. A browser session stays with the browser that opened the link; an agent that opens it with the SDK, without a browser, is admitted by its network address, which other devices on that public IP share until the session ends.

Troubleshooting

Troubleshooting
If you seeDo this
The agent got an HTML page titled “qURL - Private Links That Expire” instead of the appIt fetched the access link over plain HTTP. The credential is in the URL fragment, which HTTP clients never send. Open the link with the SDK, or use qurl get <CRID> --file if you own the resource.
EnterPortal times outThe SDK opens links over UDP port 443, and some networks block outbound UDP. Run the agent on a network that allows it; the SDK’s opening-links doc describes a relay-only setup.
Show 9 more fixes
More troubleshooting
If you seeDo this
A retried EnterPortal call is deniedThe first attempt used the link’s one opening. Ask for a new link.
For an existing legacy resource, the agent cannot turn on access requests, or publishes with no Access: line in the outputThe CLI is older than 3.4.1. Ask the agent to update it; the skill’s install step always installs the latest release. qurl --version should then print 3.4.1 or later.
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.
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 agent need a LayerV account?

No. Publishing from the CLI needs no account, and opening a received link with the SDK needs no LayerV credentials. Without an account the publishing machine can keep up to 3 active resources, with links that last up to 24 hours.

Can the agent open the link from TypeScript or Python?

Not without extra setup. The TypeScript and Python enterPortal calls go through the LayerV API and need an API key. The Node opener in @layervai/qurl/node needs no key but needs a QURL_DEPLOYMENT trust file. The Go SDK has production settings built in.

Can another agent that runs the qurl CLI open the app without a link?

Yes, with a device key, and no link changes hands. On the other agent’s machine, qurl whoami -o json prints its public key as device_public_key_b64; a public key is not a secret. On your machine, publish with that key: qurl publish http://127.0.0.1:3000 --allow-device-key <KEY>, repeated for each key. For an app already published, run qurl grants <CRID> --add <KEY> instead, because publishing again does not change the list. The other agent then fetches the app with qurl get <CRID> --file - or makes its own link with qurl share <CRID>. On a machine whose key is not on the list, qurl share <CRID> fails with “Resource Not Found (HTTP 404)” and exit code 5. The page Private localhost access for AI agents has the whole recipe, with the checks for each side.

Will the agent send the address or a link to other people?

It gives the address or link to you, and you decide who receives it. It sends invitation emails only to recipients you authorize. For legacy resources, it approves only a code you pass on, never the name on a request.

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.