Hopwire Hopwire

Docs

CLI reference

Every hopwire command, argument, option and environment variable, with defaults, output, examples and exit codes.

The binary is hopwire. It needs Node.js 20 or newer. This page describes version 0.1.0.

text
hopwire <command> [options]
Command What it does
hopwire http <port> Forward a local entry point to http://127.0.0.1:<port>, log every exchange and show the traffic in the inspector
hopwire up Start every service of hopwire.yaml: one traffic log and one inspector for all
hopwire id Print the public key of this machine
hopwire connect <peer-key> Reach a teammate's shared service on 127.0.0.1:<port>
hopwire watch <log-key> Follow a teammate's shared traffic log live in the inspector
hopwire login Store an API token of the control plane on this machine, for public mode
hopwire logout Remove the stored API token from this machine

Running hopwire without a command prints the help.

Modes

Private mode is the default. No account, no servers of ours, end-to-end encrypted between you and the teammates you choose. Without --share nothing leaves the machine at all: only loopback ports are opened. With --share, the nodes of the DHT see IP addresses and keys, and teammates who hold the log key see everything the log captured.

Public mode (--public, or public: true in hopwire.yaml) serves the service under a public URL through the edge. It needs an account (hopwire login). Requests pass through the edge.

Private mode never reads the edge URL, the token or the stored account.

Global options

These work with every command.

Option Default Description
--data-dir <path> $HOPWIRE_HOME, or ~/.hopwire Where identity, traffic log and the API token are stored
-h, --help Show the help and exit, whatever command is given
--version Print the version and exit

Options can stand before or after the command and its argument. A value that starts with a hyphen has to be written as --option=<value>.

An option that belongs to another command is refused: hopwire id --share fails with --share is not an option of hopwire id.

Environment variables

Variable Read by Description
HOPWIRE_HOME every command The data directory, when --data-dir is not given. Set but empty counts as not set
HOPWIRE_EDGE_URL hopwire http --public The URL of the edge: ws:// or wss:// without a path. ws:// is only accepted for an edge on this machine (127.x.x.x, localhost, [::1]), because the token travels in a header of the connect request. hopwire up does not read it; it takes edge.url from the file
HOPWIRE_DEV_TOKEN hopwire http --public, hopwire up The dev token of a local edge (the HOPWIRE_DEV_TOKEN in its .dev.vars). With it a local edge can be used without an account
HOPWIRE_TOKEN hopwire login The API token to store, instead of typing it at the prompt
HOPWIRE_DHT_BOOTSTRAP http --share, up with p2p.share, connect, watch Comma-separated host:port list of a DHT to join instead of the public one, for example 127.0.0.1:49737. A switch for development and tests. It is not a product setting and is not part of --help

How the token of a public tunnel is chosen:

  • hopwire http --public: when HOPWIRE_DEV_TOKEN is set and not empty, it is used and the stored account is not read. Otherwise the account of hopwire login is used.
  • hopwire up: with controlPlane.url in the file the account of hopwire login is used and HOPWIRE_DEV_TOKEN is ignored. Without it HOPWIRE_DEV_TOKEN is required.

The data directory

~/.hopwire by default. It is created on first use, readable for its owner only (mode 0700).

Entry Content
identity.json The key pair of this machine (mode 0600). Created on first use by hopwire id, connect, watch, and by http and up when they share
store/ The traffic log. One log per data directory, shared by all runs and all services
config.json The API token and the URL of the control plane, written by hopwire login (mode 0600)

One data directory serves one running tunnel or watcher at a time. A second one fails with:

text
The data directory /home/you/.hopwire is in use by another tunnel; stop that one or choose another directory with --data-dir <path>.

To run two at once, give one of them its own directory with --data-dir. A separate directory has a separate identity and a separate log.


hopwire http

text
hopwire http <port> [--listen <port>] [--inspect <port> | --no-inspect] [--name <service>]
                    [--share [--allow <pubkey>]...] [--public [--subdomain <name>]]

Opens an entry point on 127.0.0.1 and forwards every request to http://127.0.0.1:<port>. Each exchange is written to the traffic log, printed as one line and shown in the inspector. Request and response bodies are captured up to 2 MB each; larger bodies are still forwarded in full.

Without --share and --public, nothing but loopback is opened.

Argument

Argument Description
<port> Port of the local service, 1 to 65535. Required

Options

Option Default Description
--listen <port> 4041 Loopback port of the entry point. 0 picks a free one
--inspect <port> 4040 Loopback port of the inspector. 0 picks a free one
--no-inspect off Run without the inspector. Cannot be combined with --inspect
--name <service> default Service name written to the traffic log. 1 to 255 bytes without control characters. A teammate asks for the service by this name
--share off Let teammates reach the service (hopwire connect) and follow the traffic log (hopwire watch) directly over P2P. The log holds headers and bodies as captured, including credentials
--allow <pubkey> every key With --share only: only this public key may connect or watch. Can be given several times. 64 hexadecimal characters, as hopwire id prints them
--public off Serve the service under a public URL through the edge. Needs HOPWIRE_EDGE_URL and either an account (hopwire login) or HOPWIRE_DEV_TOKEN
--subdomain <name> the fixed t-... URL of your organisation With --public only: a subdomain your organisation reserved in the control plane. 3 to 63 lowercase letters, digits or hyphens; must not start or end with a hyphen, must not start with t-, and must not be a reserved name (www, api, app, edge, admin, mail, status, docs, hopwire)

Without --subdomain, a logged-in tunnel is served under the fixed URL of its organisation, the same on every start. With HOPWIRE_DEV_TOKEN the CLI makes up a random name instead, new on every start: t- followed by 12 characters.

Output

Startup lines, in this order. Lines that do not apply are left out.

text
Mode         private (local only, no network connection beyond loopback)
Forwarding   http://127.0.0.1:4041 -> http://127.0.0.1:3000
Traffic log  <log-key> (0 exchanges)
Inspector    http://127.0.0.1:4040/<key>

The Mode line is one of:

Started with Line
neither Mode private (local only, no network connection beyond loopback)
--share Mode private (direct P2P: no account, no servers of ours, end-to-end encrypted between you and the teammates you choose)
--public Mode public (public URL through the edge; needs a token, requests pass through the edge)
both Mode public and private P2P (public URL through the edge, plus direct P2P with the teammates you choose)

With --public a Public URL line follows Forwarding. A logged-in tunnel adds a Usage line after it (see Plans, limits and usage). With --share a Peer key line and a Notice line follow Traffic log:

text
Peer key     <public key of this machine>
Notice       The shared log contains headers and bodies as captured, including credentials. It is the whole log of this data directory, earlier runs included. Anyone with the log key can read it. The peer key is not a secret (the nodes of the DHT see it), and anyone who knows it can reach the service; restrict both with --allow <pubkey>.

With --allow the notice ends with Only the one allowed key can read it or reach the service. (or Only the 2 allowed keys ...).

The number in Traffic log is what the log already held at the start. The log of a data directory keeps the exchanges of earlier runs.

After startup, one line per exchange: method, path, status, duration.

text
GET     /health  200  3ms
POST    /webhooks/stripe  500  41ms

While a public tunnel runs, changes of the connection to the edge are reported:

text
Edge         connection lost; the public URL is offline, next attempt in 0.5 s
Edge         connected again; the public URL is served

The CLI reconnects by itself. The wait doubles from 0.5 s up to 30 s.

When the local service cannot be reached, the client gets 502 with the body Hopwire: the local service did not answer (<code>), for example (ECONNREFUSED). That exchange is written to the traffic log like any other. The body Hopwire: the request could not be forwarded is reserved for a request the CLI could not carry through at all.

Examples

Forward to a service on port 3000 and open the inspector on http://127.0.0.1:4040:

sh
$ hopwire http 3000
$ curl http://127.0.0.1:4041/health

Other ports, a service name, no inspector:

sh
$ hopwire http 8080 --listen 4051 --inspect 4050 --name api
$ hopwire http 8080 --listen 0 --no-inspect

Share with every teammate who has the keys, or with one key only:

sh
$ hopwire http 3000 --share
$ hopwire http 3000 --share --allow 7c0e5a1d93b2f4486a7d8e9f0a1b2c3d4e5f60718293a4b5c6d7e8f901a2b3c4

Public URL with your account, the fixed URL of your organisation or a reserved name:

sh
$ export HOPWIRE_EDGE_URL=wss://<edge host>
$ hopwire login
$ hopwire http 3000 --public
$ hopwire http 3000 --public --subdomain my-api

Public URL through a local edge (wrangler dev) without an account:

sh
$ HOPWIRE_EDGE_URL=ws://127.0.0.1:8787 HOPWIRE_DEV_TOKEN=<dev token of the edge> hopwire http 3000 --public

hopwire up

text
hopwire up [--config <path>]

Starts every service of hopwire.yaml at once. All of them write to the one traffic log of the data directory and show up in one inspector. Each service has its own loopback entry point. A public service has its own subdomain and its own connection to the edge. With p2p.share: true teammates reach each service by its name.

hopwire up takes no argument. Ports, sharing and public URLs come from the file, not from options.

Options

Option Default Description
--config <path> hopwire.yaml in the working directory The config file. A relative path is resolved against the working directory

What the file sets

The file format has its own page. In short:

Key Default Description
version required Must be 1
inspector.port 4040 Loopback port of the inspector. 0 picks a free one. hopwire up always runs the inspector
edge.url URL of the edge. Required as soon as one service is public
controlPlane.url The control plane that issues the tokens of public services. Has to be the one this machine is logged in to. Without it, public services use HOPWIRE_DEV_TOKEN
p2p.share false Same as --share, for every service
p2p.allow every key List of public keys, same as --allow
services.<name>.local required The local service: an http URL on this machine without a path, for example http://127.0.0.1:3000
services.<name>.public false Serve it under a public URL
services.<name>.subdomain the fixed t-... URL of your organisation Same rule as --subdomain
services.<name>.auth.basic user:password the edge asks of every public request (HTTP Basic Auth)

Unknown keys are refused. A file that is not exactly what the format allows stops hopwire up with one sentence that names the field, and nothing is started:

text
hopwire.yaml: services.api.local must be an http URL on this machine without a path, for example http://127.0.0.1:3000; Hopwire only forwards to loopback addresses.

Entry ports

Entry points count up from 4041 in the order of the file. The port of the inspector is left out. When a port is taken by another program, that service gets a free port instead; the Forwarding line says where each service listens.

Output

text
Config       /home/you/project/hopwire.yaml (2 services)
Service      web
Mode         private (local only, no network connection beyond loopback)
Forwarding   http://127.0.0.1:4041 -> http://127.0.0.1:3000
Service      api
Mode         private (local only, no network connection beyond loopback)
Forwarding   http://127.0.0.1:4042 -> http://127.0.0.1:8080
Traffic log  <log-key> (0 exchanges)
Inspector    http://127.0.0.1:4040/<key>

A public service adds a Public URL line after its Forwarding line. With auth.basic the line ends with (asks for the user and password of auth.basic). With p2p.share the Peer key and Notice lines follow Traffic log, as for hopwire http.

With more than one service, each exchange line starts with the service name, and edge lines end with (service <name>):

text
web  GET     /  200  12ms
api  POST    /orders  201  35ms

Examples

A minimal hopwire.yaml:

yaml
version: 1
services:
    web:
        local: http://127.0.0.1:3000
    api:
        local: http://127.0.0.1:8080
sh
$ hopwire up
$ hopwire up --config ./config/hopwire.staging.yaml

Public services through a local edge, with the dev token:

yaml
version: 1
edge:
    url: ws://127.0.0.1:8787
services:
    hooks:
        local: http://127.0.0.1:4000
        public: true
sh
$ HOPWIRE_DEV_TOKEN=<dev token of the edge> hopwire up

hopwire id

text
hopwire id

Prints the public key of this machine: 64 hexadecimal characters on one line. The identity is created on first use and stored in identity.json of the data directory. No network connection is opened.

Give this key to a teammate who restricts sharing with --allow or p2p.allow.

No options besides the global ones.

Examples

sh
$ hopwire id
$ hopwire id --data-dir ./second-identity

hopwire connect

text
hopwire connect <peer-key> --port <port> [--service <name>]

Opens a listener on 127.0.0.1:<port>. Every TCP connection to it becomes one end-to-end encrypted stream to the teammate's machine and reaches the service they share. Requests that arrive this way are recorded in the teammate's traffic log.

The peer is contacted once before the listener opens, so a wrong key, a refusal or a failed connection is reported at once and not on the first request.

There is no relay. If no direct connection is possible between the two networks, the command fails.

Argument

Argument Description
<peer-key> The teammate's Peer key: 64 hexadecimal characters. Required

Options

Option Default Description
--port <port> required Loopback port that reaches the teammate's service. 0 picks a free one
--service <name> the peer's only service Service of the teammate, when it shares more than one. At most 255 bytes

Output

text
Mode         private (direct P2P: no account, no servers of ours, end-to-end encrypted between you and the teammates you choose)
Forwarding   http://127.0.0.1:5000 -> peer <peer-key>
Peer key     <public key of this machine>

With --service the Forwarding line ends with (service <name>).

A connection that fails later closes the client's connection and prints the reason as one line.

Errors

Message starts with Meaning
No peer with the key ... was found Wrong key, no network, or the teammate's tunnel is not running or not shared
The peer ... was found but did not accept the connection The teammate uses --allow and this machine's key is not on the list. The message prints the key to hand over
The peer runs several services; choose one with --service <name>. The teammate runs hopwire up with more than one service
The peer has no service named "..." Wrong --service
The peer ... did not answer in time No answer within 30 seconds
No direct connection to the peer ... was possible Hole punching failed. Try from another network
The peer did not understand this connect request The two sides run different versions

Examples

sh
$ hopwire connect a3f9c2e17b4d6058c1e2f3a4b5c6d7e8f90123456789abcdef0123456789abcd --port 5000
$ curl http://127.0.0.1:5000/health
sh
$ hopwire connect a3f9c2e17b4d6058c1e2f3a4b5c6d7e8f90123456789abcdef0123456789abcd --port 0 --service api

hopwire watch

text
hopwire watch <log-key> [--replay-target <url>] [--inspect <port>]

Replicates a teammate's traffic log live to this machine and shows it in the inspector, next to this machine's own log. Each exchange of the teammate's log is also printed as one line.

Replays from the inspector go to --replay-target, a service on your own machine, and land in your own log. The teammate's log is never written to. Without --replay-target, Replay is off.

hopwire watch always runs the inspector. It uses the traffic log of the data directory, so it cannot run next to hopwire http or hopwire up on the same data directory; use --data-dir for one of them.

Argument

Argument Description
<log-key> The key from the teammate's Traffic log line: 64 hexadecimal characters. Required. The key of the log on this machine is refused

Options

Option Default Description
--replay-target <url> Replay off Local service that replays are sent to: an http URL on this machine without a path, for example http://127.0.0.1:3000
--inspect <port> 4040 Loopback port of the inspector. 0 picks a free one

Output

text
Mode         private (direct P2P: no account, no servers of ours, end-to-end encrypted between you and the teammates you choose)
Watching     <log-key> (128 exchanges)
Peer key     <public key of this machine>
Replay to    http://127.0.0.1:3000
Inspector    http://127.0.0.1:4040/<key>

Without --replay-target the fourth line is:

text
Replay       off; start hopwire watch with --replay-target <url> to replay to a local service

Errors

Message starts with Meaning
Nobody is sharing the log ... right now Wrong key, no network, or the teammate's tunnel is not running or not shared.
The sharer of the log ... was found but no connection came about No direct connection was possible (there is no relay), or the sharer uses --allow and this machine's key is not on the list. The message prints the key to hand over
That is the key of the traffic log on this machine watch takes the log key a teammate shared

Examples

sh
$ hopwire watch 5d1f0c7a9b3e4d2f8a6c1b0e7f9d3a5c2e4b6d8f0a1c3e5b7d9f1a3c5e7b9d1f
$ hopwire watch 5d1f0c7a9b3e4d2f8a6c1b0e7f9d3a5c2e4b6d8f0a1c3e5b7d9f1a3c5e7b9d1f --replay-target http://127.0.0.1:3000

Watch while your own tunnel runs on the default data directory:

sh
$ hopwire watch 5d1f0c7a9b3e4d2f8a6c1b0e7f9d3a5c2e4b6d8f0a1c3e5b7d9f1a3c5e7b9d1f --data-dir ~/.hopwire-watch --inspect 4050

hopwire login

text
hopwire login [--api <url>]

Stores an API token of the control plane on this machine. Only public mode needs it. The control plane is the one of --api, else the one of the last login on this data directory, else the hosted one, https://hopwire.to.

The token is taken from HOPWIRE_TOKEN, or asked for at a prompt that does not show what is typed (API token (input is hidden): ). Enter ends the input; Ctrl-C and Ctrl-D cancel. The token is checked with the control plane and only stored when the control plane accepted it. It is written with the URL of the control plane to config.json in the data directory, readable for this user only. The token is never printed.

An API token starts with hw_ and has 43 characters. Create it on the API tokens page of the control plane.

Without a terminal (CI, a pipe) there is no prompt: set HOPWIRE_TOKEN.

Options

Option Default Description
--api <url> the URL of the last login on this data directory, else https://hopwire.to The URL of the control plane: https:// without a path. http:// is only accepted for a control plane on this machine. Needed only for another control plane than the hosted one, such as one on this machine

Output

text
Logged in    [email protected] at https://<control plane host>
Organisation Your Name's organisation (free plan); the token acts in this organisation
Token        stored in /home/you/.hopwire/config.json (readable for this user only)

Errors

Message starts with Meaning
That is not an API token Not hw_ plus 40 letters and digits
The control plane at ... does not accept the API token (401) Unknown or revoked token
The control plane at ... cannot be reached Wrong URL, no connection, or no answer within 15 seconds
hopwire login has no terminal to ask for the API token on No terminal and no HOPWIRE_TOKEN
Cancelled; nothing was stored. Ctrl-C or Ctrl-D at the prompt

Examples

The hosted control plane (https://hopwire.to):

sh
$ hopwire login

Another control plane:

sh
$ hopwire login --api https://<control plane host>

Log in again later; the URL of the last login is remembered:

sh
$ hopwire login

Without a prompt:

sh
$ HOPWIRE_TOKEN=hw_EXAMPLE0000000000000000000000000000000000 hopwire login --api https://<control plane host>

A control plane on this machine:

sh
$ hopwire login --api http://localhost:8089

hopwire logout

text
hopwire logout

Removes the stored API token from config.json. The URL of the control plane stays in the file, so the next hopwire login needs no --api.

The control plane is not contacted. The token stays valid there until you revoke it on the API tokens page.

No options besides the global ones.

Output

text
Logged out   the token was removed from /home/you/.hopwire/config.json; it stays valid until you revoke it on the API tokens page of the control plane

When no token was stored:

text
Logged out   no token was stored in /home/you/.hopwire/config.json

Public mode errors

These end hopwire http --public and hopwire up with exit code 1, at the start or while the tunnel runs.

Message starts with Meaning
--public needs the URL of the edge: set HOPWIRE_EDGE_URL HOPWIRE_EDGE_URL is missing or empty
HOPWIRE_EDGE_URL must be a ws:// or wss:// URL without a path Malformed edge URL
HOPWIRE_EDGE_URL must use wss:// unless the edge runs on this machine ws:// to another machine
--public needs an account Not logged in and no HOPWIRE_DEV_TOKEN
Your organisation at ... has not reserved the subdomain ... (403) Reserve it on the Subdomains page, or leave the subdomain out to use the fixed URL of your organisation
This name is still your organisation's, but its current plan has no room for it The name is beyond what the plan allows (name_not_in_plan): use the fixed URL, release a name or move to a plan with more names
Your organisation is suspended, so it cannot open public tunnels The organisation gets no connect tokens while it is suspended (organisation_suspended)
Your organisation already has ... tunnels online, the most its plan allows at once The edge refused the tunnel (429): all tunnels of the plan are online. Not retried
The edge at ... cannot be reached Wrong edge URL, or the edge is not running, at the start
The edge at ... refused the token (401) Wrong token, or the edge does not belong to the control plane you are logged in to
The token does not allow the subdomain ... (403) The token was issued for another subdomain
Another tunnel connected for the subdomain ... and replaced this one A subdomain serves one tunnel. The later one wins; this one stops
The edge at ... closed the tunnel because its token expired or was revoked Start the tunnel again with a valid token
The control plane at ... does not accept the API token (401) While the tunnel runs: the API token was revoked, so the connect token could not be renewed
The control plane at ... no longer issues connect tokens for ... (403) While the tunnel runs: the name is no longer the fixed URL of your organisation; start the tunnel again
The edge closed the tunnel for ... after 24 hours without a request Free plan: the edge closes a tunnel that had no public request for 24 hours. Start it again; the URL stays the same
No new token could be fetched for the subdomain ... The renewal failed for good with a failure the control plane gave no sentence for

A logged-in tunnel renews its connect token with the control plane by itself, when half of the token's 300 seconds have passed. When the control plane refuses a renewal for good, the tunnel ends with the control plane's own sentence (the rows above, or Your organisation at ... has not reserved the subdomain ... (403) for a name that was released). A control plane that cannot be reached for a moment is asked again while the current token still counts. A connection that is merely lost is not an error: the CLI reports it with the Edge lines and reconnects.


Stopping

Ctrl-C (SIGINT) or SIGTERM stops a running command in order: entry points and inspector, connections to the edge, P2P, then the traffic log. Exchanges that were already answered are still written to the log. This also works while the command is still starting.

A shutdown that takes longer than 4 seconds is cut short with Shutdown took too long; exiting without waiting for the rest. A second signal exits at once.

Exit codes

Code When
0 The command finished (id, login, logout, --help, --version), or a running command was stopped with one SIGINT or SIGTERM
1 A failure: a port in use, a data directory in use, an unusable hopwire.yaml, a peer or log that could not be reached, a refused token, a missing HOPWIRE_EDGE_URL. Also when a public tunnel ended by itself (subdomain taken over, token no longer accepted, all tunnels of the plan online, closed after 24 hours without a request on Free), or when the shutdown itself failed
2 A wrong command line: unknown command or option, missing or malformed argument, options that cannot be combined. The message ends with Run "hopwire --help" for usage.
130 A second SIGINT during shutdown
143 A second SIGTERM during shutdown

Every failure is one sentence on stderr that says what happened and what to do. Startup lines and exchange lines go to stdout.

Common failures with exit code 1:

text
Port 4041 for the entry point is already in use; choose another one with --listen <port>.
Port 4040 for the inspector is already in use; choose another one with --inspect <port> or run with --no-inspect.
Port 80 for the entry point needs privileges this user does not have; choose a port above 1023 with --listen <port>.
There is no hopwire.yaml in this directory; create one (hopwire.example.yaml shows every field) or name a file with --config <path>.

Common failures with exit code 2:

text
Unknown command "serve"
port must be a port number between 1 and 65535
--allow only works together with --share
--subdomain only works together with --public
--inspect and --no-inspect cannot be combined
hopwire connect needs --port <port>, the loopback port that reaches the peer
Too many arguments; the command is hopwire http <port>

Plans, limits and usage

A public tunnel of a logged-in CLI runs under the plan (Free, Pro or Team) of the organisation its API token acts in, and the edge enforces the plan's daily limits. Private mode has no limits and needs no account. A tunnel with HOPWIRE_DEV_TOKEN on a local edge has no plan.

  • At a daily limit the public URL answers 429 until 00:00 UTC. There is no overage and nobody is charged for it.
  • The limits cover requests per day, data per day, in-flight time and the number of tunnels online at once, plus the longest single response and, on Free, an idle disconnect after 24 hours without a request.
  • On the Free plan a warning page is shown to browsers that load an HTML page through the public URL.
  • The usage page of the control plane shows where the organisation stands, and limit emails go to its owner and admins at 80% and 100% of a limit.
  • Limits are counted per organisation (your personal one, or a team's), not per machine.

What the CLI shows:

text
Public URL   https://t-k3v9qzr2m7xa.hwr.sh
Usage        free plan, today (UTC): 12 of 2,000 requests, 1.2 MB of 200 MB, 3 s of 20 min in flight, 1 of 1 tunnel online; resets at 00:00 UTC
  • The Usage line follows Public URL when a logged-in public tunnel connects: the plan and what the organisation used today, as the edge counted it at that moment. The edge counts what tunnels hold in reserve as used, so the numbers can be a little high. With hopwire up each public service has its own line.

  • When the edge reports that a daily limit was reached, the CLI prints one line, once per limit and day:

    text
    Limit        Daily request limit of the plan reached; public requests are answered 429 until 00:00 UTC

    The other two read Daily data limit and Daily in-flight time. With several services, hopwire up adds (service <name>). The tunnel keeps running.

  • A connect refused with 429 because all tunnels the plan allows are online ends the command with the edge's sentence and exit code 1. It is not retried.

  • On Free, the edge closes a tunnel after 24 hours without a public request; the command ends with exit code 1. Starting it again reconnects under the same URL.

There is no hopwire usage command. The commands, options, environment variables and exit codes above are complete for version 0.1.0.