Overview
The Agentic Wallet CLI is a full-featured command-line tool for managing wallets, agents, transactions, policies, and all platform operations. Built with TypeScript and the typed SDK client.Installation
Quick Start
Command Groups
The CLI is organized into logical command groups, each with dedicated subcommands.Wallet Operations
Manage wallet creation, balances, and token holdings.Agent Operations
Create and manage autonomous or supervised AI agents.Transaction Operations
Create, monitor, and manage transaction lifecycle.Policy Operations
Manage wallet policies, rules, and governance.Protocol Operations
Interact with DeFi protocols and adapters.Risk & Strategy Operations
Treasury Operations
Treasury Management
MCP Operations
MCP Tools
Audit & Observability
Audit Events
Interactive Mode
The CLI includes a full interactive wizard mode with guided prompts.Launch Interactive Mode
Interactive Features
Interactive Features
- Doctor / Health checks: Verify all services are running
- Wallet wizard: Create wallets and check balances
- Agent wizard: Create, manage, and execute agent intents
- Transaction wizard: Full transaction lifecycle management
- Policy wizard: Create and evaluate policies
- Risk wizard: Manage protocol and portfolio risk controls
- Strategy wizard: Run backtests and paper trades
- Treasury wizard: Allocate and rebalance budgets
- MCP wizard: Call MCP tools interactively
- Metrics: View observability metrics
↑/↓: Navigate menu optionsEnter: Select optionCtrl+CorEsc: Exit- Choose “Back” option to return to main menu
Themes
The CLI supports multiple visual themes for terminal output.Available Themes
Midnight
Cyan and blue gradient with rounded borders
Matrix
Classic green on black with bold borders (default)
Solarized
Warm teal and amber tones with double borders
Fire
Orange and red gradient with heavy borders
Global Options
CLI Options
Output Formats
By default, the CLI presents data in formatted tables with color-coded status chips.- Default (Formatted)
- Raw JSON
- Color-coded status indicators
- Truncated IDs for readability
- Latency highlighting (green < 350ms, yellow < 1000ms, red ≥ 1000ms)
Configuration
CLI configuration can be set via environment variables or command-line flags.Environment Variables
Doctor Command
Thedoctor command performs comprehensive health checks across all services.
Run Health Checks
- API Gateway connectivity and latency
- Wallet Engine health
- Policy Engine health
- Agent Runtime health
- Protocol Adapters health
- Transaction Engine health
- Audit/Observability health
- MCP Server health
- Service name
- Status (ok/error/unreachable)
- HTTP response code
- Latency in milliseconds
- Error messages (if any)
Intent Types
Supported transaction intent types for CLI commands:View All Intent Types
View All Intent Types
transfer_sol- Transfer SOL between accountstransfer_spl- Transfer SPL tokensswap- Token swap via DEXstake- Stake SOL to validatorsunstake- Unstake from validatorslend_supply- Supply liquidity to lending protocollend_borrow- Borrow from lending protocolcreate_mint- Create new SPL token mintmint_token- Mint SPL tokensquery_balance- Query wallet balance (read-only)query_positions- Query protocol positions (read-only)create_escrow- Create escrow contractaccept_escrow- Accept escrow termsrelease_escrow- Release escrow fundsrefund_escrow- Refund escrow to creatordispute_escrow- Dispute escrow termsresolve_dispute- Resolve escrow disputecreate_milestone_escrow- Create milestone-based escrowrelease_milestone- Release milestone paymentx402_pay- Execute HTTP 402 paymentflash_loan_bundle- Flash loan transaction bundlecpi_call- Cross-program invocationcustom_instruction_bundle- Custom instruction bundletreasury_allocate- Allocate treasury fundstreasury_rebalance- Rebalance treasurypaper_trade- Execute paper trade (no real funds)
Supported Protocols
Protocol adapters available in the platform:system-program- Solana system program (native SOL transfers)spl-token- SPL token programjupiter- Jupiter aggregator (swaps)marinade- Marinade Finance (liquid staking)solend- Solend (lending/borrowing)metaplex- Metaplex (NFTs)orca- Orca (AMM swaps)raydium- Raydium (AMM swaps)escrow- Custom Anchor escrow program
Examples
Complete Workflow Example
Complete Workflow Example
Complete Agent Workflow
Troubleshooting
Services unreachable
Services unreachable
Ensure all services are running:Verify gateway is accessible:
Authentication errors
Authentication errors
Check your API key is correct:Verify
.env has correct API_KEY or pass via flag:Interactive mode exits immediately
Interactive mode exits immediately
This can happen if stdin is not a TTY. Run from a terminal (not piped).
Next Steps
SDK Integration
Integrate using the TypeScript SDK
MCP Tools
Use MCP server for AI agent integration
SKILLS Contract
Review the agent integration contract
API Reference
Explore the REST API directly