0.0.3 • Published 5 months ago

ledgerai v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

LedgerAI

CLI tool for managing AI agent wallets and cards

A powerful CLI tool for managing wallets and virtual cards for AI agents. Built with Circle's developer-controlled wallets.

Features

  • Wallet Management

    • Create and manage developer-controlled wallets
    • View wallet balances and transactions
    • Support for multiple blockchains
  • Configuration Management

    • Easy setup with CLI configuration commands
    • Secure storage of API keys and secrets
    • Environment management (sandbox/production)

Installation

npm install -g ledgerai

Quick Start

  1. Install the CLI tool:
npm install -g ledgerai
  1. Configure your API credentials:
ledgerai config set-key YOUR_API_KEY
ledgerai config set-secret YOUR_ENTITY_SECRET
ledgerai config set-wallet-set YOUR_WALLET_SET_ID
  1. Create a new wallet:
ledgerai wallet create --name "My AI Wallet" --type funding --blockchain ETH

Commands

Configuration

  • ledgerai config set-key <apiKey> - Set your Circle API key
  • ledgerai config set-secret <secret> - Set your Circle entity secret
  • ledgerai config set-wallet-set <walletSetId> - Set your wallet set ID
  • ledgerai config set-env <environment> - Set environment (sandbox/production)
  • ledgerai config view - View current configuration
  • ledgerai config clear - Clear all configuration

Wallet Management

  • ledgerai wallet create - Create a new wallet
  • ledgerai wallet list - List all wallets
  • ledgerai wallet balance <walletId> - Get wallet balance
  • ledgerai wallet transactions <walletId> - View wallet transactions

Environment Variables

The following environment variables can be used:

CIRCLE_API_KEY=your_api_key
CIRCLE_ENTITY_SECRET=your_entity_secret
CIRCLE_WALLET_SET_ID=your_wallet_set_id
CIRCLE_TOKEN_ID=your_token_id

Development

  1. Clone the repository:
git clone https://github.com/solarium/ledgerai.git
  1. Install dependencies:
cd ledgerai
npm install
  1. Build the project:
npm run build
  1. Run in development mode:
npm run dev

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT © Solarium