Skip to main content

CLI Commands

All commands support --json for machine-readable JSON output.

:::info Testnet chain and the retired vault testnet (the default) is Ethereum Sepolia (chain 11155111): stake, unstake, rewards, balance and governance use the hub 7N7D, ProfitDistributor v2 and StakedGovernance v2 there. There is no vault on testnet today: the V1 vault and MockUSDC on Arbitrum Sepolia were retired on 2026-11-25 and Vault V2 (HyperEVM, chain 998) is not deployed yet. deposit, withdraw and delegate-deposit refuse with an error and send nothing. If you set SEVEN_N_SEVEN_D_RPC_URL to an Arbitrum Sepolia endpoint, point it at an Ethereum Sepolia one instead. :::

status​

Show vault status, on-chain metrics, and agent info.

7n7d status
7n7d status --json

Output:

  • Network name
  • Vault status
  • Share Price (USDC, formatted from on-chain data)
  • TVL (USDC, formatted from on-chain data)
  • Agent status
  • Number of open positions
  • Trading environment: venue · network · enabled DEXes (e.g. hyperliquid · TESTNET · dexes: native, xyz)

On testnet there is no vault today, so Share Price and TVL show as N/A.


positions​

List open trading positions.

7n7d positions
7n7d positions --asset-class EQUITY
7n7d positions --json

Options:

  • --asset-class <class> — only CRYPTO, EQUITY, COMMODITY or PREDICTION positions

Output: One block per position with an identity header (TSLA · EQUITY · dex xyz · hl-testnet:xyz:TSLA) followed by all available fields.


markets​

List every market on the configured Hyperliquid network with its activation state.

7n7d markets
7n7d markets --asset-class EQUITY
7n7d markets --active
7n7d markets --json

Options:

  • --asset-class <class> — one asset class only
  • --active — only markets that are ACTIVE for trading

Output: Network and enabled DEXes, then a table: ticker, class, DEX, activation (ACTIVE, CATALOG_ONLY, DISABLED), venue max leverage, market id.


balance​

Show vault shares, token balances, staked amount, and pending rewards for an address.

7n7d balance [address]
7n7d balance 0x1234...abcd --json
ArgumentRequiredDescription
[address]NoEthereum address to query (defaults to wallet)

Output:

  • Vault share balance (n/a and null in JSON on a network with no vault, such as testnet today)
  • 7N7D token balance
  • Staked 7N7D balance
  • Pending USDC rewards
note

Requires on-chain RPC access. Configure rpcUrl or use a default network.


deposit​

Deposit USDC into the trading vault. Automatically approves USDC spending.

On testnet this fails with tradingVault is not deployed on testnet yet and sends nothing: the V1 vault is retired and Vault V2 is not deployed yet.

7n7d deposit <amount>
7n7d deposit 1000
ArgumentRequiredDescription
<amount>YesUSDC amount in human-readable units

Requires: SEVEN_N_SEVEN_D_PRIVATE_KEY (env var or config file).

Output: Transaction hash and explorer link.


withdraw​

Vault withdrawals take two steps: request locks shares for 7 days, then complete pays USDC. All write subcommands need SEVEN_N_SEVEN_D_PRIVATE_KEY. On testnet there is no vault today, so every subcommand fails with a tradingVault is not deployed error.

withdraw request​

7n7d withdraw request <shares>
7n7d withdraw request 100
7n7d withdraw 100 # same thing (the 0.1 form still works)
ArgumentRequiredDescription
<shares>YesNumber of vault shares to withdraw

Output: Transaction hash and explorer link.

withdraw status​

Show an address's request, its payout at the current share price, when it unlocks, and whether the vault holds enough idle USDC to pay it. Read-only.

7n7d withdraw status 0x1234...abcd
7n7d withdraw status 0x1234...abcd --json

withdraw complete​

Complete your withdrawal once the 7-day lock has passed. It fails before the lock ends, or while the vault holds less idle USDC than the payout; check with withdraw status first.

7n7d withdraw complete

withdraw cancel​

Cancel your pending request; the locked shares come back.

7n7d withdraw cancel

stake​

Stake 7N7D tokens to earn USDC trading profit rewards. Automatically approves token spending.

7n7d stake <amount>
7n7d stake 5000
ArgumentRequiredDescription
<amount>Yes7N7D token amount to stake

Requires: SEVEN_N_SEVEN_D_PRIVATE_KEY

Output: Transaction hash and explorer link.


unstake​

Unstake 7N7D tokens.

7n7d unstake <amount>
7n7d unstake 5000
ArgumentRequiredDescription
<amount>Yes7N7D token amount to unstake

Requires: SEVEN_N_SEVEN_D_PRIVATE_KEY

Output: Transaction hash and explorer link.


rewards​

Show pending USDC staking rewards for an address.

7n7d rewards [address]
7n7d rewards 0x1234...abcd --json
ArgumentRequiredDescription
[address]NoEthereum address to query (defaults to wallet)

Output: Pending USDC reward amount.


governance​

On-chain token-listing votes on StakedGovernance. Your voting power is your staked 7N7D. Until StakedGovernance is deployed on the selected network, these commands exit with a "stakedGovernance is not deployed" error.

governance pairs​

List the long-term and short-term tokens the agent may trade. Read-only.

7n7d governance pairs
7n7d governance pairs --json

governance propose​

Propose listing a token on one of the lists, or delisting a listed one. Needs the contract's proposal threshold in staked 7N7D.

7n7d governance propose SOL --category short
7n7d governance propose xyz:TSLA --category long
7n7d governance propose WLFI --delist
Argument / optionDescription
<symbol>TICKER, or HIP-3 dex:TICKER
--category <long|short>Which list (required unless --delist)
--delistPropose removing the token

Output: The new proposal id, transaction hash and explorer link.

governance vote​

7n7d governance vote <proposal-id> <for|against|abstain>
7n7d governance vote 7 for

Voting again changes your vote.

governance finalize​

After voting ends, count the votes and apply the result. Anyone can run it.

7n7d governance finalize 7

Output: Whether the proposal passed, its final state, and the transaction.


chat​

Send a message to the 7N7D AI trading agent.

7n7d chat "<message>"
7n7d chat "What is the current market outlook?" --json
ArgumentRequiredDescription
<message>YesMessage to the agent

Output: Agent response text and detected intent.


delegate-deposit​

Build an ERC-7710 delegation for trustless vault deposits. This creates an unsigned delegation structure that allows a specified agent address to deposit USDC into the vault on your behalf.

7n7d delegate-deposit <amount> <agent-address>
7n7d delegate-deposit 1000 0xAgent... --expiry 2027-01-01T00:00:00Z
7n7d delegate-deposit 500 0xAgent... --json
ArgumentRequiredDescription
<amount>YesMaximum USDC the agent may deposit
<agent-address>YesEthereum address of the 7N7D agent (delegate)
OptionDescription
--expiry <date>ISO 8601 expiry date (default: no expiry)
--network <net>testnet or mainnet (default: testnet)
--jsonOutput as JSON

Output: Delegation summary with agent address, max amount, vault, and expiry.

The command refuses (exit code 1, no delegation built) when the network has no vault, which is the case on testnet today, and when the configured vault or USDC is the retired V1 vault or MockUSDC.

note

Phase 1 builds an unsigned delegation structure. Phase 2 will add EIP-712 wallet signing via a --sign flag.


Configuration Reference​

See CLI Overview for environment variables and config file setup.

See Also​