Testnetsats and USDhb here have no value.
Skip to content
Open testnet app

Install ​

hardbasis is the HardBasis command line, for people who work in a terminal and for AI agents. Pick one of three ways to install it.

Installer ​

bash
curl -fsSL https://raw.githubusercontent.com/HardBasis/hardbasis-cli/main/scripts/install.sh | sh

The installer picks the build for your OS and architecture, checks it against the release's SHA256SUMS, and installs ~/.local/bin/hardbasis. Builds exist for darwin-arm64, darwin-x64, linux-x64, linux-arm64 and windows-x64.

Pin a release with -s -- --version v0.1.0. Add a short hb alias with -s -- --alias hb:

bash
curl -fsSL https://raw.githubusercontent.com/HardBasis/hardbasis-cli/main/scripts/install.sh | sh -s -- --alias hb

npm ​

bash
npm i -g @hardbasis/cli

npm needs Node 22 or later.

Source checkout ​

bash
git clone https://github.com/HardBasis/hardbasis-cli && cd hardbasis-cli
pnpm install && pnpm run build:local

Run from source ​

From a checkout, without building a binary:

bash
pnpm install
pnpm hardbasis markets list
pnpm hardbasis auth login

alias hardbasis='pnpm --silent --dir ~/project/hardbasis-cli hardbasis' runs the checkout from anywhere. For one executable instead, build:local uses the same bun flags as a release, needs bun, writes dist/hardbasis and prints the line to install it:

bash
pnpm run build:local
mkdir -p ~/.local/bin && cp dist/hardbasis ~/.local/bin/

Verify ​

  • Checksums. The installer refuses a binary whose hash is not in the release's SHA256SUMS. For a manual download, check it yourself with shasum -a 256 -c SHA256SUMS beside the asset.
  • Provenance attestation (from the first public release): every release asset carries a GitHub build provenance attestation.
bash
gh attestation verify ~/.local/bin/hardbasis --repo HardBasis/hardbasis-cli

Log in on testnet ​

bash
hardbasis auth login

On testnet this signs up, takes the faucet grant, mints a read,trade delegate key and stores only the delegate in ~/.config/hardbasis/config.toml (mode 0600). The master key is printed once on stderr and never written, unless you pass --keep-master. --scopes a,b picks the delegate's scopes; a set that includes withdraw prints a warning that the key can move funds.

hardbasis auth whoami reads the key's scopes back from the venue, never from the config file.

What --version tells you ​

bash
hardbasis --version

prints four things:

partmeaning
package versionthe @hardbasis/cli release, for example 0.1.0
gitthe commit the binary was built from
specthe SHA-256 of the OpenAPI spec the commands were generated from
gatewaythe build of the gateway that spec was fetched from

If a command looks different from this site's REST reference, compare the spec value: the CLI is pinned to one spec and is repinned deliberately.

First commands ​

bash
hardbasis markets list
hardbasis account get
hardbasis orders create --market btc-usd --side buy --type limit \
  --limit-price 65000.00 --contracts 10 --dry-run

Drop --dry-run to place the order for real, on testnet. Next: connect an agent over MCP.

Last updated 2026-11-02

Program policy v1 · numbers current as of 2026-11-25

Testnet: test sats have no value. Nothing on this page is an offer, a solicitation, or advice.