Solana Agent Kit

repository·v2·Indexed 23 days ago

https://github.com/sendaifun/solana-agent-kit

An open-source toolkit (v2.0.7) to connect AI agents to Solana protocols for autonomous actions. It includes a Model Context Protocol (MCP) server for AI clients like Claude Desktop and specialized plugins for DeFi (Adrena, Drift, Orca, Raydium, etc.), NFTs (Metaplex, Tensor, 3Land), token operations, and miscellaneous services such as Helius, Squads, and Coingecko.

Tokens
213.2K
Snippets
565
Records
1K
Agent score
82%

What's inside solana-agent-kit

  1. Overview of Solana Agent Kit packages

    v2

    The Solana Agent Kit ecosystem consists of a core library and several specialized plugins and adapters designed to extend the capabilities of AI agents on the Solana blockchain.

    Core Library:

    • solana-agent-kit: The primary package for building Solana-capable AI agents.

    Plugins and Adapters:

    • @solana-agent-kit/adapter-mcp: MCP (Model Context Protocol) Server Utility.
    • @solana-agent-kit/plugin-blinks: Support for Solana Blinks.
    • @solana-agent-kit/plugin-defi: Ranger Finance integration for DeFi operations.
    • @solana-agent-kit/plugin-misc: Miscellaneous utility functions.
    • @solana-agent-kit/plugin-nft: NFT-related operations.
    • @solana-agent-kit/plugin-token: Token management and operations.
  2. Overview of @solana-agent-kit/plugin-misc

    v2
    The @solana-agent-kit/plugin-misc plugin provides a collection of miscellaneous tools and actions for interacting with various third-party services, protocols, and data providers on the Solana blockchain. It enables agents to perform tasks such as domain registration, monitoring transactions via webhooks, managing multisig accounts, and fetching market data from providers like Coingecko and ElfaAi.
  3. Overview of Solana Agent Kit v2 implementation examples

    v2

    The Solana Agent Kit v2 provides several categories of implementation examples to serve as starting points for different use cases:

    DeFi Examples

    • market-making-agent: Agent implementation for market making on Solana DEXs.
    • wormhole-nextjs-agent: Cross-chain agent using Wormhole with Next.js.
    • okx-dex-starter: Starter template for agents interacting with OKX DEX.

    Embedded Wallets

    • turnkey-agent-starter: Uses Turnkey's secure embedded wallet solution.
    • privy-agent-tanstack-starter: Uses Privy wallet integration with TanStack for state management.
    • crossmint-sak-v2: Uses Crossmint's wallet infrastructure.
    • para-plugin-example: Demonstrates Para wallet plugin integration.

    MCP (Model Context Provider)

    • agent-kit-mcp-server: Server implementation for Model Context Protocol with Solana Agent Kit.

    Miscellaneous

    • persistent-agent: Agent with persistent state between interactions.
    • agent-kit-nextjs-langchain: Integration with Next.js and LangChain.
    • orbofi-personality-engine: Uses OrboFi personality engine for engaging agents.
    • agent-kit-langgraph: Integration with LangGraph for complex workflows.

    Social

    • discord-bot-starter: Starter template for Discord bots.
    • tg-bot-starter: Template for Telegram bot integration.

    n8n Integration

    • n8n-solana-agent: Node setup for integrating Solana Agent Kit with the n8n workflow automation platform for no-code/low-code blockchain workflows.
  4. What is Fraction?

    v2
    Fraction is a Solana program designed to automatically split incoming SPL tokens (such as USDC, SOL, or custom mints) among multiple recipients based on pre-configured percentage shares. It is specifically built for autonomous agents and applications to enable seamless, automated revenue distribution without manual intervention.
  5. Overview of Solana Agent Kit v2

    v2

    Solana Agent Kit v2 is an open-source toolkit designed to build Solana-powered applications with integrated wallet and transaction capabilities. Unlike v1, v2 uses a modular, plugin-based architecture to improve security and reduce LLM hallucinations by limiting the number of tools exposed to the agent at any given time.

    Key improvements in v2 include:

    • Embedded Wallet Support: Integration with providers like Turnkey and Privy to avoid direct private key input and enable human-in-the-loop transaction confirmation.
    • Plugin Architecture: Modular tools that reduce context bloat for LLMs.
    • Mobile Support: Native React Native support.
    • Improved Performance: Optimized prompts and LangChain-based evaluations for tools.
  6. Overview of solana-agent-kit

    v2
    The solana-agent-kit package provides a framework for building AI agents capable of interacting with the Solana blockchain. It includes core classes for wallet management and agent orchestration, a plugin system for extending capabilities (like DeFi, NFTs, or Token management), and utility functions to bridge blockchain actions with AI frameworks like LangChain or Vercel AI SDK.
  7. Overview of the Telegram Bot Starter with Solana Agent Kit

    v2

    This starter project demonstrates how to build a Telegram bot powered by the Solana Agent Kit. It is designed to handle complex multi-user scenarios, including:

    • User Isolation: Maintains a unique Solana wallet for each user using a Firebase database.
    • Chat History: Stores conversation history for each user in a PostgreSQL database.
    • Group & Private Chat Support: Can be deployed in Telegram groups. In groups, the bot only responds if it is tagged or if a message is a direct reply to the bot. It handles private information (like wallet addresses) in private chats.
    • Concurrency: Manages state and requests for multiple users simultaneously, responding to each user by tagging them.
  8. Key features of the Fraction protocol

    v2

    Fraction provides several core capabilities for automated revenue management:

    • Atomic Distribution: All transfers occur within a single transaction to ensure consistency and prevent partial distributions.
    • Zero Manual Steps: Once the configuration is set, distributions are triggered automatically by authorized agents.
    • Multi-Token Support: Compatible with any SPL token, including SOL, USDC, and custom project tokens.
    • Flexible Allocations: Supports up to 5 participants with customizable percentage-based allocations.