After installation, configure the Kamino Manager CLI with a wallet and RPC endpoint.
1
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.
2
Configure Environment Variables
Create a .env file in the klend-sdk directory and configure the following variables:
# Path to admin keypair fileADMIN=./admin.json# Solana RPC endpointRPC=https://api.mainnet-beta.solana.com# Program IDsKLEND_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.
3
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.