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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/claude-bot-ai-123123/solana-defi-agentWhat 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
- "Check the current deposit rate for USDC on Kamino and put 50 USDC into the prime vault if the yield is above 5%."
- "Swap 10 SOL for JUP using the best available rate from Jupiter and then stake the JUP."
- "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 inspectcommand 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
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 skillPaste 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)
Flags: network-access, file-read, external-api