solana-agent-kit

Build AI agents that execute Solana blockchain operations via LangChain, Vercel AI SDK, or MCP.

1|1|Updated May 21, 2026
One-click install
npx skills add https://github.com/naruto11eth/cryptoskills --skill solana-agent-kit-naruto11eth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solana-agent-kit
Source: https://github.com/naruto11eth/cryptoskills/tree/main/skills/solana-agent-kit
Command: npx skills add https://github.com/naruto11eth/cryptoskills --skill solana-agent-kit-naruto11eth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires solana-agent-kit, @solana-agent-kit/plugin-token, @solana-agent-kit/plugin-nft, @solana-agent-kit/plugin-defi, @solana-agent-kit/plugin-misc, @solana-agent-kit/plugin-blinks, @solana/web3.js, @langchain/openai, @langchain/langgraph, ai, @ai-sdk/openai, bs58, and includes references (resource) components.

What problem does it solve? Building AI agents that interact with the Solana blockchain requires wiring together wallets, RPC connections, DeFi protocol integrations, and LLM tool definitions from scratch, which is error-prone and time-consuming. ## Core Features & Use Cases - 60+ Blockchain Actions: Deploy SPL tokens, mint NFTs via Metaplex, swap via Jupiter, create Raydium/Orca/Meteora pools, stake SOL, bridge tokens, and register .sol domains through a unified agent interface. - Multi-Framework Integration: Works with LangChain, Vercel AI SDK, and Claude Desktop via an MCP server, with a plugin architecture that loads only the tools you need to reduce LLM hallucinations. - Autonomous Agent Patterns: Includes templates for event-driven agents, DCA and take-profit trading strategies, and safety guardrails like transaction limits and daily spending caps. - Use Case: A developer wants Claude Desktop to check wallet balances and swap tokens on Solana. This Skill provides the MCP server configuration, environment setup, and security practices to make that work in minutes. ## Quick Start Ask the agent to initialize a Solana Agent Kit project with the token and DeFi plugins, then have it check your wallet balance and swap 0.1 SOL for USDC on devnet.

Frequently Asked Questions about solana-agent-kit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an AI agent that swaps tokens on Solana?

Install solana-agent-kit with the DeFi plugin, initialize it with a KeypairWallet and RPC URL, then expose its actions as tools to LangChain or Vercel AI SDK. The trade action routes swaps through Jupiter with configurable slippage in basis points.

How to connect Claude Desktop to Solana blockchain?

Install the solana-mcp package and add an mcpServers entry to claude_desktop_config.json with your RPC_URL and SOLANA_PRIVATE_KEY environment variables. After restarting Claude Desktop, tools like BALANCE, TRANSFER, TRADE, and DEPLOY_TOKEN become available.

Does Solana Agent Kit support LangChain and Vercel AI SDK?

Yes, it supports both. Use createSolanaTools for LangChain ReAct agents with LangGraph memory, or createVercelAITools for the Vercel AI SDK's generateText and streamText functions with multi-step tool calls.

Why does my Solana agent hallucinate non-existent tools?

Loading all 100+ tools at once confuses the LLM. The V2 plugin architecture fixes this by loading only needed plugins like Token or DeFi, and you can further filter tools by name and lower the model temperature for more deterministic selection.

What safety limits should an autonomous Solana trading agent have?

Set a maximum transaction value, a daily spending cap, a token whitelist, and blocked actions before running autonomously. Always test on devnet first, use a dedicated wallet with limited funds, and log every executed action for audit.