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
brew install prontaro/tap/prontarocurl -fsSL https://prontaro.com/install.sh | shcurl -fsSL https://prontaro.com/install.sh | shirm https://prontaro.com/install.ps1 | iexYou 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:
prontaro login --label dev-laptopYour 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 HTTPSOver 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:
prontaro statusNon-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:
# 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-inputIf you need to save a token once on a persistent headless server, pipe it from a secret file using --token-stdin:
prontaro login --token-stdin --label worker-01 < /run/secrets/prontaro_tokenSign out
prontaro logout✓ 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) tostdoutfor management commands (status,ls,login,logout,stop,rename,rm,access,service,update,doctor,version). Running tunnels andforwardwrite the plain-text public URL or listen address tostdoutand line-delimited JSON (JSON Lines, with"code"and"msg"on errors) tostderr.--yes(-y) — confirm deletions, public access changes, and Linuxlingerwithout prompting.--no-input— never ask interactive questions (same asPRONTARO_NO_INPUT=1orCI=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/prontaroor~/.config/prontaro - macOS:
~/Library/Application Support/prontaro - Windows:
%APPDATA%\prontaro
Next steps
- Install prontaro CLI on Linux — quick or manual installation with SHA256 verification and
systemdsetup. - Install prontaro CLI on macOS — setup on Apple Silicon and Intel Macs with Gatekeeper,
zsh, andlaunchd. - Install prontaro CLI on Windows — installation via PowerShell without admin rights and Task Scheduler auto-start.
- prontaro CLI command reference — full list of subcommands, global flags, and terminal examples.
- Diagnostics and error codes — troubleshooting with
prontaro doctorand CLI exit codes.
Something wrong on this page? Contact us