Integrates with Solana blockchain to enable token deployment, NFT creation, DeFi operations, and cross-chain transfers v...
Created byApr 22, 2025
Solana Agent Kit
SAKCover2
NPM Downloads
GitHub forks
GitHub License
An open-source toolkit for connecting AI agents to Solana protocols. Now, any agent, using any model can autonomously perform 60+ Solana actions:
Trade tokens
Launch new tokens
Lend assets
Send compressed airdrops
Execute blinks
Launch tokens on AMMs
Bridge tokens across chains
And more...
Anyone - whether an SF-based AI researcher or a crypto-native builder - can bring their AI agents trained with any model and seamlessly integrate with Solana.
You can view the full documentation of the kit at docs.sendai.fun
Installation
Quick Start
Usage Examples
Deploy a New Token
Deploy a New Token2022
Get all supported chains using Wormhole
Create a Wrapped Token using Wormhole
Note:
When using Wormhole for cross-chain operations:
Always verify the destination chain is supported before attempting transfers
Use the correct network parameter ("Testnet" or "Mainnet") based on your environment
Make sure the destination address wallet private key is presernt in the .env file as automatic transfer is not supported yet on Solana
Perform a CCTP transfer using Wormhole
Perform Token Transfer using Wormhole
Create NFT Collection on 3Land
Create NFT on 3Land
When creating an NFT using 3Land's tool, it automatically goes for sale on 3.land website
Create NFT Collection
Swap Tokens
Lend Tokens
Stake SOL
Stake SOL on Solayer
Send an SPL Token Airdrop via ZK Compression
Fetch Price Data from Pyth
Open PERP Trade
Close PERP Trade
Close Empty Token Accounts
Create a Drift account
Create a drift account with an initial token deposit.
Create a Drift Vault
Create a drift vault.
Deposit into a Drift Vault
Deposit tokens into a drift vault.
Deposit into your Drift account
Deposit tokens into your drift account.
Derive a Drift Vault address
Derive a drift vault address.
Do you have a Drift account
Check if agent has a drift account.
Get Drift account information
Get drift account information.
Request withdrawal from Drift vault
Request withdrawal from drift vault.
Carry out a perpetual trade using a Drift vault
Open a perpetual trade using a drift vault that is delegated to you.
Carry out a perpetual trade using your Drift account
Open a perpetual trade using your drift account.
Update Drift vault parameters
Update drift vault parameters.
Withdraw from Drift account
Withdraw tokens from your drift account.
Borrow from Drift
Borrow tokens from drift.
Repay Drift loan
Repay a loan from drift.
Withdraw from Drift vault
Withdraw tokens from a drift vault after the redemption period has elapsed.
Update the address a Drift vault is delegated to
Update the address a drift vault is delegated to.
Get Voltr Vault Position Values
Get the current position values and total value of assets in a Voltr vault.
Deposit into Voltr Strategy
Deposit assets into a specific strategy within a Voltr vault.
Withdraw from Voltr Strategy
Withdraw assets from a specific strategy within a Voltr vault.
Get a Solana asset by its ID
Get a price inference from Allora
Get the price for a given token and timeframe from Allora's API
List all topics from Allora
Get an inference for an specific topic from Allora
Simulate a Switchboard feed
Simulate a given Switchboard feed. Find or create feeds here.
Cross-Chain Bridge via deBridge
The Solana Agent Kit supports cross-chain token transfers using deBridge's DLN protocol. Here's how to use it:
Check supported chains:
Get available tokens (optional):
Create bridge order (SOL -> ETH):
Execute the bridge order:
Check bridge status:
Note: When bridging between chains:
To Solana: Use base58 addresses for recipients and token mints
From Solana: Use EVM addresses for recipients and ERC-20 format for tokens
Always verify addresses and amounts before executing bridge transactions
Get Token Price Data from CoinGecko
Get Trending Tokens
Get Latest Pools
Get Token Information
Get Top Gainers
Get Trending Pools
DEX API Tools
OKX DEX Integration
The toolkit provides comprehensive integration with OKX DEX for Solana. Here's how to use the DEX API tools:
Get Supported Tokens
Get DEX Quote
Execute Token Swap
Parse Instruction Data
Parse Instruction Data
Get Sanctum LST Price
Get Sanctum LST APY
Get Sanctum LST TVL
Get Sanctum Owend LST
Add Liquidity to Sanctum Infinite Pool
Remove Liquidity from Sanctum Infinite Pool
Swap Sanctum LST
Get Chain Data
Note: To use OKX DEX integration, you need to set up the following environment variables: Get OKX API keys from the [OKX Developer Portal] (https://www.okx.com/web3/build/dev-portal)
OKX_API_KEY
OKX_SECRET_KEY
OKX_API_PASSPHRASE
OKX_PROJECT_ID
RPC_URL
SOLANA_PRIVATE_KEY
SOLANA_WALLET_ADDRESS
Examples
LangGraph Multi-Agent System
The repository includes an advanced example of building a multi-agent system using LangGraph and Solana Agent Kit. Located in examples/agent-kit-langgraph, this example demonstrates:
Multi-agent architecture using LangGraph's StateGraph
Specialized agents for different tasks:
Fully typed TypeScript implementation
Environment-based configuration
Check out the LangGraph example for a complete implementation of an advanced Solana agent system.
Dependencies
The toolkit relies on several key Solana and Metaplex libraries:
@solana/web3.js
@solana/spl-token
@metaplex-foundation/digital-asset-standard-api
@metaplex-foundation/mpl-token-metadata
@metaplex-foundation/mpl-core
@metaplex-foundation/umi
@lightprotocol/compressed-token
@lightprotocol/stateless.js
@coingecko/sdk
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Refer to CONTRIBUTING.md for detailed guidelines on how to contribute to this project.
This toolkit handles private keys and transactions. Always ensure you're using it in a secure environment and never share your private keys.
Solana Agent Kit
SAKCover2
NPM Downloads
GitHub forks
GitHub License
An open-source toolkit for connecting AI agents to Solana protocols. Now, any agent, using any model can autonomously perform 60+ Solana actions:
Trade tokens
Launch new tokens
Lend assets
Send compressed airdrops
Execute blinks
Launch tokens on AMMs
Bridge tokens across chains
And more...
Anyone - whether an SF-based AI researcher or a crypto-native builder - can bring their AI agents trained with any model and seamlessly integrate with Solana.
You can view the full documentation of the kit at docs.sendai.fun
Installation
Quick Start
Usage Examples
Deploy a New Token
Deploy a New Token2022
Get all supported chains using Wormhole
Create a Wrapped Token using Wormhole
Note:
When using Wormhole for cross-chain operations:
Always verify the destination chain is supported before attempting transfers
Use the correct network parameter ("Testnet" or "Mainnet") based on your environment
Make sure the destination address wallet private key is presernt in the .env file as automatic transfer is not supported yet on Solana
Perform a CCTP transfer using Wormhole
Perform Token Transfer using Wormhole
Create NFT Collection on 3Land
Create NFT on 3Land
When creating an NFT using 3Land's tool, it automatically goes for sale on 3.land website
Create NFT Collection
Swap Tokens
Lend Tokens
Stake SOL
Stake SOL on Solayer
Send an SPL Token Airdrop via ZK Compression
Fetch Price Data from Pyth
Open PERP Trade
Close PERP Trade
Close Empty Token Accounts
Create a Drift account
Create a drift account with an initial token deposit.
Create a Drift Vault
Create a drift vault.
Deposit into a Drift Vault
Deposit tokens into a drift vault.
Deposit into your Drift account
Deposit tokens into your drift account.
Derive a Drift Vault address
Derive a drift vault address.
Do you have a Drift account
Check if agent has a drift account.
Get Drift account information
Get drift account information.
Request withdrawal from Drift vault
Request withdrawal from drift vault.
Carry out a perpetual trade using a Drift vault
Open a perpetual trade using a drift vault that is delegated to you.
Carry out a perpetual trade using your Drift account
Open a perpetual trade using your drift account.
Update Drift vault parameters
Update drift vault parameters.
Withdraw from Drift account
Withdraw tokens from your drift account.
Borrow from Drift
Borrow tokens from drift.
Repay Drift loan
Repay a loan from drift.
Withdraw from Drift vault
Withdraw tokens from a drift vault after the redemption period has elapsed.
Update the address a Drift vault is delegated to
Update the address a drift vault is delegated to.
Get Voltr Vault Position Values
Get the current position values and total value of assets in a Voltr vault.
Deposit into Voltr Strategy
Deposit assets into a specific strategy within a Voltr vault.
Withdraw from Voltr Strategy
Withdraw assets from a specific strategy within a Voltr vault.
Get a Solana asset by its ID
Get a price inference from Allora
Get the price for a given token and timeframe from Allora's API
List all topics from Allora
Get an inference for an specific topic from Allora
Simulate a Switchboard feed
Simulate a given Switchboard feed. Find or create feeds here.
Cross-Chain Bridge via deBridge
The Solana Agent Kit supports cross-chain token transfers using deBridge's DLN protocol. Here's how to use it:
Check supported chains:
Get available tokens (optional):
Create bridge order (SOL -> ETH):
Execute the bridge order:
Check bridge status:
Note: When bridging between chains:
To Solana: Use base58 addresses for recipients and token mints
From Solana: Use EVM addresses for recipients and ERC-20 format for tokens
Always verify addresses and amounts before executing bridge transactions
Get Token Price Data from CoinGecko
Get Trending Tokens
Get Latest Pools
Get Token Information
Get Top Gainers
Get Trending Pools
DEX API Tools
OKX DEX Integration
The toolkit provides comprehensive integration with OKX DEX for Solana. Here's how to use the DEX API tools:
Get Supported Tokens
Get DEX Quote
Execute Token Swap
Parse Instruction Data
Parse Instruction Data
Get Sanctum LST Price
Get Sanctum LST APY
Get Sanctum LST TVL
Get Sanctum Owend LST
Add Liquidity to Sanctum Infinite Pool
Remove Liquidity from Sanctum Infinite Pool
Swap Sanctum LST
Get Chain Data
Note: To use OKX DEX integration, you need to set up the following environment variables: Get OKX API keys from the [OKX Developer Portal] (https://www.okx.com/web3/build/dev-portal)
OKX_API_KEY
OKX_SECRET_KEY
OKX_API_PASSPHRASE
OKX_PROJECT_ID
RPC_URL
SOLANA_PRIVATE_KEY
SOLANA_WALLET_ADDRESS
Examples
LangGraph Multi-Agent System
The repository includes an advanced example of building a multi-agent system using LangGraph and Solana Agent Kit. Located in examples/agent-kit-langgraph, this example demonstrates:
Multi-agent architecture using LangGraph's StateGraph
Specialized agents for different tasks:
Fully typed TypeScript implementation
Environment-based configuration
Check out the LangGraph example for a complete implementation of an advanced Solana agent system.
Dependencies
The toolkit relies on several key Solana and Metaplex libraries:
@solana/web3.js
@solana/spl-token
@metaplex-foundation/digital-asset-standard-api
@metaplex-foundation/mpl-token-metadata
@metaplex-foundation/mpl-core
@metaplex-foundation/umi
@lightprotocol/compressed-token
@lightprotocol/stateless.js
@coingecko/sdk
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Refer to CONTRIBUTING.md for detailed guidelines on how to contribute to this project.