OSVM CLI
A powerful command-line interface for managing Solana Virtual Machines (SVMs) across networks. Deploy, monitor, and manage SVM infrastructure with AI assistance, MCP server integration, and extensible plugin architecture.
🚀 Quick Start
Installation
One-line install:
|
Alternative methods:
Windows:
Docker:
From Source:
&&
First Steps
# Check installation
# List available SVMs
# Get help and examples
# Launch interactive dashboard
📋 Table of Contents
Getting Started
SVM Operations
Advanced Features
Tools & Monitoring
Development
🏗️ Core Features
Infrastructure Management
- SVM Deployment - Deploy and manage Solana Virtual Machines across networks
- Node Operations - Validator and RPC node deployment with automated configuration
- Remote Management - SSH-based deployment and monitoring
- Multi-Network Support - Mainnet, testnet, and devnet operations
Intelligence & Automation
- AI Integration - Built-in AI for security analysis and blockchain queries
- MCP Server Support - Connect to specialized blockchain data services
- Plugin Architecture - Extend functionality with custom commands and tools
- Self-Repair Systems - Automated maintenance and diagnostics
Monitoring & Performance
- Interactive Dashboard - Real-time TUI monitoring interface
- Performance Tracking - TPS, latency, and resource monitoring
- Log Management - Centralized logging and analysis
- Health Checks - Automated system diagnostics
📖 Basic Commands
Information & Help
# Get help and examples
# Check system health
# Get wallet balance
SVM Operations
# List all SVMs
# Get SVM details
# Interactive SVM dashboard
AI Assistance
# Ask AI questions
🔧 SVM Management
Viewing SVMs
# List all available SVMs
# Get detailed information about a specific SVM
Interactive Dashboard
# Launch comprehensive SVM monitoring dashboard
Dashboard Features:
- Overview of all SVMs with status indicators
- Network details (mainnet, testnet, devnet)
- Performance metrics with real-time visualization
- Node status monitoring with resource usage
- Aggregated logs from all nodes
Keyboard Controls:
Tab,→,←: Switch between tabs↑,↓: Navigate through itemsn/p: Select next/previous SVMv: Toggle verbosity levelh: Toggle help overlayqorCtrl+C: Quit
🚀 Node Deployment
Single Node Deployment
# Deploy validator node (mainnet)
# Deploy RPC node (testnet)
# Deploy to devnet for testing
Multi-SVM Deployment
# Deploy multiple SVMs to a single server
Node Management
# List deployed nodes
# Check node status
# View node logs
# Control node operations
📡 RPC Services
RPC Deployment
# Deploy Sonic RPC node
# Deploy with specific configuration
Local Development
# Start local test validator (instant setup)
# Check test validator status
# Stop test validator
RPC Monitoring
# Monitor RPC logs
# Query Solana network
RPC Features:
- Test Validator: Local development with built-in faucet
- Devnet RPC: Real devnet validator with auto-repair
- Network Monitoring: Health checks and performance metrics
- Auto-Configuration: Handles dependencies and setup automatically
💾 eBPF Deployment
Basic Deployment
# Deploy to all networks
# Deploy to specific network
Advanced Deployment
# Deploy with custom IDL
File Requirements
Keypair files (for new deployments):
// Array of 64 bytes
Pubkey-only files (for upgrades):
Required files:
- eBPF binary (.so file)
- Program ID (keypair for new, pubkey for upgrades)
- Program owner keypair (private key required)
- Fee payer keypair (private key required)
🤖 AI Integration
AI Configuration
# Set up OpenAI
# Use local AI (Ollama)
AI Queries
# General blockchain questions
# Deployment guidance
# Error analysis
Security Auditing
# Audit local code
# Audit GitHub repository
# Audit with specific output format
AI Features:
- Smart contract security analysis
- Automated code review
- Best practices guidance
- Multi-provider support (OpenAI, Anthropic, local models)
- Privacy-focused local AI options
🔌 MCP Server Management
Model Context Protocol (MCP) integration provides specialized blockchain data access and external service connections.
Quick Setup
# Quick setup with Solana MCP server
# List configured servers
# Test connectivity
Adding Servers
From GitHub:
# Add official Solana MCP server
# Add custom server
Manual Configuration:
# HTTP server with authentication
# WebSocket server
Using MCP Tools
# List available tools
# Execute blockchain queries
# Chain operations
| \
Server Management
# Enable/disable servers
# Remove server
# Search servers
Bearer Token:
API Key:
Basic Auth:
🧩 Plugin System
OSVM's plugin architecture allows extending functionality with custom commands, tools, themes, and integrations.
Plugin Management
# List installed plugins
# Install from directory
# Install from GitHub
# Enable/disable plugins
# Get plugin info
Plugin Types
Command Plugins - Add slash commands:
Tool Plugins - Provide AI-accessible tools:
# Tools become available to AI automatically
Theme Plugins - Visual customization:
Integration Plugins - External services:
For detailed plugin development instructions, see Plugin Development.
📊 Dashboard
Launch the interactive monitoring dashboard:
Features:
- Real-time SVM status monitoring
- Network performance metrics
- Node resource usage tracking
- Integrated log viewing
- Multi-tab interface
Navigation:
Tab/Shift+Tab: Switch tabs↑/↓: Navigate listsEnter: Select/activateq: Quit dashboard
🔍 System Health
Health Checks
# Run comprehensive diagnostics
# Auto-fix issues
# Check specific components
Self-Repair System
The built-in self-repair system automatically detects and fixes common issues:
- System Dependencies - Missing build tools, outdated packages
- User Configuration - Invalid configs, missing keypairs
- Network Issues - RPC endpoint failures, connectivity problems
- Permission Problems - File access, system tuning requirements
⚙️ CI/CD Integration
Deploy SVM nodes directly from GitHub workflows:
- name: Deploy SVM Node
uses: ./.github/actions/svm-deploy
with:
svm-name: 'my-svm'
host: 'user@example.com'
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
network: 'devnet'
node-type: 'validator'
Features:
- Secure deployment using GitHub Secrets
- Multi-network and node type support
- Detailed deployment logging
- Reusable workflow components
View Complete CI/CD Documentation
🛠️ Plugin Development
Creating Your First Plugin
1. Setup Plugin Directory:
2. Create Plugin Manifest (plugin.json):
3. Create Plugin Script (weather.py):
#!/usr/bin/env python3
# Read context from stdin
=
# Parse command
=
=
=
return
# Get weather data (simplified example)
# Your weather API logic here
=
=
4. Make Executable and Test:
# Test in chat
# Type: /weather Boston
Advanced Plugin Development
Cargo.toml:
[]
= "osvm-database-plugin"
= "1.0.0"
= "2021"
[]
= { = "1.0", = ["derive"] }
= "1.0"
= { = "1.0", = ["full"] }
= "1.0"
src/main.rs:
use Result;
use ;
use HashMap;
async
theme.json:
Plugin Security
Permission System:
ReadFiles(["~/data"])- File read accessWriteFiles(["~/output"])- File write accessExecuteCommands- System command executionNetworkAccess(["api.example.com"])- Network accessEnvironmentAccess- Environment variablesMCPAccess- MCP server accessAIAccess- AI service access
Best Practices:
- Request minimal permissions
- Validate all user input
- Use secure connections
- Handle errors gracefully
- Store secrets in config, not code
📚 Documentation
Core Guides
Advanced Features
Development Resources
For complete documentation, visit docs.opensvm.org.
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Development Setup
Install Pre-commit Hooks:
Development Commands:
# Format code
# Run linting
# Run tests
# Build and test
Code Quality Checks:
cargo fmt --all -- --check- Formatting verificationcargo clippy- Linting checkscargo test- Test suite
Monetization Strategy & Business Model
$OVSM Token Economy
Tiered Token Gating System:
- Platinum Tier (1M+ tokens): 1 $OVSM per AI prompt
- Gold Tier (100k+ tokens): 10 $OVSM per AI prompt
- Silver Tier (<100k tokens): 100 $OVSM per AI prompt
- Guest Users: 10 prompts / day free, then 200 $OVSM per AI prompt
Premium Feature Gates:
- Social Features: Minimum 100,000 $OVSM token holding required
- Advanced Analytics: Token consumption for complex queries
- Unlimited Threads: Premium tier exclusive (free users limited to 10)
- Extended AI Reasoning: 5 expansions for free, unlimited for premium
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
Need Help?