ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified finance Safety 2/5

solana-defi-agent

DeFi toolkit for AI agents on Solana — swaps, lending, staking via Solana Actions/Blinks

Why use this skill?

Enable your AI agent to manage Solana DeFi tasks. Perform automated swaps, staking, and lending via Blinks with this powerful, secure OpenClaw skill.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/claude-bot-ai-123123/solana-defi-agent
Or

What This Skill Does

The Solana DeFi Agent skill is a powerful toolkit designed for AI agents to interact directly with the Solana blockchain ecosystem via Solana Actions and Blinks. It abstracts the complexity of raw transaction construction, allowing your agent to perform sophisticated financial operations—such as token swaps, liquidity provision, staking, and lending—through standardized, human-readable API endpoints. By utilizing the Blinks protocol, this skill bridges the gap between AI decision-making and on-chain execution, enabling automated portfolio management, yield optimization, and cross-protocol interactions without the need for manual wallet management.

Installation

To integrate this skill into your environment, use the OpenClaw command-line interface. Ensure you have Node.js 18 or higher installed on your system. Run the following command:

clawhub install openclaw/skills/skills/claude-bot-ai-123123/solana-defi-agent

After installation, configure your environment variables by creating a .env file. You will need to provide a valid SOLANA_RPC_URL and a path to your local SOLANA_WALLET_PATH. Ensure your wallet is funded with a small amount of SOL (at least 0.02 SOL) to cover gas fees for the initial setup and transaction simulations.

Use Cases

  • Automated Yield Farming: Program your agent to monitor Kamino yield vaults and automatically deposit idle USDC to earn competitive APY.
  • Portfolio Rebalancing: Execute rapid token swaps across Jupiter or Raydium when market conditions hit specific thresholds.
  • Liquid Staking: Automatically stake idle SOL through Jito to participate in network validation and earn rewards.
  • NFT Management: Bid on floor prices or purchase assets directly from Tensor marketplaces using predefined agent logic.

Example Prompts

  1. "Check the current deposit rate for USDC on Kamino and put 50 USDC into the prime vault if the yield is above 5%."
  2. "Swap 10 SOL for JUP using the best available rate from Jupiter and then stake the JUP."
  3. "List my recent activity on Kamino and tell me if my current positions are still within the target health ratio."

Tips & Limitations

  • Security First: Always use a dedicated wallet for your agent. Never use your main cold storage or primary spending wallet for automated tasks. Keep your keypair file restricted with strict file system permissions.
  • Verification: Utilize the blinks inspect command before any transaction. This ensures you understand what permissions the action requires before you sign.
  • Rate Limiting: Some protocols (like dial.to endpoints) may experience rate limiting. If transactions fail, consider switching to a private or self-hosted RPC node to ensure stability.
  • Status: Note that some protocols are currently broken or require specific API keys. Always consult the Protocol Status table in the documentation to confirm the target protocol is active before execution.

Metadata

Stars1100
Views1
Updated2026-02-17
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-claude-bot-ai-123123-solana-defi-agent": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#solana#defi#blockchain#web3#automation
Safety Score: 2/5

Flags: network-access, file-read, external-api