nitishxyz
solforge
TypeScript

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.

Last updated May 16, 2026
22
Stars
1
Forks
0
Issues
0
Stars/day
Attention Score
44
Language breakdown
TypeScript 96.4%
Astro 1.3%
JavaScript 1.1%
CSS 1.0%
Shell 0.2%
HTML 0.0%
โ–ธ Files click to expand
README

๐Ÿ”ฅ 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.

Version License Powered by LiteSVM AI Enabled


๐ŸŽฏ 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
Think of it as: Your localnet, your dev tools, and your AI pair programmerโ€”all in one command.

โœจ 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 --network

Note: Keep SolForge local-only in production for security

test = "anchor test --skip-local-validator"

Start SolForge

solforge

Start 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)
This runs interactive setup (first time) and launches all services:

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
๐Ÿ“– Detailed Guide: AGI_QUICKSTART.md

๐ŸŽจ 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
Access at 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: --network flag 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:


๐Ÿ”ง 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)
Agent Types:
  • general - General Solana development & debugging
  • build - 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
run: | anchor test --skip-local-validator
---

๐Ÿ—๏ธ Building from Source

Prerequisites

Build Commands

bash

Clone & install

git clone https://github.com/nitishxyz/solforge.git cd solforge bun install

Run from source

bun apps/cli/index.ts start

Build binary for your platform

bun run --filter @solforge/cli build:bin

Build for all platforms

bun run --filter @solforge/cli build:bin:all
### Platform-Specific Builds
bash

macOS (Apple Silicon)

bun run build:bin:darwin-arm64

macOS (Intel)

bun run build:bin:darwin-x64

Linux x64

bun run build:bin:linux-x64

Linux ARM64

bun run build:bin:linux-arm64

Windows x64

bun run build:bin:windows-x64
---

๐Ÿ” Troubleshooting

Port Already in Use

bash

Check what's using the port

lsof -i :8899

Use different port

solforge --port 9999
### AI Server Not Starting
bash

Check API key (if using specific provider)

echo $OPENROUTERAPIKEY

Start with debug logs

solforge --debug

Use minimal config (no API key needed)

{ "agi": { "enabled": true } }
### GUI Not Loading
bash

Check if port is available

lsof -i :42069

Use 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 test

Lint code

bun run lint

Format 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


๐ŸŒŸ 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

๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท nitishxyz/solforge ยท Updated daily from GitHub