Examples
This section contains a collection of examples demonstrating various implementations of the Solana Agent Kit v2. These examples are organized by category to help you find the right starting point for your project.Examples Overview
DeFi Examples
Market making, cross-chain operations, and DEX integration examples
Embedded Wallets
Examples using Turnkey, Privy, Crossmint, and Para wallet solutions
MCP (Model Context Provider)
Server implementation for Model Context Protocol with Claude Desktop
Miscellaneous
Persistent agents, LangChain and LangGraph integrations
Social
Discord and Telegram bot integration examples
n8n Integration
Workflow automation with n8n for no-code solutions
DeFi Examples
| Example | Description |
|---|---|
| market-making-agent | Agent implementation for market making on Solana DEXs |
| wormhole-nextjs-agent | Cross-chain agent using Wormhole with Next.js framework |
| okx-dex-starter | Starter template for building agents interacting with OKX DEX |
Embedded Wallets
| Example | Description |
|---|---|
| turnkey-agent-starter | Agent implementation using Turnkey’s secure embedded wallet solution |
| privy-agent-tanstack-starter | Example using Privy wallet integration with TanStack for state management |
| crossmint-sak-v2 | Implementation using Crossmint’s wallet infrastructure |
| para-plugin-example | Example demonstrating Para wallet plugin integration |
MCP (Model Context Provider)
| Example | Description |
|---|---|
| agent-kit-mcp-server | Server implementation for Model Context Protocol with Solana Agent Kit |
Miscellaneous
| Example | Description |
|---|---|
| persistent-agent | Example of an agent with persistent state between interactions |
| agent-kit-nextjs-langchain | Integration of Agent Kit with Next.js and LangChain |
| orbofi-personality-engine | Example using OrboFi personality engine for more engaging agents |
| agent-kit-langgraph | Integration with LangGraph for complex agent workflows |
Social
| Example | Description |
|---|---|
| discord-bot-starter | Starter template for building Discord bots with Agent Kit |
| tg-bot-starter | Template for Telegram bot integration |
n8n Integration
A comprehensive node setup for integrating Solana Agent Kit with the n8n workflow automation platform. This allows creation of no-code/low-code blockchain workflows.Getting Started
Each example includes its own README with specific instructions. To get started:- Choose an example that best fits your use case
- Navigate to the example directory
- Follow the installation and setup instructions in the example’s README
Prerequisites
Most examples require:- Node.js (version specified in each example)
- npm, yarn, or pnpm (as specified)
- Basic understanding of Solana and blockchain concepts
- API keys (OpenAI, Solana RPC, etc.) as specified in each example
Tips for setting up your environment
Tips for setting up your environment
- Create a
.env.localfile in the example directory to store your API keys - Use a development wallet with a small amount of SOL for testing
- Most examples work with devnet or testnet by default
- Check the specific RPC requirements in each example’s README
Customizing Examples
The examples are designed to be starting points for your own implementations. Here are some ways you can extend them:- Add additional plugins to expand functionality
- Customize prompts to create specialized agent behaviors
- Integrate with different wallet providers
- Connect to additional DeFi protocols
- Modify the UI components to match your application’s design
Contributing
If you’d like to contribute a new example, please follow the standard contribution guidelines in the main repository. New examples should:- Include a comprehensive README.md
- Be well-documented with comments
- Follow the code structure of existing examples
- Include any necessary environment variable templates