Skip to main content

Prerequisites

Before you begin, you need:
  • An active HEVN account.
  • pipx (Python 3.11+) or Homebrew for an isolated end-user install.

Install

pipx installs the CLI from PyPI into its own isolated environment:
Upgrade to the latest published release:

Homebrew

On macOS and Linux you can install from the HEVN tap:
The tap is the formula source, so the first command both taps and installs. Upgrade with:

Authenticate

Run the browser login flow:
The CLI opens HEVN, waits for a local callback, saves your app API key, and prints the config path. If you are on a remote machine or do not want the browser to open automatically, use:
For automation or remote environments, save an API key directly without opening a browser:
The same hvn_... key is used for all authenticated CLI calls, including transfers.

Confirm your account

Check the active account:
Introspect the active API key, owning app, scopes, balance, and spend limit:
List accounts in machine-readable form:
Check transfer balance and allowance:

First useful workflow

Create an email contact and transfer USDC:
Pay an invoice by id:

Log out

Clear saved local credentials:
hevn logout removes saved HEVN CLI credential fields from the local config file. It does not delete your HEVN account or revoke unrelated credentials.