https://github.com/toptrendev/solana-ai-agents
Solana AI Agent connect AI agent to solana protocols, using DeepSeek and Vapi(Voice chat) LLMs
https://github.com/toptrendev/solana-ai-agents
agent ai amm deepseek defai solana-ai-agent trade-tokens
Last synced: 3 months ago
JSON representation
Solana AI Agent connect AI agent to solana protocols, using DeepSeek and Vapi(Voice chat) LLMs
- Host: GitHub
- URL: https://github.com/toptrendev/solana-ai-agents
- Owner: TopTrenDev
- License: apache-2.0
- Created: 2025-02-17T20:10:45.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-18T10:29:30.000Z (3 months ago)
- Last Synced: 2025-02-18T11:31:43.090Z (3 months ago)
- Topics: agent, ai, amm, deepseek, defai, solana-ai-agent, trade-tokens
- Language: TypeScript
- Homepage:
- Size: 3.36 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Citation: CITATION.cff
- Security: SECURITY.md
Awesome Lists containing this project
README
# **Solana AI Agent**
**An innovative AI-powered solution built on the Solana blockchain.**
Solana AI Agent revolutionizes digital interactions by integrating **artificial intelligence** with the **Solana blockchain**. Designed for **automating complex tasks** and **optimizing decision-making**, this agent enhances **DeFi operations, trading, analytics, and cross-chain interactions**.
With its ability to learn and adapt, Solana AI Agent ensures **seamless integration and actionable insights** for both newcomers and experienced crypto users.
---
## **π Overview**
**Solana AI Agent** enables the connection between AI agents and Solana protocols, offering:
### **1οΈβ£ Blockchain Agent Chat Terminal**
- **Real-time streaming** implementation
- **Blockchain integration** for AI-driven operations
- **Intuitive UI components** for seamless interaction### **2οΈβ£ Trading Infrastructure**
- **Jupiter Exchange swaps**
- **PumpPortal launch support**
- **Raydium pool creation** (CPMM, CLMM, AMMv4)
- **Orca Whirlpool & OpenBook market integration**
- **Pyth price feeds** for real-time asset tracking
- **Drift Vaults, Perps, Lending, and Borrowing**### **3οΈβ£ Analytics & Automation**
- **Real-time market analytics dashboard**
- **Whale monitoring & DeFi insights**
- **NFT management & automated NFT listing**
- **Multi-chain bridge to Solana**
- **Autonomous trading agent powered by Solana AI**### **4οΈβ£ Cross-Chain & Security Enhancements**
- **Interoperability across ecosystems**
- **Advanced security protocols**
- **Comprehensive integration with Solana's ecosystem**### **5οΈβ£ Full Decentralization & Community Governance**
- **Decentralized architecture**
- **Community-led decision-making**
- **Sustainable growth & innovation****Anyone**βwhether an **AI researcher** or a **crypto-native developer**βcan train AI agents and seamlessly integrate them with Solana.
[](https://replit.com/@toptrendev/solana-ai-agents)
---
## **π§ Core Blockchain Features**
### **πͺ Token Operations**
- Deploy **SPL tokens** via **Metaplex**
- **Transfer assets** and **balance checks**
- **Stake SOL** for rewards
- **ZK-compressed airdrops** via **Light Protocol & Helius**### **π¨ NFT Integration**
- **Create NFT collections** and list them automatically on **3.land**
- **NFT metadata & royalty management** via **Metaplex**### **π DeFi Integration**
- **Jupiter Exchange swaps & PumpPortal integration**
- **Raydium & Orca liquidity pools**
- **Perpetuals trading & lending via Adrena and Drift**
- **Market data via Pyth price feeds**### **β‘ Solana Blinks**
- **Best USDC lending rates via Lulo**
- **Arcade game transactions**
- **JupSOL staking & Solayer SOL staking**### **π οΈ Non-Financial Actions**
- **Bounty registration** via Gib Work---
## **π€ AI Integration Features**
### **π‘ LangChain Integration**
- **Blockchain-ready LangChain tools**
- **Autonomous agent support** with **React framework**
- **Persistent memory management**
- **Real-time streaming responses**### **π Vercel AI SDK Integration**
- **Framework-agnostic** AI toolkit
- **Seamless integration** for AI agent workflows### **π Autonomous AI Modes**
- **Interactive mode** for user-guided operations
- **Fully autonomous mode** for AI-driven tasks
- **Configurable action intervals & error handling**### **πΌοΈ AI-Powered Tools**
- **DALLΒ·E integration** for **NFT artwork generation**
- **Natural Language Processing (NLP)** for blockchain commands
- **Automated price feed tracking & market analysis**
- **AI-driven decision-making for DeFi strategies**---
## **π Quick Start Guide**
```typescript
import { SolanaAIAgent, createSolanaTools } from "solana-ai-agents";// Initialize with private key and optional RPC URL
const agent = new SolanaAIAgent(
"your-wallet-private-key-as-base58",
"https://api.mainnet-beta.solana.com",
"your-openai-api-key"
);// Create LangChain tools
const tools = createSolanaTools(agent);
```---
## **π οΈ Usage Examples**
- **Deploy a New Token**
- **Create NFTs & Collections** (Auto-listed on **3Land**)
- **Swap & Lend Tokens**
- **Stake SOL on Solana & Solayer**
- **ZK Compression Airdrops**
- **Fetch Market Data via Pyth**
- **Open & Close Perpetual Trades**
- **Manage Drift Vaults & Accounts**
- **Borrow & Repay Loans on Drift**---
## **π Advanced AI & Blockchain Examples**
### **LangGraph Multi-Agent System**
This repository includes a **multi-agent system** using **LangGraph & Solana AI Agent**.π **Located in:** `examples/agent-kit-langgraph`
πΉ **Features:**
- **Multi-agent architecture** using **StateGraph**
- **Specialized agents** for queries, transactions, and market analysis
- **Fully typed** implementation in **TypeScript**
- **Configurable & scalable environment**π **Explore the full implementation:** [LangGraph Example](examples/agent-kit-langgraph)
---
## **π¦ Dependencies**
This toolkit integrates key Solana and Metaplex libraries:
- `@solana/web3.js`
- `@solana/spl-token`
- `@metaplex-foundation/mpl-token-metadata`
- `@lightprotocol/compressed-token`
- `@lightprotocol/stateless.js`---
## **π€ Contributing**
Contributions are welcome! Please review the [CONTRIBUTING.md](CONTRIBUTING.md) file before submitting a **Pull Request**.
---
## **π₯ Contributors**
---
## **π‘οΈ Security Notice**
β οΈ **Always store your private keys securely.** This toolkit handles **private keys and blockchain transactions**, so ensure proper security measures.
---
## **π¬ Contact & Community**
π’ **Telegram:** [@toptrendev](https://t.me/toptrendev)
π’ **Discord:** [toptrendev](https://discordapp.com/users/334173411402317846)