# Product recipe: Solana trading or alert bot (AgentGid)

For a bot that reads Solana chain data, prices and wallets, and sends swaps or alerts.

Parts were picked from AgentGid's catalog by rules: free tier, official MCP server, use in public projects built with AI agents, downloads, price. Prices are list prices from the official pages (see each card for the check date); confirm before you commit.

## What it costs
- Start: $0 a month on the free tiers of the first picks (their limits apply).
- If you outgrow the free tiers, the lowest paid plans of the first picks are Helius $49, CoinGecko API $35 (together about $84/month); usage beyond a plan's credits is billed on top.
- Billed by usage (grows with traffic): Telegram Bot API.
- Model, default: fast and cheap: about $0.45 per 1,000 decisions with Claude Haiku 5.5 (AgentGid estimate at ~3,000 input + 300 output tokens each).
- Model, harder questions: about $3.38 per 1,000 decisions with Gemini 3.8 Flash (AgentGid estimate at ~3,000 input + 300 output tokens each).
- Prices of the picks below were checked on the official pages between 2026-10-10 and 2026-10-20.

## How it fits together
1. Read prices and pools from the market data and swap APIs; read balances from the RPC.
2. Decide with plain rules first; use the model only to summarize or flag, not to sign trades on its own.
3. Build and send swaps through the swap API with slippage limits; confirm on chain through the RPC.
4. Send alerts to Telegram or Discord.

## Solana RPC (Solana)
- Helius: free: 1M credits/month, 10 RPS · paid from $49/mo · usage: $5 per 1M additional credits (paid plans) · official MCP helius-mcp · npm helius-sdk · card https://agentgid.com/apis/helius/agent.md
- Alchemy: free: 30M CU/month, 15 RPS · usage: $0.525 per 1M CUs (Pay as You Go) · official MCP https://mcp.alchemy.com/mcp · npm alchemy-sdk · card https://agentgid.com/apis/alchemy/agent.md
- Ankr: free: Freemium: 200M API credits/month · usage: $0.10 per 1M API credits; EVM request = 200 credits ($0.00002), Solana 500 ($0.00005), Beacon/Advanced API 700 ($0.00007) · official MCP https://mcp.ankr.com/rpc · npm @ankr.com/ankr.js · pip ankr-sdk · card https://agentgid.com/apis/ankr/agent.md
- Also fits: Chainstack, dRPC, Triton One, QuickNode (https://agentgid.com/apis/blockchain-rpc/)

## Swaps and liquidity (Solana)
- Raydium API: free: Public API, no auth; per-IP rate limiting via Cloudflare · official MCP https://docs.raydium.io/mcp · npm @raydium-io/raydium-sdk-v2 · card https://agentgid.com/apis/raydium/agent.md
- Jupiter Swap API: free: Free plan $0: 1 request/sec, unlimited credits (API key); keyless 0.5 req/sec · paid from $25/mo · usage: Developer $25/mo: 10 RPS, 25M credits; 1 credit per request, execute calls 0 credits · official MCP https://mcp.jup.ag · npm @jup-ag/api · card https://agentgid.com/apis/jupiter/agent.md
- Meteora (DLMM / DAMM): free: Free public data APIs; DLMM API 30 RPS · official MCP https://docs.meteora.ag/mcp · npm @meteora-ag/dlmm · card https://agentgid.com/apis/meteora/agent.md
- Also fits: Orca Whirlpools, 1inch API, 0x Swap API (https://agentgid.com/apis/dex-swap/)

## Market and on-chain data (Solana)
- CoinGecko API: free: Demo: 10k call credits/month, 100 calls/min · paid from $35/mo · usage: $0.0005 per call over plan credits (paid plans) · official MCP @coingecko/coingecko-mcp · npm @coingecko/coingecko-typescript · pip coingecko-sdk · card https://agentgid.com/apis/coingecko/agent.md
- Moralis: no free tier listed · paid from $149/mo · usage: $11.25 per 1M extra CUs (Starter) · official MCP @moralisweb3/api-mcp-server · npm moralis · card https://agentgid.com/apis/moralis/agent.md
- Dune API: no free tier listed · paid from $75/mo · usage: $1.875 per 100 extra credits (Analyst) · official MCP https://api.dune.com/mcp/v1 · npm @duneanalytics/client-sdk · pip dune-client · card https://agentgid.com/apis/dune/agent.md
- Also fits: Birdeye Data API, CoinMarketCap API, DexScreener API, Bitquery (https://agentgid.com/apis/crypto-data/)

## Alerts (Telegram, Discord)
- Telegram Bot API: free: Bots are able to message their users at no cost (about 30 messages per second broadcast limit) · usage: Paid broadcasts: 0.1 Stars per message over the free 30 per second (up to 1000 messages per second) · card https://agentgid.com/apis/telegram-bot-api/agent.md
- Discord API: no free tier listed · card https://agentgid.com/apis/discord-api/agent.md

## Model (all of these can call tools; prices per 1M tokens)
- Default: fast and cheap: Claude Haiku 5.5 ($0.1 in / $0.5 out) · https://agentgid.com/models/claude-haiku-5-5/agent.md · or GPT-6 Luna, MiMo V2.6 Flash
- Harder questions: Gemini 3.8 Flash ($0.75 in / $3.75 out) · https://agentgid.com/models/gemini-3-8-flash/agent.md · or Kimi K2.7 Code, DeepSeek V4 Pro
- Hardest work: Kimi K3 ($3 in / $15 out) · https://agentgid.com/models/kimi-k3/agent.md · or Claude Opus 5.5, Claude Fable 5.1

## Libraries
- `npm install @solana/kit`: Solana Kit (MIT) · https://agentgid.com/tools/solana-kit/agent.md
- `npm install @solana/web3.js`: Solana Web3.js (MIT) · https://agentgid.com/tools/solana-web3-js/agent.md
- `npm install @solana/spl-token`: Solana SPL Token (Apache-2.0) · https://agentgid.com/tools/solana-spl-token/agent.md

## Agent Skills (read a skill before you install it: skills can run scripts)
- `npx skills add trailofbits/skills --skill solana-vulnerability-scanner`
- `npx skills add internet-court/internet-court-skill --skill integrating-jupiter`

## Coding agent to build it
- OpenAI Codex: free tier, from $8/mo · https://agentgid.com/agents/openai-codex/agent.md
- Claude Code: from $20/mo · https://agentgid.com/agents/claude-code/agent.md
- OpenCode: free tier, from $10/mo · https://agentgid.com/agents/opencode/agent.md

## Also on AgentGid
- Telegram bot kit: https://agentgid.com/build/kits/news-bot/

## Before you ship
- Keep the signing key out of the code and the model's context; start with a small wallet.
- This is a tool, not financial advice; test on small amounts first.
- Keep API keys on the server, never in the client; set spending limits where the provider offers them.
- Read each service's terms for your use (data retention, commercial use, rate limits).
- Log model calls (traces) and test with your own real inputs before launch.

Recipe page: https://agentgid.com/build/recipes/solana-bot/ · all product recipes: https://agentgid.com/build/recipes/agent.md
