# Open your first HTTPS tunnel in 2 minutes

Source: https://prontaro.com/docs/start/tunnel/

Point prontaro CLI at a local web server and get a permanent HTTPS address with automatic TLS in one command — no router port forwarding required.

The Free plan requires linking a card or a GitHub account older than 90 days. It includes 1 online tunnel, 2 GB of traffic, and 40K HTTPS requests per month. Your `*.prontaro.dev` URL stays fixed across CLI restarts.

## Prerequisites

- A Prontaro account at [my.prontaro.com](https://my.prontaro.com/) (the Free plan works).
- A local HTTP server listening on your machine (the examples below use port `3000`). If you don’t have one running, start a quick test server in another terminal with `python3 -m http.server 3000`.

## Step 1. Install prontaro CLI and sign in

Install `prontaro` for your OS (Homebrew on macOS, [install.sh](https://prontaro.com/install.sh) on Linux, or [install.ps1](https://prontaro.com/install.ps1) on Windows):

#### macOS

**macOS · Homebrew**

```bash
brew install prontaro/tap/prontaro
```

**macOS · without Homebrew**

```bash
curl -fsSL https://prontaro.com/install.sh | sh
```

#### Linux

```bash
curl -fsSL https://prontaro.com/install.sh | sh
```

#### Windows

```powershell
irm https://prontaro.com/install.ps1 | iex
```

Sign in with `prontaro login` — it prints a one-time code and opens your browser to confirm sign-in in the dashboard:

```bash
prontaro login
```

```text
Your one-time code: K7NP-4WQR
Open: https://my.prontaro.com/cli/approve?code=K7NP-4WQR
Opening browser… waiting for confirmation (Ctrl+C to cancel).
✓ Logged in: dev@example.com · CLI token "workstation" · this machine: workstation
  Next: prontaro http 3000 — open a local server over HTTPS
```

In scripts, containers, and CI without an interactive terminal, create a token on the [CLI page](https://my.prontaro.com/cli) and set the `PRONTARO_KEY` environment variable (or use `prontaro login --token` / `--token-stdin`).

## Step 2. Start the HTTPS tunnel

Point `prontaro http` at your local port and give the tunnel a name:

```bash
prontaro http 3000 --name demo
```

```text
prontaro 0.2.0                                          Ctrl+C to stop

  Tunnel     demo                                    ● connected
  Address    https://a7f3c9b2.prontaro.dev  →  http://127.0.0.1:3000
  Access     everyone · no password   (as of launch)
  Server     <server> · <region> · 18 ms
  Account    user@example.com
  Slots      1 of 1 · plan "Free"   (as of launch)

  Requests   seen 0 · 5xx 0
  Browsers see a Prontaro notice page before your site; API calls and webhooks are not affected. Upgrading removes it.
```

Leave this process running while you need the tunnel. Your hostname stays reserved after `Ctrl+C`, so `prontaro http 3000 --name demo` or `prontaro run demo` later brings back the same URL.

> **Browser notice page on the Free plan**
>
> On the Free plan, browsers see a one-click Prontaro notice page before your site loads. API calls and webhooks (Stripe, GitHub, Telegram) pass straight through without it. Upgrading to [Tunnels or higher](https://prontaro.com/docs/billing/plans.md) removes the notice page and unlocks `*.prontaro.run` subdomains.

## Step 3. Verify the result

In another terminal, send a request to the HTTPS URL from Step 2:

```bash
curl -i https://a7f3c9b2.prontaro.dev/
```

You should see your local server’s response (for example, `HTTP/2 200`).

You can check your running tunnels and current monthly quota usage in the terminal or in the dashboard:

#### In the dashboard

1. Open **Tunnels** in [my.prontaro.com](https://my.prontaro.com/tunnels) to see the tunnel’s status, URL, and access rules.
2. Open **Plan & usage** to view your current traffic consumption, HTTPS request count, and quota reset date.

Tunnels [Open in dashboard](https://my.prontaro.com/tunnels)

Plan and usage [Open in dashboard](https://my.prontaro.com/plan)

#### In the terminal (CLI)

```bash
prontaro ls
```

```text
Traffic: 10 MB of 2 GB · HTTPS requests: 1 of 40000 until 2026-12-27
Plan "Free" · 1 of 1 in use
  NAME  ADDRESS                        LOCAL           LOCATION  STATE         MACHINE      ACCESS
  demo  https://a7f3c9b2.prontaro.dev  127.0.0.1:3000  <loc>     ● running 2m  workstation  everyone
```

## Troubleshooting

- **`502 local_unreachable`** — the tunnel is online, but no service is running on `127.0.0.1:3000`. Start your local server (`python3 -m http.server 3000`) or pass its exact address: `prontaro http 127.0.0.1:8080 --name demo`.
- **`No saved login for this user`** — you ran `prontaro login` under another OS user or never finished signing in. Run `prontaro login` as the current user (or set `PRONTARO_KEY`).
- **API unreachable or TLS errors** — corporate firewalls or proxies may block or inspect TLS. Run `prontaro doctor` to check DNS, system clock, and connectivity, or see [CLI errors](https://prontaro.com/docs/cli/errors.md).

## Next steps

- [Access control & firewalls](https://prontaro.com/docs/tunnels/access.md) — restrict tunnel access with IP allowlists or Basic Auth passwords.
- [Custom domains](https://prontaro.com/docs/tunnels/domains.md) — connect your own domain to an HTTPS tunnel with two DNS records.
- [TCP tunnels](https://prontaro.com/docs/tunnels/tcp.md) — expose local PostgreSQL, SSH, and other TCP services.
- [Background services (Linux & macOS)](https://prontaro.com/docs/cli/service.md) — run a tunnel as a system service with auto-start.
- [Send your first request from a static IP](https://prontaro.com/docs/start/ip.md) — set up a fixed outbound IPv4 for partner API requests.
