Prerequisites
Before you begin, you need:
- Python 3.11 or newer.
- An active HEVN account.
pipx for an isolated end-user install, or Poetry for local development.
Install
The recommended end-user install is pipx:
pipx install hevn-cli
hevn --help
If the package is not published to PyPI yet, install directly from GitHub:
pipx install "git+https://github.com/hevn/hevn-cli.git"
pipx upgrade hevn-cli
For local development:
poetry install
poetry run hevn --help
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:
hevn login --api-key hvn_...
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:
hevn whoami
hevn whoami --yaml
List accounts in machine-readable form:
Check transfer balance and allowance:
First useful workflow
Create an email contact and transfer USDC:
hevn contacts new --type email --name "Vendor" --email vendor@example.com
hevn contacts list --yaml
hevn transfer contact --contact-id <contact-id> --amount 25 --memo "Thanks"
Pay an invoice by id:
hevn transfer --invoice-id <invoice-id> --memo "Invoice payment"
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.