Loading...
Loading...
Kamino Liquidity KVault earn vaults on Solana. Deposit tokens to earn yield, withdraw shares, and track positions. Trigger phrases: Kamino vault, Kamino liquidity, deposit to Kamino, Kamino earn, KVault, Kamino yield vault. Chinese: Kamino流动性, Kamino保险库, 存入Kamino, Kamino赚取收益
npx skill4agent add okx/plugin-store kamino-liquidityRun once per session before first use. These checks ensure required tools are installed.
# 1. Install onchainos CLI
onchainos --version 2>/dev/null || curl -fsSL https://raw.githubusercontent.com/okx/onchainos-skills/main/install.sh | sh
# 2. Install onchainos skills (enables AI agent to use onchainos commands)
npx skills add okx/onchainos-skills --yes --global
# 3. Install plugin-store skills (enables plugin discovery and management)
npx skills add MigOKG/plugin-store --skill plugin-store --yes --globalif ! command -v kamino-liquidity >/dev/null 2>&1; then
OS=$(uname -s | tr A-Z a-z)
ARCH=$(uname -m)
EXT=""
case "${OS}_${ARCH}" in
darwin_arm64) TARGET="aarch64-apple-darwin" ;;
darwin_x86_64) TARGET="x86_64-apple-darwin" ;;
linux_x86_64) TARGET="x86_64-unknown-linux-gnu" ;;
linux_i686) TARGET="i686-unknown-linux-gnu" ;;
linux_aarch64) TARGET="aarch64-unknown-linux-gnu" ;;
linux_armv7l) TARGET="armv7-unknown-linux-gnueabihf" ;;
mingw*_x86_64|msys*_x86_64|cygwin*_x86_64) TARGET="x86_64-pc-windows-msvc"; EXT=".exe" ;;
mingw*_i686|msys*_i686|cygwin*_i686) TARGET="i686-pc-windows-msvc"; EXT=".exe" ;;
mingw*_aarch64|msys*_aarch64|cygwin*_aarch64) TARGET="aarch64-pc-windows-msvc"; EXT=".exe" ;;
esac
mkdir -p ~/.local/bin
curl -fsSL "https://github.com/MigOKG/plugin-store/releases/download/plugins/kamino-liquidity@0.1.0/kamino-liquidity-${TARGET}${EXT}" -o ~/.local/bin/kamino-liquidity${EXT}
chmod +x ~/.local/bin/kamino-liquidity${EXT}
fiREPORT_FLAG="$HOME/.plugin-store/reported/kamino-liquidity"
if [ ! -f "$REPORT_FLAG" ]; then
mkdir -p "$HOME/.plugin-store/reported"
# Device fingerprint → SHA256 → 32-char device ID
DEV_RAW="$(hostname):$(uname -s):$(uname -m):$HOME"
DEV_ID=$(echo -n "$DEV_RAW" | shasum -a 256 | head -c 32)
# HMAC signature (obfuscated key, same as CLI binary)
_K=$(echo 'OE9nNWFRUFdfSVJkektrMExOV2RNeTIzV2JibXo3ZWNTbExJUDFIWnVoZw==' | base64 -d 2>/dev/null || echo 'OE9nNWFRUFdfSVJkektrMExOV2RNeTIzV2JibXo3ZWNTbExJUDFIWnVoZw==' | openssl base64 -d)
HMAC_SIG=$(echo -n "${_K}${DEV_ID}" | shasum -a 256 | head -c 8)
DIV_ID="${DEV_ID}${HMAC_SIG}"
unset _K
# Report to Vercel stats
curl -s -X POST "https://plugin-store-dun.vercel.app/install" \
-H "Content-Type: application/json" \
-d '{"name":"kamino-liquidity","version":"0.1.0"}' >/dev/null 2>&1 || true
# Report to OKX API (with HMAC-signed device token)
curl -s -X POST "https://www.okx.com/priapi/v1/wallet/plugins/download/report" \
-H "Content-Type: application/json" \
-d '{"pluginName":"kamino-liquidity","divId":"'"$DIV_ID"'"}' >/dev/null 2>&1 || true
touch "$REPORT_FLAG"
fihttps://api.kamino.financeonchainos wallet contract-call --chain 501 --unsigned-tx <base58_tx> --force--dry-runkamino-liquidity --versionnpx skills add okx/plugin-store --skill kamino-liquidityonchainos --versiononchainos wallet balanceWrite operations require: Run the command first without--confirmto preview the transaction details. Add--confirmto broadcast.--confirm
kamino-liquidity vaults [--chain 501] [--token <filter>] [--limit <n>]--chain--token--limit{
"ok": true,
"chain": 501,
"total": 115,
"shown": 20,
"vaults": [
{
"address": "GEodMsAREMV4JdKs1yUCTKpz4EtzxKoSDeM3NZkG1RRk",
"name": "AL-SOL-aut-t",
"token_mint": "So11111111111111111111111111111111111111112",
"token_decimals": 9,
"shares_mint": "...",
"shares_issued": "122001000",
"token_available": "221741",
"performance_fee_bps": 0,
"management_fee_bps": 0,
"allocation_count": 2
}
]
}kamino-liquidity positions [--chain 501] [--wallet <address>]--chain--wallet{
"ok": true,
"wallet": "DTEqFXyFM9aMSGu9sw3PpRsZce6xqqmaUbGkFjmeieGE",
"chain": 501,
"positions": [
{
"vault": "GEodMsAREMV4JdKs1yUCTKpz4EtzxKoSDeM3NZkG1RRk",
"shares_amount": "0.001",
"token_amount": "0.001001"
}
]
}kamino-liquidity deposit --vault <address> --amount <amount> [--chain 501] [--wallet <address>] [--dry-run]--vault--amount--chain--wallet--dry-run--dry-runonchainos wallet contract-call --chain 501 --to KvauGMspG5k6rtzrqqn7WNh3oZdyKqLKwK2XWQ8FLjd --unsigned-tx <base58_tx> --force{
"ok": true,
"vault": "GEodMsAREMV4JdKs1yUCTKpz4EtzxKoSDeM3NZkG1RRk",
"wallet": "DTEqFXyFM9aMSGu9sw3PpRsZce6xqqmaUbGkFjmeieGE",
"amount": "0.001",
"data": {
"txHash": "5xHk..."
},
"explorer": "https://solscan.io/tx/5xHk..."
}kamino-liquidity withdraw --vault <address> --amount <shares> [--chain 501] [--wallet <address>] [--dry-run]--vault--amount--chain--wallet--dry-run--dry-runonchainos wallet contract-call --chain 501 --to KvauGMspG5k6rtzrqqn7WNh3oZdyKqLKwK2XWQ8FLjd --unsigned-tx <base58_tx> --force{
"ok": true,
"vault": "GEodMsAREMV4JdKs1yUCTKpz4EtzxKoSDeM3NZkG1RRk",
"wallet": "DTEqFXyFM9aMSGu9sw3PpRsZce6xqqmaUbGkFjmeieGE",
"shares_redeemed": "0.5",
"data": {
"txHash": "7yBq..."
},
"explorer": "https://solscan.io/tx/7yBq..."
}| Error | Likely Cause | Resolution |
|---|---|---|
| Binary not found | Plugin not installed | Run |
| onchainos not found | CLI not installed | Run the onchainos install script |
| Insufficient balance | Not enough funds | Check balance with |
| Transaction reverted | Contract rejected TX | Check parameters and try again |
| RPC error / timeout | Network issue | Retry the command |
--confirm