solana-agent-kit
What it does
This skill guides building AI agents with the Solana Agent Kit, which lets an AI model perform blockchain actions. It is for developers who want an AI assistant that can work with Solana.
When to use it
- ✓When you want an AI agent that can deploy tokens, trade, or stake on Solana.
- ✓When you are connecting Solana actions to LangChain, the Vercel AI SDK, or an MCP server.
- ✓When you want an autonomous Solana agent with error recovery.
Skill link
https://github.com/internet-court/internet-court-skill/blob/main/vendored/sendaifun/solana-agent-kit/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you set up an AI agent with the Solana Agent Kit that can check my balance and swap tokens?”
5 new skills a week. 1 minute to read.
How it works
The agent installs the core kit and the plugins you need, sets the RPC URL and wallet key from environment variables, and connects the actions to your AI model. It can run interactively or fully autonomously.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Solana Agent Kit Development Guide
Build AI agents that autonomously execute 60+ Solana blockchain operations using SendAI's open-source toolkit. Compatible with LangChain, Vercel AI SDK, and Claude via MCP.
Overview
The Solana Agent Kit enables any AI model to:
- Deploy and manage tokens (SPL & Token-2022)
- Create and trade NFTs via Metaplex
- Execute DeFi operations (Jupiter, Raydium, Orca, Meteora)
- Stake SOL, bridge tokens, register domains
- Run in interactive or fully autonomous modes
Key Features
| Feature | Description |
|---|---|
| 60+ Actions | Token, NFT, DeFi, staking, bridging operations |
| Plugin Architecture | Modular - use only what you need |
| Multi-Framework | LangChain, Vercel AI SDK, MCP, Eliza |
| Model Agnostic | Works with OpenAI, Claude, Llama, Gemini |
| Autonomous Mode | Hands-off execution with error recovery |
Quick Start
Installation
# Core package
npm install solana-agent-kit
# With plugins (recommended)
npm install 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
Environment Setup
# .env file
OPENAI_API_KEY=your_openai_api_key
RPC_URL=https://api.mainnet-beta.solana.com # or devnet
SOLANA_PRIVATE_KEY=your_base58_private_key
# Optional API keys for enhanced features
COINGECKO_API_KEY=your_coingecko_key
HELIUS_API_KEY=your_helius_key
Basic Agent Setup
import {
SolanaAgentKit,
createVercelAITools,
KeypairWallet,
} from "solana-agent-kit";
import { Keypair } from "@solana/web3.js";
import bs58 from "bs58";
// Import plugins
import TokenPlugin from "@solana-agent-kit/plugin-token";
import NFTPlugin from "@solana-agent-kit/plugin-nft";
import DefiPlugin from "@solana-agent-kit/plugin-defi";
import MiscPlugin from "@solana-agent-kit/plugin-misc";
import BlinksPlugin from "@solana-agent-kit/plugin-blinks";
// Create wallet from private key
const privateKey = bs58.decode(process.env.SOLANA_PRIVATE_KEY!);
const keypair = Keypair.fromSecretKey(privateKey);
const wallet = new KeypairWallet(keypair);
// Initialize agent with plugins
const agent = new SolanaAgentKit(
wallet,
process.env.RPC_URL!,
{
OPENAI_API_KEY: process.env.OPENAI_API_KEY!,
}
)
.use(TokenPlugin)
.use(NFTPlugin)
.use(DefiPlugin)
.use(MiscPlugin)
.use(BlinksPlugin);
// Create tools for AI framework
const tools = createVercelAITools(agent, agent.actions);
Plugins & Actions
Token Plugin (@solana-agent-kit/plugin-token)
| Action | Description |
|---|---|
deployToken |
Deploy new SPL token or Token-2022 |
transfer |
Transfer SOL or SPL tokens |
getBalance |
Check token balances |
stake |
Stake SOL via Jupiter/Solayer |
bridge |
Bridge tokens via Wormhole |
rugCheck |
Analyze token safety |
// Deploy a new token
const result = await agent.methods.deployToken({
name: "My Token",
symbol: "MTK",
decimals: 9,
initialSupply: 1000000,
});
// Transfer tokens
await agent.methods.transfer({
to: "recipient_address",
amount: 100,
mint: "token_mint_address", // optional, defaults to SOL
});
// Check balance
const balance = await agent.methods.getBalance({
tokenAddress: "token_mint_address", // optional
});
NFT Plugin (@solana-agent-kit/plugin-nft)
| Action | Description |
|---|---|
createCollection |
Create NFT collection via Metaplex |
mintNFT |
Mint NFT to collection |
listNFT |
List NFT on marketplaces |
updateMetadata |
Update NFT metadata |
// Create collection
const collection = await agent.methods.createCollection({
name: "My Collection",
symbol: "MYCOL",
uri: "https://arweave.net/metadata.json",
});
// Mint NFT to collection
const nft = await agent.methods.mintNFT({
collectionMint: collection.collectionAddress,
name: "NFT #1",
uri: "https://arweave.net/nft1.json",
});
DeFi Plugin (@solana-agent-kit/plugin-defi)
| Action | Description |
|---|---|
trade |
Swap tokens via Jupiter |
createRaydiumPool |
Create Raydium AMM pool |
createOrcaPool |
Create Orca Whirlpool |
createMeteoraPool |
Create Meteora DLMM pool |
limitOrder |
Place limit order via Manifest |
lend |
Lend assets via Lulo |
perpetualTrade |
Trade perps via Adrena/Drift |
FAQ
Which AI models does it work with?
The skill says it works with OpenAI, Claude, Llama, and Gemini.
Can I use only some actions?
Yes. The kit is plugin based, so you can install only the plugins you need.
Where does the private key go?
The skill says to store it in an environment variable, not in the code.
Details
Original description by the author
Comprehensive guide for building AI agents that interact with Solana blockchain using SendAI's Solana Agent Kit. Covers 60+ actions, LangChain/Vercel AI integration, MCP server setup, and autonomous agent patterns.
Popularity
- GitHub stars
- 7.0k
- Ranking position
- #13681
- License
- —
- Updated
- 10/26/2026
Comments
- …
More skills from this repository
internet-court
7.0kHelps your agent pay, hire, or deal safely with another AI agent or paid service, and points it to the right specialized guide.
genlayer-erc7710-connector
7.0kHelps your agent connect an AI review result to a permission system, so a bad review can limit or cancel an agent's permissions.
genlayer-intelligent-contracts
7.0kHelps your agent define the rules, evidence and outputs of an AI judge that checks whether another agent followed its mandate.
x402-erc7710
7.0kHelps your agent pay for web services one request at a time, and set up ongoing spending that stays within a permission budget.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.