@mynthai/nova
v0.0.4
Published
CLI for easy stablecoins
Readme
nova
nova is a Node.js CLI tool for easily interacting with stablecoins. It provides simple commands to check balance, send, receive, withdraw, and share funds via claim links.
✨ Features
- 🪙 Receive stablecoins
- 💰 Check balance
- 📤 Send stablecoins to anyone for free
- 🔗 Generate shareable claim links
- 📥 Withdraw stablecoins to external blockchains
- 🔐 Multiple authentication methods
🤖 AI Agent Integration
Nova can be used directly by AI agents via Vercel Skills.
Install with Vercel Skills CLI
npx skills add MynthAI/novaOnce installed, the skill is automatically available to your AI agent. The agent will invoke Nova commands when relevant tasks are detected.
Example Agent Prompts
Sign-in to my wallet with [email protected]Create a $10 claim link
🚀 Quick Start
Get up and running in under a minute:
Option 1: Install from npm
npm install @mynthai/novaOr run directly without installing:
npx @mynthai/nova --helpOption 2: Build from source
git clone https://github.com/MynthAI/nova.git
cd nova
pnpm install
pnpm build
pnpm linkAuthenticate and start using Nova:
nova login request [email protected]
nova login confirm 123456
nova balance
nova send 10 [email protected]Use -h or --help with any command to see detailed usage information.
📦 Installation
Requirements
- Node.js v24 (required)
pnpmpackage manager (for building from source)
Install from npm
npm install @mynthai/novaYou can also run Nova directly with npx without installing it
globally:
npx @mynthai/nova --helpInstall from source
Clone the repository and install dependencies:
cd nova
pnpm install
pnpm build
pnpm linkAfter linking, the nova command will be available globally.
🔐 Authentication
Nova supports two authentication methods. You can choose the one that best fits your workflow and security preferences.
1️⃣ Email-based Authentication (Recommended)
Authenticate using your email address. Nova creates and manages a wallet for your account.
How it works
- You start login by requesting an authentication code to your email
- You confirm the code to complete login
- Nova securely manages your wallet
- You generate an authentication token for CLI access
Commands
nova login request <email>
nova login confirm <code>
nova tokenBest for
- New users
- Fast setup
- Users who don’t want to manage private keys
Pros
- Simple and beginner-friendly
- No manual key management
- Account recovery via email
Cons
- Requires trust in Nova for key management
- Email access is required
2️⃣ Private Key Authentication (Self-custody)
Authenticate by importing an existing wallet using a private key or mnemonic seed phrase. All signing happens locally.
Commands
nova import key
nova import phraseBest for
- Advanced users
- Full self-custody
- Using an existing wallet
Pros
- Full control over your funds
- No email required
- Keys never leave your machine
Cons
- You are responsible for key security
- No recovery if keys are lost
⚠️ Warning: If you lose your private key or seed phrase, your funds cannot be recovered.
🔄 Switching Authentication Methods
- Email-based accounts can export their wallet and move to self-custody
- Private-key accounts cannot be converted to email-based authentication
🚀 Usage
After building, the nova command will be available. The nova CLI
provides commands to manage your account, wallet, and transactions.
General Syntax
nova [options] [command]Use -h or --help with any command to see detailed help.
Commands
login
Login using your email address (non-interactive 2-step flow).
nova login request <email>
nova login confirm <code>Commands
request <email>— Send an authentication code to the email addressconfirm <code>— Confirm the authentication code and complete login
token
Create an authentication token (email-based accounts only).
nova tokenaddress
Display your account address.
nova addressbalance
Show your current account balance.
nova balancesend
Send funds to another Nova account or generate a claim link.
nova send <amount> [destination]Arguments
amount— Amount to senddestination(optional) — Recipient email or Nova account address
Options
-d, --dry-run— Preview the transaction without submitting it
Behavior
- If
destinationis provided, funds are sent directly to that account - If
destinationis omitted, Nova generates a claim link
nova send 25Example output:
Sent 25 to https://www.mynth.ai/c/MUhW0KzcB1BVxNRicamrRwAnyone with the link can claim the funds. Once claimed, the link becomes invalid.
Claim links
- Claim links represent a one-time transferable balance
- The first person to claim the link receives the funds
- Links can be shared via chat, email, or any messaging platform
- Unclaimed funds remain locked until claimed
⚠️ Warning: Anyone with access to the claim link can claim the funds. Share links carefully.
withdraw
Withdraw funds to an external blockchain as a stablecoin.
nova withdraw <amount> <stablecoin> <address> <blockchain>Arguments
amount— Amount to withdrawstablecoin— Stablecoin to withdraw asaddress— Destination blockchain addressblockchain— Target blockchain (required if it cannot be inferred from the address)
Options
-d, --dry-run— Preview the transaction without submitting it
config
Manage Nova configuration values.
nova config get <key>
nova config set <key> <value>import
Import an existing wallet.
nova import key
nova import phrasekey— Import wallet using a private keyphrase— Import wallet using a mnemonic seed phrase
export
Export sensitive wallet data.
nova export key
nova export phrasekey— Export the wallet’s private keyphrase— Export the wallet’s mnemonic seed phrase
⚠️ Warning: Exported data is highly sensitive. Store it securely.
🛠 Development
Lint the project:
pnpm lintFormat code:
pnpm prettierBuild the project:
pnpm build📄 License
This project is licensed under the terms of the MIT License. See the
LICENSE file for details.
