Skip to main content
Use the Kamino Manager CLI to create vaults, manage reserve allocations, and configure vault parameters.
Before starting, complete the Installation & Setup guide. Commands require a .env file with ADMIN (path to vault owner keypair) and RPC configured.

Understanding CLI Modes

All Kamino Manager commands support different execution modes to test and verify operations before committing them:
  • inspect - Preview the transaction without executing it
  • simulate - Test the transaction simulation on-chain
  • execute - Execute the transaction immediately
  • multisig - Generate a multisig proposal for the operation
It’s recommended to always start with inspect or simulate mode to verify transactions before running with execute.

Create a New Vault

Create a new Kamino vault to manage automated liquidity strategies.
1

Create Vault

Run the create vault command with the desired liquidity token mint.
yarn kamino-manager create-vault --mint <TOKEN_MINT> --mode execute
For testing purposes, add the --staging flag to use the staging program ID.
2

Save Vault Address

After creation, save the vault address from the command output. This address is required for all subsequent vault operations.

Manage Reserve Allocations

Configure how vault assets are distributed across different lending reserves.

Add or Update Reserve Allocation

Add a new reserve to the vault or update an existing reserve’s allocation parameters.
yarn kamino-manager update-vault-reserve-allocation \
  --vault <VAULT_ADDRESS> \
  --reserve <RESERVE_ADDRESS> \
  --allocation-weight <WEIGHT> \
  --allocation-cap <CAP> \
  --mode simulate
Parameters:
  • allocation-weight - The allocation weight for this reserve; only relevant in relation to other reserve weights (proportional). If Reserve A has weight 100,000 and Reserve B has weight 50,000, Reserve A gets 2/3 of vault assets and Reserve B gets 1/3
  • allocation-cap - The allocation cap in decimal (not lamports) for this reserve
Example: Adding PRIME market allocation
yarn kamino-manager update-vault-reserve-allocation \
  --vault 67dqmR76uAbjX6e81A1ganKv3ou31WUMEdeWJkwVfeXy \
  --reserve 9GJ9GBRwCp4pHmWrQ43L5xpc9Vykg7jnfwcFGN8FoHYu \
  --allocation-weight 100000 \
  --allocation-cap 18446744073709.551615 \
  --mode simulate
First run with --mode simulate to verify the operation works as expected, then use --mode execute to send the transaction.

Remove Reserve Allocation

Remove a reserve from the vault’s allocation strategy.
yarn kamino-manager remove-vault-allocation \
  --vault <VAULT_ADDRESS> \
  --reserve <RESERVE_ADDRESS> \
  --mode simulate
Example: Removing USDC reserve from fartcoin market
yarn kamino-manager remove-vault-allocation \
  --vault 67dqmR76uAbjX6e81A1ganKv3ou31WUMEdeWJkwVfeXy \
  --reserve F22tnLsbv66vEU2GZRc7coaqZsr8UcBbyp9V2kqWAiWK \
  --mode simulate

Vault Ownership Management

Transfer vault ownership to a different admin account. For production vaults, we recommend transferring ownership to a Squads multisig with hardware wallet support.
1

Set Pending Admin

Update the vault’s pending admin to the new owner address.
yarn kamino-manager update-vault-pending-admin \
  --vault <VAULT_ADDRESS> \
  --new-admin <NEW_ADMIN_PUBKEY> \
  --mode execute
Parameters:
  • vault - The vault address to change the pending admin for
  • new-admin - The new admin pubkey to set as pending admin (typically a multisig address)
2

Accept Ownership

The new admin must accept ownership to complete the transfer.
yarn kamino-manager accept-ownership \
  --vault <VAULT_ADDRESS> \
  --mode execute
This command must be run with the new admin’s keypair in the ADMIN field of the .env file.

Fee Management

Configure and manage vault performance and management fees.

Performance Fees

Set the performance fee taken on generated yield.
yarn kamino-manager update-vault-perf-fee \
  --vault <VAULT_ADDRESS> \
  --fee-bps <FEE_BPS> \
  --mode execute
The fee is specified in basis points (1 bps = 0.01%).

Management Fees

Set the yearly management fee for vault operations.
yarn kamino-manager update-vault-mgmt-fee \
  --vault <VAULT_ADDRESS> \
  --fee-bps <FEE_BPS> \
  --mode execute

Withdraw Pending Fees

Withdraw accumulated fees from the vault.
yarn kamino-manager withdraw-pending-fees \
  --vault <VAULT_ADDRESS> \
  --mode execute

Relinquish Fees

The vault manager can give up pending fees (partial or full), which will be distributed to vault token holders. This is useful when pending fees grow larger than the total vault value, allowing the manager to restore the vault to a healthy state.
yarn kamino-manager give-up-pending-fees \
  --vault <VAULT_ADDRESS> \
  --max-amount-to-give-up <TOKEN_AMOUNT> \
  --mode execute
Parameters:
  • vault - The vault address to give up fees for
  • max-amount-to-give-up - The amount in tokens to be given up from the pending fees

Advanced Operations

Multisig Management

For multisig-controlled vaults, use the --mode multisig flag to generate Base58-encoded transactions for proposal submission.
yarn kamino-manager update-vault-reserve-allocation \
  --vault <VAULT_ADDRESS> \
  --reserve <RESERVE_ADDRESS> \
  --allocation-weight <WEIGHT> \
  --allocation-cap <CAP> \
  --mode multisig \
  --multisig <MULTISIG_PUBKEY>
We recommend using Squads with a hardware wallet for multisig management. The generated transaction can be submitted as a multisig proposal through Squads.

Next Steps