# localhost-run

A Claude Code skill that opens an SSH tunnel to localhost.run and publishes a local app to the internet. One command gives you a public URL, no client install and no signup on the free tier.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 268 installs · ★ 2 repo stars
- Author: ilteoood
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ilteoood/harness/tree/HEAD/skills/core/localhost-run/SKILL.md
- Updated: 2026-10-23
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/localhost-run

## What it does

The skill wraps a plain SSH tunnel: `ssh -R 80:localhost:8080 localhost.run` prints a `https://<random>.lhr.life` address that proxies HTTP and HTTPS to your local port. Keep the session open — close the terminal and the tunnel disappears.

Non-HTTP protocols go through TLS passthrough on port `443`, where your app serves and validates its own certificate. This mode needs a Custom Domain; free `lhr.life` domains do not expose passthrough endpoints. An HTTP tunnel is easier: localhost.run issues the certificate and injects `X-Forwarded-For`, `X-Forwarded-Host`, `X-Forwarded-Proto` and `Forwarded` headers. Pass `--no-inject-http-proxy-headers` if another proxy already sets them.

The free tier rotates domains and has a speed limit. A Custom Domain plan costs $9 a month billed annually and gives a stable URL. WordPress breaks on rotating free domains because the site URL lives in the database — you need the paid plan or the `relative-url` plugin there.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ilteoood/harness --skill localhost-run -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/localhost-run/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/localhost-run/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ilteoood/harness --skill localhost-run -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/localhost-run/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ilteoood/harness --skill localhost-run -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/localhost-run/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ilteoood/harness skills/core/localhost-run
```

2. **Manually: put the files in place**
- File: `.github/skills/localhost-run/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ilteoood/harness --skill localhost-run -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ilteoood/harness --path skills/core/localhost-run
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/localhost-run/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ilteoood/harness --skill localhost-run -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ilteoood/harness/tree/HEAD/skills/core/localhost-run/SKILL.md

## When to use it
- share a local app with a teammate or client via a link
- receive Stripe, GitHub or Twilio webhooks on a dev server
- test a site from a phone or another network
- get a stable subdomain for permanent access
- replace ngrok, Cloudflare Tunnel or localtunnel

## Example prompts
- Expose my local server on port 8080 through localhost.run
- Set up a tunnel for GitHub webhooks on localhost:3000
- Tunnel PostgreSQL through a Custom Domain

## Similar
- [create-docker-mcp-tunnel](https://affpapa.org/en/nevibecode/commands/create-docker-mcp-tunnel.md) — command · ★ 47914 repo stars
- [pipehero](https://affpapa.org/en/nevibecode/mcp/pipehero.md) — MCP server · 1007 installs
- [run-experiment](https://affpapa.org/en/nevibecode/skills/run-experiment.md) — skill · 579 installs
- [tao-run-on-slurm](https://affpapa.org/en/nevibecode/skills/tao-run-on-slurm.md) — skill · 1600 installs
- [integration-operator](https://affpapa.org/en/nevibecode/agents/integration-operator.md) — subagent · ★ 1198 repo stars
- [ccam-integrations](https://affpapa.org/en/nevibecode/plugins/ccam-integrations.md) — plugin · ★ 1198 repo stars

From the same set: [ilteoood/harness](https://affpapa.org/en/nevibecode/by/ilteoood/harness.md) — 3 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
