# 使用 Homebrew, Nix 安装 localtunnel

查看 localtunnel 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:localtunnel
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install localtunnel
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#localtunnel
```

  证据: nixpkgs package indexes: pkgs/by-name/lo/localtunnel/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:localtunnel
- **软件包管理器:** Homebrew
- **版本:** 2.0.2
- **来源摘要:** Exposes your localhost to the world for easy testing and sharing
- **主页:** <https://theboroer.github.io/localtunnel-www/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- lt (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.0.2
## 项目历史与用法

localtunnel is a small Node.js command-line tunnel client for exposing a local HTTP service on a public URL. It became a familiar package-manager install for webhook testing, demos, browser testing, and sharing localhost without deploying.

### 项目历史

The official README describes localtunnel as a way to expose localhost to the world for easy testing and sharing, avoiding DNS changes or deployment just to let someone else reach a local service. The project is distributed as a Node package and provides the `lt` command.

The localtunnel ecosystem is split between the client repository and a server repository. The server README explains that the default client connects to the `localtunnel.me` service while also allowing users to run their own server and point the client at it with `--host`.

### 采用历史

localtunnel's adoption came from its extremely low setup cost: install it with npm or a system package manager, run `lt --port 8000`, and get a shareable URL. That made it especially useful for webhook callbacks, browser testing tools, mobile testing, and short-lived demonstrations.

The public website credits @defunctzombie as the creator and @TheBoroer as the maintainer/operator, reflecting a project that moved from an early Node.js utility into a maintained public tunneling service and CLI package.

### 使用方式

The common workflow is `npm install -g localtunnel` or `npx localtunnel --port 8000`, followed by keeping the local `lt` process running while requests are proxied to the chosen local port.

Advanced users can self-host the localtunnel server, configure DNS wildcard records, run the server behind a reverse proxy, and pass `--host` to the client. The client has no official persistent config or credentials file documented.

### 为什么软件包爱好者会关心

localtunnel is a canonical example of the 'one command gives localhost a URL' developer package. It competes in the same mental space as ngrok-style tools, but remains attractive because the client and server are open source and easy to install.

For package maintainers, localtunnel is small but sensitive to Node dependency health, public service availability, and defaults such as the hosted tunnel endpoint.

### 时间线

- 2010s: localtunnel emerged as a Node.js localhost tunneling CLI and public service.
- 2019: localtunnel 2.0.0 modernized the client with HTTPS support, a Promise API, and modern JavaScript syntax.
- 2021: localtunnel 2.0.x maintenance releases updated dependencies.
- 2025: the public site documents @TheBoroer as maintainer/operator and keeps the project linked to GitHub.

### Related projects

- localtunnel/server is the official server component for self-hosting compatible tunnel infrastructure.
- ngrok, Cloudflare Tunnel, LocalXpose, and inlets solve similar localhost-to-public-networking problems with different hosting and authentication models.

### 来源

- <https://github.com/localtunnel/localtunnel>
- <https://github.com/localtunnel/server>
- <https://theboroer.github.io/localtunnel-www/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Nix - localtunnel: normalized package name match | nixpkgs package indexes: pkgs/by-name/lo/localtunnel/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/localtunnel.yml](https://github.com/mxcl/pkgdb/blob/main/combined/localtunnel.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
