AI-Powered Solana Development Suite ๐คโก The next-generation Solana development environment combining blazing-fast localnet performance with integrated AI assistance. Build faster, debug smarter, ship sooner.
๐ฅ SolForge
AI-Powered Solana Development Suite ๐คโก
The next-generation Solana development environment combining blazing-fast localnet performance with integrated AI assistance. Build faster, debug smarter, ship sooner.
๐ฏ What is SolForge?
SolForge started as a lightning-fast alternative to solana-test-validator, but has evolved into something far more powerful: a complete AI-powered Solana development suite that combines:
- ๐ Ultra-Fast Localnet - Sub-second startup (~50MB vs 500MB+)
- ๐ค Integrated AI Assistant - Built-in coding assistant powered by Claude, GPT-4, or your choice of LLM
- ๐จ Modern Web Dashboard - Full-featured GUI with AI chat sidebar
- ๐ ๏ธ Complete Dev Toolkit - Program cloning, token minting, unlimited airdrops
- ๐ Drop-in Compatible - Works with Anchor, web3.js, @solana/kit, and all existing tooling
โจ Why SolForge?
The All-in-One Development Suite
| Feature | SolForge | solana-test-validator | |---------|----------|----------------------| | Startup Time | < 1s | 10-30s | | Memory Usage | ~50MB | 500MB+ | | AI Assistant | โ Built-in | โ None | | Web Dashboard | โ Modern React UI | โ CLI only | | Program Cloning | โ One command | โ Manual | | Token Cloning | โ Automatic | โ Complex | | Unlimited Airdrops | โ Instant | โ ๏ธ Rate limited | | WebSocket Support | โ Real-time | โ Yes |
๐ Quick Start
Installation
# One-liner install (recommended)
curl -fsSL https://install.solforge.sh | sh
Or with Bun
bun install -g solforge
Or with npm
npm install -g solforge
GitLab CI:yaml
script:
- npm install -g solforge
- solforge --ci &
- sleep 5
- anchor test --skip-local-validator
Bind to all interfaces for LAN access
solforge --networkNote: Keep SolForge local-only in production for security
test = "anchor test --skip-local-validator"Start SolForge
solforgeStart Everything
# Initialize config
This launches:
- ๐ RPC Server:
http://127.0.0.1:8899 - ๐ก WebSocket:
ws://127.0.0.1:8900 - ๐จ Web Dashboard:
http://127.0.0.1:42069 - ๐ค AI Assistant:
http://127.0.0.1:3456/ui(if enabled)
Get Coding in 30 Seconds
# Configure Solana CLI
solana config set -u http://127.0.0.1:8899
Get some SOL
solana airdrop 1000
You're ready! ๐
๐ค AI-Powered Development
Enable the AI Assistant
Add this to your sf.config.json:
{
"agi": {
"enabled": true
}
}
That's it! The AI server starts automatically with smart defaults. No API keys required initially (uses AGI's defaults).
What Can the AI Do?
- ๐ Debug Your Programs
"Why is my PDA derivation failing?"
"Explain this transaction error: Program failed..."
- ๐ Generate Code
"Create an Anchor program for a token swap"
"Write a TypeScript client for my NFT program"
- ๐ Learn Solana
"What's the difference between a PDA and a keypair?"
"How do cross-program invocations work?"
- ๐ Review & Optimize
"Review this program for security issues"
"How can I optimize these compute units?"
- ๐ Deployment Help
"Deploy this program to devnet"
"Set up CI/CD for my Anchor project"
Access the AI
- Web Dashboard: Built-in chat sidebar at
http://127.0.0.1:42069 - Standalone UI: Direct access at
http://127.0.0.1:3456/ui - API: Programmatic access via REST/SSE endpoints
๐จ Web Dashboard
The modern web interface combines all your dev tools in one place:
Features
- ๐ Real-time Monitoring - Slots, blocks, transactions
- ๐ธ Instant Airdrops - Visual SOL distribution
- ๐ช Token Management - Create, clone, and mint tokens
- ๐ค AI Chat Sidebar - Get help without leaving your workspace
- ๐ Transaction Inspector - Debug transactions visually
- ๐ Network Stats - Live performance metrics
http://127.0.0.1:42069 when SolForge is running.
๐ ๏ธ Complete Development Toolkit
Program Development
# Clone programs from mainnet
solforge program clone TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
Clone with all associated accounts
solforge program clone <PROGRAM_ID> --with-accounts
Load your own program
solforge program load --file ./target/deploy/my_program.so
Token Operations
# Clone USDC to localnet
solforge token clone EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
Create new token with metadata
solforge mint
Interactive token creation wizard
solforge token create
Instant Airdrops
# No rate limits, no waiting
solforge airdrop --to <PUBKEY> --sol 1000
Or use the web dashboard for visual control
๐ Configuration
Create sf.config.json to customize everything:
{
"name": "my-solana-project",
"server": {
"rpcPort": 8899,
"wsPort": 8900
},
"gui": {
"enabled": true,
"port": 42069
},
"agi": {
"enabled": true,
"port": 3456,
"provider": "openrouter",
"model": "anthropic/claude-3.5-sonnet"
},
"clone": {
"programs": [
"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
],
"tokens": [
{
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"symbol": "USDC"
}
]
},
"bootstrap": {
"airdrops": [
{
"address": "YOURWALLETADDRESS",
"amountSol": 100
}
]
}
}
Configuration Options
| Section | Purpose | Docs | |---------|---------|------| | server | RPC/WebSocket ports | docs/CONFIGURATION.md | | gui | Web dashboard settings | apps/web/README.md | | agi | AI assistant configuration | AGI_QUICKSTART.md | | clone | Auto-clone programs/tokens | docs/CONFIGURATION.md | | bootstrap | Auto-airdrops on startup | docs/CONFIGURATION.md |
๐ Framework Integration
Anchor
# Anchor.toml
[provider]
cluster = "http://127.0.0.1:8899"
wallet = "~/.config/solana/id.json"
[scripts] test = "solforge && anchor test --skip-local-validator"
@solana/web3.js
import { Connection, PublicKey, LAMPORTSPERSOL } from "@solana/web3.js";
const connection = new Connection("http://127.0.0.1:8899", "confirmed");
// Request airdrop await connection.requestAirdrop( new PublicKey("YOUR_WALLET"), 100 * LAMPORTSPERSOL );
// Get balance const balance = await connection.getBalance(publicKey);
@solana/kit (Recommended)
import { createSolanaRpc } from "@solana/kit";
import { address, lamports } from "@solana/web3.js";
const rpc = createSolanaRpc("http://127.0.0.1:8899");
// Request airdrop await rpc .requestAirdrop(address("YOURWALLET"), lamports(100000000000n)) .send();
// Get balance const balance = await rpc.getBalance(address("YOUR_WALLET")).send();
๐ Performance & Comparison
Speed Matters
# solana-test-validator
$ time solana-test-validator
$ time solforge
Startup: ~15-30 seconds
Memory: 500-800 MB
CPU: 5-10% idle
$ time solforge
SolForge
$ time solforge
Startup: < 1 second
Memory: ~50 MB
CPU: < 1% idle
Why It's Fast
- LiteSVM: Built on an optimized Solana Virtual Machine implementation
- Minimal Overhead: No unnecessary validators or consensus
- Efficient Architecture: Bun runtime + smart resource management
- Optimized RPC: Direct SVM access without validator overhead
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SolForge CLI โ
โ Entry point - orchestrates all components โ
โโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโ> ๐ LiteSVM RPC Server (packages/server)
โ โข Full Solana RPC API (90+ methods)
โ โข WebSocket subscriptions
โ โข ~50MB memory, sub-second startup
โ
โโโ> ๐จ Web Dashboard (apps/web)
โ โข React + TypeScript + Vite
โ โข Real-time monitoring
โ โข Token & airdrop tools
โ โข AGI chat sidebar integration
โ
โโโ> ๐ค AGI Server (@agi-cli/server)
โข Embedded AI assistant
โข Multi-provider support (OpenRouter, Anthropic, OpenAI)
โข Specialized Solana development agents
โข REST API + SSE streaming
Project Structure
solforge/
โโโ apps/
โ โโโ cli/ # Main CLI entry point
โ โ โโโ commands/ # start, init, mint, etc.
โ โ โโโ services/ # Process management, token cloning
โ โ โโโ config/ # Configuration management
โ โโโ web/ # React dashboard
โ โโโ components/ # UI components + AGI sidebar
โ โโโ routes/ # Dashboard pages
โโโ packages/
โ โโโ server/ # LiteSVM RPC/WebSocket server
โ โ โโโ methods/ # 90+ RPC method implementations
โ โ โโโ ws-server/ # WebSocket subscription server
โ โโโ install/ # Installation CLI
โโโ docs/ # Architecture & guides
๐ Use Cases
For Hackathons ๐
- Fast Iteration: Sub-second restart means rapid development
- AI Pair Programming: Debug faster with integrated AI
- Complete Toolkit: Everything you need in one tool
- Visual Debugging: Web dashboard for real-time insights
For Learning ๐
- Beginner Friendly: AI explains Solana concepts as you code
- Interactive: Web GUI makes concepts visual
- Fast Feedback: Instant airdrops and program deployment
- Production-Ready: Same RPC API as mainnet
For Teams ๐ฅ
- Consistent Environments: Same config across all devs
- Faster Onboarding: One command to start developing
- AI Knowledge Base: Team can query AI for project patterns
- Remote Development:
--networkflag for LAN access
For CI/CD ๐
- Fast Tests: Startup time doesn't bottleneck pipelines
- Scriptable: Full CLI automation support
- Docker Ready: Minimal resource footprint
- Reliable: Deterministic behavior for testing
๐ Documentation
๐ Complete Documentation - All documentation is now hosted on the website as a single source of truth.
Quick links:
- AI Assistant Setup - Enable and configure the AI
- Configuration Reference - Complete sf.config.json guide
- CLI Commands - All available CLI commands
๐ง Advanced Usage
AI Configuration
{
"agi": {
"enabled": true,
"port": 3456,
"provider": "openrouter",
"model": "anthropic/claude-3.5-sonnet",
"agent": "general"
}
}
Supported Providers:
- OpenRouter (recommended - access to all models with one key)
- Anthropic (Claude 3.5 Sonnet)
- OpenAI (GPT-4 Turbo)
general- General Solana development & debuggingbuild- Build processes & deployment tasks
Network Mode
Make your localnet accessible on your LAN:
solforge --network
Now accessible at http://YOUR_IP:8899 from other devices.
Bootstrap Configurations
Auto-setup on every start:
{
"clone": {
"programs": ["TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"],
"tokens": [
{
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"symbol": "USDC"
}
]
},
"bootstrap": {
"airdrops": [
{ "address": "YOUR_WALLET", "amountSol": 100 }
]
}
}
steps:
- uses: actions/checkout@v4
- run: npm install -g solforge
- run: solforge --ci &
- run: sleep 5 && anchor test --skip-local-validator
run: |
- name: Run Tests
---
๐๏ธ Building from Source
Prerequisites
- Bun runtime
Build Commands
bash
Clone & install
git clone https://github.com/nitishxyz/solforge.git cd solforge bun installRun from source
bun apps/cli/index.ts startBuild binary for your platform
bun run --filter @solforge/cli build:binBuild for all platforms
bun run --filter @solforge/cli build:bin:all### Platform-Specific Buildsbash
macOS (Apple Silicon)
bun run build:bin:darwin-arm64macOS (Intel)
bun run build:bin:darwin-x64Linux x64
bun run build:bin:linux-x64Linux ARM64
bun run build:bin:linux-arm64Windows x64
bun run build:bin:windows-x64---
๐ Troubleshooting
Port Already in Use
bash
Check what's using the port
lsof -i :8899Use different port
solforge --port 9999### AI Server Not Startingbash
Check API key (if using specific provider)
echo $OPENROUTERAPIKEYStart with debug logs
solforge --debugUse minimal config (no API key needed)
{ "agi": { "enabled": true } }### GUI Not Loadingbash
Check if port is available
lsof -i :42069Use different port
export SOLFORGEGUIPORT=3000 solforge### Connection Refused
Quick Reference
bash
solforge # Start everything
solforge stop # Stop everything
solforge mint # Mint tokens
solforge token clone # Clone token from mainnet
---
๐ API Coverage
โ
Fully Implemented (90+ methods)
- Account Operations: getAccountInfo, getMultipleAccounts, getProgramAccounts
- Transaction Processing: sendTransaction, simulateTransaction, getTransaction
- Block & Slot Queries: getBlock, getSlot, getBlockHeight, getEpochInfo
- Token Operations: getTokenAccountsByOwner, getTokenSupply, getTokenAccountBalance
- Program Deployment: Full program deployment support
- WebSocket Subscriptions: accountSubscribe, signatureSubscribe, programSubscribe
๐ง In Progress
- Additional WebSocket subscription types
- Stake account operations
- Vote account queries
๐ Planned
- Snapshot/restore functionality
- Time-travel debugging
- Multi-tenant support
- Enhanced transaction inspection
๐ค Contributing
We welcome contributions! Whether you're:
- Adding new RPC methods
- Improving AI prompts
- Enhancing the web dashboard
- Writing documentation
- Reporting bugs
See AGENTS.md for development guidelines.
Development Workflow
bash
Run tests
bun testLint code
bun run lintFormat code
bun run format ```๐ Acknowledgments
SolForge is built on the shoulders of giants:
- LiteSVM - Fast Solana VM implementation
- Bun - Lightning-fast JavaScript runtime
- @agi-cli - AI coding assistant framework
- Solana Labs - For building an incredible blockchain platform
- The Solana Community - For inspiration and feedback
๐ License
MIT License - see LICENSE for details.
๐ Links
- GitHub: github.com/nitishxyz/solforge
- Issues: Report bugs or request features
- Discord: Join our community (coming soon)
- Twitter: @solforgedev (coming soon)_
๐ Star History
If SolForge helps you build faster, please consider starring the repo! โญ
Made with โค๏ธ for Solana developers
From a simple localnet to an AI-powered development suite
Get Started โข AI Docs โข Full Docs โข Support