Deep Mind AI
  • Introduction
  • Examples
    • Getting Started with NextJS
    • Telegram Agent
    • Persistent Agent with PostgreSQL
    • AI Guided Market Making Agent
    • Discord Agent Integration
  • Guides
    • Add your own tool
    • Setup locally
    • Test it out
  • Features
    • Transfer Tokens
    • Stake SOL
    • Deploy SPL Token
    • Check Token Balances
    • Token Data Retrieval
    • Deploy NFT Collection
    • Mint NFT
    • Tensor NFT Marketplace
    • Jupiter Exchange Swaps
    • Solana Name Service (SNS)
    • Launch Token on Pump.fun
Powered by GitBook
On this page
  • ​Solana Agent Kit
  • ​Quick Start
  • ​Core Features
  • ​Blockchain Operations
  • ​AI Integration Features
  • ​Example Usage

Introduction

Connect AI agents to Solana protocols with Solana Agent Kit

NextGetting Started with NextJS

Last updated 3 months ago

Getting Started

Solana Agent Kit

An open-source toolkit for connecting AI agents to Solana protocols. Now, any agent, using any model can autonomously perform 15+ Solana actions.

Quick Start

npm install solana-agent-kit
import { SolanaAgentKit, createSolanaTools } from "solana-agent-kit";

// Initialize with private key and optional RPC URL
const agent = new SolanaAgentKit(
  "your-wallet-private-key-as-base58",
  "https://api.mainnet-beta.solana.com",
  "your-openai-api-key"
);

// Create LangChain tools
const tools = createSolanaTools(agent);

Core Features

  • Token Operations

    • Deploy SPL tokens

    • Transfer assets

    • Balance checks

    • Stake SOL

    • ZK compressed airdrops

  • NFT Management

    • Collection deployment

    • NFT minting

    • Metadata management

    • Royalty configuration

  • DeFi Integration

    • Jupiter Exchange swaps

    • Launch on Pump

    • Raydium pool creation

    • Orca whirlpool integration

    • Meteora Dynamic AMM

    • Openbook market creation

    • SNS operations

    • Jito Bundles

  • Solana Blinks

    • Lending operations

    • Arcade Games

    • JupSOL staking

  • LangChain Integration

    • Ready-to-use LangChain tools

    • Autonomous agent support with React

    • Memory management

    • Streaming responses

  • Autonomous Modes

    • Interactive chat mode

    • Autonomous mode

    • Configurable intervals

    • Error handling and recovery

  • AI Tools

    • DALL-E integration for NFTs

    • Natural language processing

    • Price feed integration

    • Automated decision-making

import { deploy_token } from "solana-agent-kit";

const result = await deploy_token(
  agent,
  9, // decimals
  1000000 // initial supply
);
import { deploy_collection } from "solana-agent-kit";

const collection = await deploy_collection(agent, {
  name: "My NFT Collection",
  uri: "https://arweave.net/metadata.json",
  royaltyBasisPoints: 500, // 5%
  creators: [
    {
      address: "creator-wallet-address",
      percentage: 100,
    },
  ],
});
import { sendCompressedAirdrop } from "solana-agent-kit";
import { PublicKey } from "@solana/web3.js";

const signature = await sendCompressedAirdrop(
  agent,
  new PublicKey("token-mint-address"),
  42, // amount per recipient
  [
    new PublicKey("recipient-1"),
    // ... more recipients
  ],
  30_000 // priority fee
);

Blockchain Operations

AI Integration Features

Example Usage

Deploy a Token

Create NFT Collection

Send Compressed Airdrop

​
​
​
​
​
​
​
​
​