The Kamino Manager CLI is a command-line tool for creating and managing Kamino lending markets, reserves, and vaults.
Prerequisites
Before installing the Kamino Manager CLI:
Node.js, Yarn package manager, and Solana CLI tools are required to run the Kamino Manager CLI.
Installation
Follow these steps to install and configure the Kamino Manager CLI:
Install Node.js and Yarn
Install Node.js from nodejs.org, then install Yarn package manager. Install Solana CLI
Install the Solana CLI tools to create and manage keypairs.sh -c "$(curl -sSfL https://release.solana.com/v1.18.18/install)"
After installation, restart the terminal to ensure the Solana CLI is available in PATH.
Clone and Setup Kamino Manager
Clone the Kamino SDK repository and install dependencies.git clone git@github.com:Kamino-Finance/klend-sdk.git
cd klend-sdk
yarn
This will install all necessary dependencies for the Kamino Manager CLI.
Configuration
After installation, configure the Kamino Manager CLI with a wallet and RPC endpoint.
Create Admin Keypair
Create a new keypair that will serve as the admin account for managing markets and vaults.solana-keygen new -o admin.json
Store the keypair file securely and never share it. This keypair will need SOL for transaction fees.
Existing keypairs can be used instead of creating a new one. Specify the path to the existing keypair file in the configuration.
Configure Environment Variables
Create a .env file in the klend-sdk directory and configure the following variables:# Path to admin keypair file
ADMIN=./admin.json
# Solana RPC endpoint
RPC=https://api.mainnet-beta.solana.com
# Program IDs
KLEND_PROGRAM_ID_MAINNET="KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD"
KVAULT_PROGRAM_ID_MAINNET="KvauGMspG5k6rtzrqqn7WNn3oZdyKqLKwK2XWQ8FLjd"
KLEND_PROGRAM_ID_STAGING="SLendK7ySfcEzyaFqy93gDnD3RtrpXJcnRwb6zFHJSh"
KVAULT_PROGRAM_ID_STAGING="stKvQfwRsQiKnLtMNVLHKS3exFJmZFsgfzBPWHECUYK"
KVAULT_PROGRAM_ID_DEVNET="devkRngFnfp4gBc5a3LsadgbQKdPo8MSZ4prFiNSVmY"
For production use, it’s recommended to use a private RPC endpoint from providers like Helius. Public RPCs are rate-limited and may cause transaction failures. Fund Your Admin Account
Transfer SOL to the admin account to pay for transaction fees. Get the admin account address:solana-keygen pubkey admin.json
Transfer SOL to this address from another wallet or acquire it from an exchange.
Verify Installation
Run a simple command to verify everything is set up correctly:
yarn run kamino-manager --help
The help output should display available commands for managing markets and vaults.
Next Steps
The Kamino Manager CLI is now installed and ready for managing markets and vaults: