Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

localhost.run

БесплатноЗапускает вложенные скриптыНе проверен

Put a local dev server on the user's stable public HTTPS domain with localhost.run, for previews, sharing work in progress, testing on phones, or receiving…

lhrот lhr206 установок в других каталогах

Об этом скилле

localhost.run tunnels

localhost.run gives a local port a public HTTPS URL over SSH. This skill connects the user's stable domain (one that stays the same every time) to a port the agent's work is running on, keeps it connected, and shows what's arriving.

All the work is done by scripts/tunnel (bash and ssh, nothing to install). Run it by its path in this skill's directory.

First: is it set up?

Run scripts/tunnel config. Read references/setup.md and walk the user through it before going on, whenever:

  • config says "not set up" or "needs setup";
  • start says "needs setup", or exits with code 3 (key refused); or
  • start exits with code 2 (denied) on the saved domain.

When start or verify prints a link: line, localhost.run has given a page that fixes the problem: follow step 3 of the setup guide, which says what to tell the user.

These all mean the same thing: the user needs setting up (again). A saved domain doesn't mean setup is done; the setup guide reuses it.

Setting up is the normal path, even when the user just asked for "a link": it takes about a minute, and from then on every link you give them keeps working. When it's not set up, say so and offer to set it up, in one short message, for example:

You don't have a localhost.run domain yet. Setting one up takes about a minute, and gives you an address that stays the same every time, so links you share and webhook settings keep working. Shall we do that now? (If you only need a quick throwaway link, I can use a temporary address instead.)

A temporary address: only when the user chooses it

tunnel start <port> --temporary needs no account and no key: localhost.run picks the address. Use it only when the user chooses it: they take the throwaway option above, say they don't want an account, or ask for a quick or temporary link themselves. Don't switch to it on your own because setup is a step, or to save time, and don't fall back to it when setup or start fails; fix the problem, or ask.

  • Say what it means, once, when you give the URL: free addresses change periodically to prevent abuse, so the link will stop working at some point, and a stable domain is how to keep it the same.
  • Webhooks: before using a temporary address for one, point out that the webhook setting will need updating each time the address changes, and offer setup again. Do what the user decides.
  • Don't nag. After that, use what the user chose. If a later task would clearly be better on a stable domain (a link they're about to send someone, a webhook), you can mention it again, briefly.

Which domain

  • No domain named: start uses the saved one, from setup.
  • The user names a domain ("put it on dev.example.com"): tunnel start <port> --domain dev.example.com. It must be one of theirs at https://admin.localhost.run/, and on the same account as the saved key. If it's denied, show the message: usually the domain isn't on that account, or isn't set up yet.
  • The user wants a different domain from now on: run tunnel verify --domain D with the new domain. It checks the domain and saves it as the default.
  • A domain they don't have yet: give them https://admin.localhost.run/domains/add to set one up, as in references/setup.md, step 2. If they name one of their own (a custom domain), run tunnel verify --domain D: if it isn't set up, it prints a link to the page that sets it up, as in step 3.

Commands

Command What it does
tunnel start <port> Connects the saved domain to localhost:<port>, replacing any tunnel this skill already has on that domain. Waits until it's live (up to 30 s), then checks the URL. Keeps reconnecting in the background if the connection drops.
tunnel start <port> --hours N The same, but stops by itself after N hours (1 to 24) instead of the default 8. Only when the user asks for longer or shorter.
tunnel start <port> --requests The same, and also records each visitor's request, for tunnel events. Only when the task needs it (see "Seeing requests").
tunnel start <port> --temporary The same on a temporary address that localhost.run picks, with no setup. Only when the user has chosen it (see above).
tunnel status Each domain's state (connected, reconnecting, denied, key_refused, stopped), its port, its last message and, for denied or key_refused, the link that fixes it.
tunnel events [N] The last N events (default 20): connections, messages from localhost.run and, if the tunnel was started with --requests, each HTTP request (method, path, status and time).
tunnel check Whether the app answers on its local port, and then through the public URL. Run it when a visitor or webhook gets no answer: a local failure means the app isn't running (or is on another port), not a tunnel problem. Exits 0 when both answer.
tunnel stop Disconnects the tunnel.
tunnel key The skill's own SSH key, in `~/.local
Полный SKILL.md на ClawHub

Установить localhost.run в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл localhost.run?

Put a local dev server on the user's stable public HTTPS domain with localhost.run, for previews, sharing work in progress, testing on phones, or receiving webhooks. Use when the user wants a public URL for something running locally, asks to share or preview their local app, needs a webhook endpoint, wants their app on a particular domain, or mentions localhost.run. Also sets up a new user's localhost.run domain and SSH key, or gives them a temporary address if they'd rather skip setup.

Как установить скилл localhost.run?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл localhost.run запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить localhost.run с