Skip to content
Sections

prontaro CLI overview

A single command-line client for inbound HTTPS and TCP tunnels, local port forwarding, and checking your account status from the terminal or CI.

On this page8

prontaro is a single binary with no dependencies for macOS, Linux, and Windows (amd64, arm64).

When you need the CLI — and when you do not

Task CLI needed? Alternative
Outbound HTTP/HTTPS or socks5h:// proxy No Create credentials in the dashboard and pass the proxy URL to your app (quickstart)
Outbound requests via Relay URL (n8n, Make, Edge) No Create a Relay URL in the dashboard
Local TCP port forwarding (prontaro forward) Yes Connect over socks5h:// if your client supports SOCKS5
Inbound HTTPS or TCP tunnels (http, tcp, run) Yes —
Tunnel status, stopping, renaming, deleting, IP access rules Optional Prontaro dashboard
Proxy credentials, Relay URLs, custom domains, Basic Auth passwords, PTR No Managed in the Prontaro dashboard

Install

macOS
macOS · Homebrewbash
brew install prontaro/tap/prontaro
macOS · without Homebrewbash
curl -fsSL https://prontaro.com/install.sh | sh
Linux
Linuxbash
curl -fsSL https://prontaro.com/install.sh | sh
Windows
Windowspowershell
irm https://prontaro.com/install.ps1 | iex

You can also grab a ready-to-paste install command and manage CLI tokens on the CLI page in the dashboard:

Direct links to installer scripts and release metadata:

  • Homebrew (macOS & Linuxbrew): brew install prontaro/tap/prontaro
  • Linux & macOS installer: install.sh
  • Windows PowerShell installer: install.ps1
  • Latest release JSON: latest.json

Standalone installs update in place with prontaro update (Homebrew uses brew upgrade prontaro/tap/prontaro). For OS-specific details, manual verification, and background execution, see Linux, macOS, or Windows.

Sign in, check status, and sign out

Run prontaro login in an interactive terminal. It prints a one-time code (XXXX-XXXX), opens your browser to confirm sign-in in the dashboard, and saves a new CLI token locally. Pass --label to name this machine in prontaro ls and prontaro status:

bash
prontaro login --label dev-laptop
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: user@example.com · CLI token "dev-laptop" · this machine: dev-laptop
  Next: prontaro status — show your account, static IPs and limits
  Next: prontaro http 3000 — open a local server over HTTPS

Over SSH or on a headless host without a browser, prontaro login automatically prints the code and URL without trying to open a browser (you can also pass --no-browser). If you already created a token on the CLI page, run prontaro login --token to paste it with hidden input.

Check your account, active plan, static IPs, and current usage anytime:

bash
prontaro status

Non-interactive authentication in CI and containers

In CI pipelines, containers, and scripts without a terminal, set the PRONTARO_KEY environment variable directly. prontaro reads it from memory without writing credentials to disk, and works even on read-only filesystems or containers without $HOME:

bash
# Recommended for CI and containers: use PRONTARO_KEY directly
export PRONTARO_KEY="<your-cli-token>"
prontaro status --json
# In containers, run under a restart policy (e.g. docker run --restart unless-stopped)
prontaro forward 15432 db.example.com:5432 --no-input

If you need to save a token once on a persistent headless server, pipe it from a secret file using --token-stdin:

bash
prontaro login --token-stdin --label worker-01 < /run/secrets/prontaro_token

Sign out

bash
prontaro logout
text
✓ Logged out on this machine. The CLI token remains active until you revoke it in your dashboard (https://my.prontaro.com/cli).

To revoke the token everywhere, delete it on the CLI page of your dashboard.

Scripting and CI mode

Command output goes to stdout; status lines, prompts, warnings, and errors go to stderr. Piping prontaro ls into another command switches tables to tab-separated lines (TSV) for awk or cut.

In non-interactive mode (scripts, CI, containers), http, tcp, run, and forward exit right away with a non-zero code when startup is refused — for example, on an unpaid account or when you hit the tunnel limit. Rely on your service or container restart policy for retries, such as docker run --restart unless-stopped. An already running tunnel does not exit if blocked or overdue; it waits and recovers on its own.

Key flags for automation:

  • --json — emits structured JSON (an object or array) to stdout for management commands (status, ls, login, logout, stop, rename, rm, access, service, update, doctor, version). Running tunnels and forward write the plain-text public URL or listen address to stdout and line-delimited JSON (JSON Lines, with "code" and "msg" on errors) to stderr.
  • --yes (-y) — confirm deletions, public access changes, and Linux linger without prompting.
  • --no-input — never ask interactive questions (same as PRONTARO_NO_INPUT=1 or CI=true).

See the full list of global flags in the CLI command reference.

Environment variables and state directory

Variable Effect
PRONTARO_KEY CLI token for the current invocation; overrides the saved token without writing to disk.
PRONTARO_STATE_DIR Custom state directory path (overridden by --state-dir).
NO_COLOR Any non-empty value disables ANSI colors (same as CLICOLOR=0 or --no-color).
CI / PRONTARO_NO_INPUT Disables interactive prompts and switches tunnels from the live screen to plain log lines (same as --no-input).
HTTPS_PROXY, HTTP_PROXY, NO_PROXY Outbound proxy used by prontaro to reach the Prontaro API and Prontaro nodes.
PRONTARO_LOG_FILE Redirects stderr to a size-rotated log file (10 MiB × up to 3 files).
PRONTARO_NO_UPDATE_NOTIFIER Disables the daily new-version notice.

The state directory stores your token, machine name, and active tunnel state, accessible only to your user (0700 on Linux and macOS; user-only ACL on Windows):

  • Linux: $XDG_CONFIG_HOME/prontaro or ~/.config/prontaro
  • macOS: ~/Library/Application Support/prontaro
  • Windows: %APPDATA%\prontaro

Next steps

Something wrong on this page? Contact us

Contact us

Enter your email so we can reply.Enter a valid email, e.g. name@company.example.
Tell us what you need or what went wrong.up to 2,000 characters

Sent! We’ll reply to .

Or email us at support@prontaro.com