Skip to main content

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
  • 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
Navigation:
  • ↑/↓: Navigate menu options
  • Enter: Select option
  • Ctrl+C or Esc: 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.
Displays a formatted table with:
  • 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

The doctor command performs comprehensive health checks across all services.
Run Health Checks
Checks performed:
  • 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
Output includes:
  • 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:
  • transfer_sol - Transfer SOL between accounts
  • transfer_spl - Transfer SPL tokens
  • swap - Token swap via DEX
  • stake - Stake SOL to validators
  • unstake - Unstake from validators
  • lend_supply - Supply liquidity to lending protocol
  • lend_borrow - Borrow from lending protocol
  • create_mint - Create new SPL token mint
  • mint_token - Mint SPL tokens
  • query_balance - Query wallet balance (read-only)
  • query_positions - Query protocol positions (read-only)
  • create_escrow - Create escrow contract
  • accept_escrow - Accept escrow terms
  • release_escrow - Release escrow funds
  • refund_escrow - Refund escrow to creator
  • dispute_escrow - Dispute escrow terms
  • resolve_dispute - Resolve escrow dispute
  • create_milestone_escrow - Create milestone-based escrow
  • release_milestone - Release milestone payment
  • x402_pay - Execute HTTP 402 payment
  • flash_loan_bundle - Flash loan transaction bundle
  • cpi_call - Cross-program invocation
  • custom_instruction_bundle - Custom instruction bundle
  • treasury_allocate - Allocate treasury funds
  • treasury_rebalance - Rebalance treasury
  • paper_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 program
  • jupiter - 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 Agent Workflow

Troubleshooting

Ensure all services are running:
Verify gateway is accessible:
Check your API key is correct:
Verify .env has correct API_KEY or pass via flag:
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