Skip to main content
By the end of this tutorial, you will have the following skill files configured for your agent.

Prerequisites

  • Node.js 22+
  • Solana wallet with SOL for transaction fees
  • RPC endpoint

Skill Folder Structure

1

Create Skill Directory

Create a new directory for the Kamino skill in your OpenClaw workspace:
2

Create File Structure

Create the following files in the directory:
3

Get a Solana RPC Endpoint

Choose an RPC provider:
  • Free: https://api.mainnet-beta.solana.com (rate limited)
  • Recommended: Helius, QuickNode, or Triton (paid, production-ready)
4

Create or Use Existing Wallet Keypair

Create a new keypair if needed:
Or use an existing keypair file.
5

Configure OpenClaw

Add your Solana credentials to ~/.openclaw/openclaw.json:
Replace /path/to/your/solana-wallet.json with the actual path to your keypair file.
6

Restart OpenClaw Gateway

After updating the configuration:
7

Verify Setup

Test your RPC connection:

For Other AI Agents

  • Claude: Copy the SKILL.md content into your conversation or attach as a file
  • Cursor: Clone into .cursor/skills/kamino directory
  • Custom Agents: Reference the markdown files directly

File Templates

Copy the following templates into your skill files.

SKILL.md

The main skill file that teaches agents how to interact with Kamino:

references/setup.md

Setup guide for using Kamino with OpenClaw:

references/earn.md

Kamino Earn vault operations:

references/borrow.md

Kamino Borrow operations (deposit collateral, borrow, repay, withdraw):

references/multiply.md

Kamino Multiply leveraged position operations:

references/liquidity.md

Kamino Liquidity strategy operations:

references/rewards.md

Kamino Rewards farm operations:

references/api.md

Kamino REST API endpoints:

Usage Examples

Once installed, your agent can execute commands like:
  • “Deposit 100 USDC into the SOL-USDC vault”
  • “Check my current lending positions on Kamino”
  • “Withdraw 50% of my vault shares”
  • “Supply 1000 USDC to the lending market”
  • “What’s the APY on the SOL-USDC vault?”
  • “Deposit into the KMNO/USDC liquidity strategy”
  • “What are my pending farm rewards?”
  • “Harvest all rewards from my staked positions”
  • “Swap 1 SOL to USDC”
  • “Get the current SOL price from the oracle”
For detailed code examples, see the Kamino documentation links in the reference files.