Sign In

@t2000/cli

Package Overview
Dependencies
Maintainers
1
Versions
625
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@t2000/cli

CLI bank account for AI agents on Sui — send, save, swap, borrow from your terminal

Source
npmnpm
Version
0.1.7
Version published
Weekly downloads
6K
56.92%
Maintainers
1
Weekly downloads
 
Created
Source

@t2000/cli

Terminal bank account for AI agents on Sui. One command to create a bank account, send USDC, earn yield, swap, borrow, and pay for APIs.

npm License: MIT

Website · GitHub · SDK · x402

Installation

npx @t2000/cli init
# or install globally
npm install -g @t2000/cli

Requirements: Node.js 18+

Quick Start

❯ t2000 init

  Create PIN (min 4 chars): ****
  Confirm PIN: ****

  Creating agent wallet...
  ✓ Keypair generated
  ✓ Network  Sui mainnet
  ✓ Gas sponsorship  enabled

  Setting up accounts...
  ✓ Checking  ✓ Savings  ✓ Credit  ✓ Exchange  ✓ 402 Pay

  🎉 Bank account created
  Address:  0x8b3e4f2a...

  Deposit USDC on Sui network only.
  ─────────────────────────────────────────────────────

  Install globally for persistent use:
  npm install -g @t2000/cli

  t2000 balance            check for funds
  t2000 save all           start earning yield
  t2000 address            show address again

❯ t2000 send 10 USDC to 0x8b3e...d412
  ✓ Sent $10.00 USDC → 0x8b3e...d412
  Tx:  https://suiscan.xyz/mainnet/tx/0xa1b2...

❯ t2000 save 80
  ✓ Saved $80.00 USDC to NAVI
  ✓ Protocol fee: $0.08 USDC (0.1%)
  ✓ Current APY: 4.21%
  ✓ Savings balance: $79.92 USDC
  Tx:  https://suiscan.xyz/mainnet/tx/0x9f2c...

❯ t2000 borrow 20
  ✓ Borrowed $20.00 USDC
  Health Factor:  3.39
  Tx:  https://suiscan.xyz/mainnet/tx/0xb3c4...

❯ t2000 swap 5 USDC to SUI
  ✓ Swapped 5 USDC → 5.83 SUI
  Tx:  https://suiscan.xyz/mainnet/tx/0xd5e6...

❯ t2000 pay https://data.api.com/prices
  → GET https://data.api.com/prices
  ← 402 Payment Required: $0.01 USDC (Sui)
  ✓ Paid $0.01 USDC (tx: 0x9f2c...a801)
  ← 200 OK  [342ms]

❯ t2000 repay 20
  ✓ Repaid $20.00 USDC
  Remaining Debt:  $0.00
  Tx:  https://suiscan.xyz/mainnet/tx/0xe7f8...

❯ t2000 withdraw all
  ✓ Withdrew $79.92 USDC
  Tx:  https://suiscan.xyz/mainnet/tx/0xf9a0...

❯ t2000 balance
  Available:  $85.00 USDC  (checking — spendable)
  Savings:    $0.00 USDC
  Gas:        0.31 SUI     (~$0.28)
  ──────────────────────────────────────
  Total:      $85.28 USDC

30 seconds. Send → save → borrow → swap → pay → repay → withdraw.

Commands

Wallet

CommandDescription
t2000 initCreate a new agent bank account (Ed25519 keypair, AES-256-GCM encrypted)
t2000 lockClear saved session (require PIN on next command)
t2000 balanceShow available USDC + savings + gas reserve
t2000 addressShow wallet address
t2000 depositShow funding instructions
t2000 importImport an existing bank account from private key
t2000 exportExport private key (raw Ed25519 hex)
t2000 historyTransaction history

Transfers

CommandDescription
t2000 send <amount> USDC to <address>Send USDC to any Sui address

Savings & DeFi

CommandDescription
t2000 save <amount>Deposit USDC to NAVI Protocol (earn ~4–8% APY)
t2000 withdraw <amount>Withdraw USDC from savings
t2000 borrow <amount>Borrow USDC against savings collateral
t2000 repay <amount>Repay outstanding borrows
t2000 swap <amount> <from> <to>Swap via Cetus DEX (e.g. swap 5 USDC SUI)
t2000 healthCheck savings health factor
t2000 ratesCurrent NAVI save/borrow APYs
t2000 positionsOpen savings & borrow positions
t2000 earningsYield earned to date
t2000 fund-statusFull savings summary

x402 Payments

CommandDescription
t2000 pay <url>Pay for an x402-protected API resource
t2000 pay <url> --max-price 0.10Set max USDC per request (default: $1.00)
t2000 pay <url> --method POST --data '{...}'POST with JSON body

Configuration

CommandDescription
t2000 config get <key>Show a config value
t2000 config set <key> <value>Set a config value

HTTP API Server

# Start a local HTTP API for non-TypeScript agents
t2000 serve --port 3001

# All endpoints available at /v1/*
curl -H "Authorization: Bearer t2k_..." http://localhost:3001/v1/balance
curl -X POST -H "Authorization: Bearer t2k_..." \
  -d '{"to":"0x...","amount":10}' \
  http://localhost:3001/v1/send

Flags

FlagDescription
--jsonStructured JSON output (for automation)
--yesSkip confirmation prompts
--key <path>Custom key file path
--network <net>mainnet or testnet

Configuration

Config is stored at ~/.t2000/config.json.

KeyDescriptionDefault
networkSui networkmainnet
rpcUrlCustom RPC URLSui public fullnode

Environment Variables

VariableDescription
T2000_PINBank account PIN (skip interactive prompt)
T2000_NETWORKOverride network (mainnet / testnet)
T2000_KEY_PATHCustom key file path

Gas Handling

Gas is fully automated:

  • Sponsored — early transactions are free via the t2000 Gas Station
  • Self-funded — uses SUI balance after bootstrap
  • Auto-topup — swaps $1 USDC → SUI when gas reserve is low

You never need to manually acquire SUI for gas.

File Locations

FilePathDescription
Encrypted key~/.t2000/wallet.keyAES-256-GCM encrypted Ed25519 keypair
Config~/.t2000/config.jsonNetwork, RPC, preferences

Examples

# Full DeFi cycle
t2000 save all              # Deposit all available USDC
t2000 borrow 40             # Borrow against it
t2000 repay 40              # Pay it back
t2000 withdraw all          # Get everything out

# Automation-friendly (no prompts, JSON output)
t2000 balance --json
t2000 send 10 USDC to 0x... --yes --json

# Use with AI coding agents
export T2000_PIN="agent-secret"
t2000 balance --json | jq '.available'

License

MIT — see LICENSE

Keywords

sui

FAQs

Package last updated on 26 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts