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>— onlyCRYPTO,EQUITY,COMMODITYorPREDICTIONpositions
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 areACTIVEfor 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
| Argument | Required | Description |
|---|---|---|
[address] | No | Ethereum address to query (defaults to wallet) |
Output:
- Vault share balance (
n/aandnullin JSON on a network with no vault, such as testnet today) - 7N7D token balance
- Staked 7N7D balance
- Pending USDC rewards
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
| Argument | Required | Description |
|---|---|---|
<amount> | Yes | USDC 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)
| Argument | Required | Description |
|---|---|---|
<shares> | Yes | Number 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
| Argument | Required | Description |
|---|---|---|
<amount> | Yes | 7N7D 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
| Argument | Required | Description |
|---|---|---|
<amount> | Yes | 7N7D 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
| Argument | Required | Description |
|---|---|---|
[address] | No | Ethereum 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 / option | Description |
|---|---|
<symbol> | TICKER, or HIP-3 dex:TICKER |
--category <long|short> | Which list (required unless --delist) |
--delist | Propose 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
| Argument | Required | Description |
|---|---|---|
<message> | Yes | Message 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
| Argument | Required | Description |
|---|---|---|
<amount> | Yes | Maximum USDC the agent may deposit |
<agent-address> | Yes | Ethereum address of the 7N7D agent (delegate) |
| Option | Description |
|---|---|
--expiry <date> | ISO 8601 expiry date (default: no expiry) |
--network <net> | testnet or mainnet (default: testnet) |
--json | Output 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.
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
- SDK API Reference — Use the SDK programmatically
- Getting Started — SDK installation