Skip to content

x402agent/NemoClaw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

241 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

πŸ¦€ NemoClaw
Autonomous Solana Trading Agent β€” Sandboxed, Wallet-Enabled, Telegram-Native

npm License Status Solana Telegram DeepSolana


NemoClaw turns an AI model into a fully autonomous Solana agent that trades tokens, manages its own encrypted wallet, and narrates everything it does in natural language on Telegram β€” all running inside a hardened OpenShell sandbox where every network request, file access, and on-chain transaction is governed by policy.

npm install -g @mawdbotsonsolana/nemoclaw
nemoclaw onboard
nemoclaw solana start

Three commands. Zero exposed keys. Full autonomy.

Alpha β€” Interfaces may change. We welcome issues and feedback.


⚑ What You Get

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                                                                 β”‚
β”‚   🧠 DeepSolana Model ── 8bit/DeepSolana via Ollama.           β”‚
β”‚   β”‚                       Solana-tuned LLM. Auto-pulled.       β”‚
β”‚   β”‚                       Understands DeFi, Pump-Fun, wallets. β”‚
β”‚   β”‚                                                             β”‚
β”‚   πŸ” Encrypted Wallet ─── Privy server wallet. Private keys    β”‚
β”‚   β”‚                       never leave Privy infrastructure.     β”‚
β”‚   β”‚                       Spending policies enforced on-chain.  β”‚
β”‚   β”‚                                                             β”‚
β”‚   πŸ€– Telegram Bridge ──── Natural-language narration of every   β”‚
β”‚   β”‚                       trade, transfer, and interaction.     β”‚
β”‚   β”‚                       /balance /holdings /status /lasttrade  β”‚
β”‚   β”‚                                                             β”‚
β”‚   πŸ’Ž Pump-Fun SDK ──────── Token creation, trading, claims,     β”‚
β”‚   β”‚                       buybacks, PumpKit monorepo, x402.     β”‚
β”‚   β”‚                                                             β”‚
β”‚   🧠 43 DeFi Personas ─── Yield farmer, whale watcher, MEV     β”‚
β”‚   β”‚                       advisor, risk engine, tax strategist. β”‚
β”‚   β”‚                                                             β”‚
β”‚   πŸ›‘οΈ Sandboxed ─────────── Landlock + seccomp + netns via       β”‚
β”‚                            NVIDIA OpenShell. Deny-all default.  β”‚
β”‚                                                                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ Quick Start

Install

npm install -g @mawdbotsonsolana/nemoclaw

Requires: Node.js 20+, Docker, Linux (Ubuntu 22.04+). macOS works for CLI management; the sandbox runs in Docker.

Onboard (one time)

nemoclaw onboard

The wizard walks through 9 steps:

Step What happens
1 Preflight β€” Docker, OpenShell, GPU detection
2 Gateway β€” Start the OpenShell gateway
3 Sandbox β€” Build Docker image (Solana CLI v2.2.2, Pump-Fun SDK, 43 DeFi personas)
4 Inference β€” Auto-detects Ollama β†’ pulls 8bit/DeepSolana. Or pick NVIDIA Cloud / vLLM
5 Provider β€” Configure the inference endpoint
6 OpenClaw β€” Install the agent framework in the sandbox
7 Solana & Wallet β€” RPC URL (Helius default), Privy agentic wallet, Pump-Fun token
8 Test Validator β€” Optional local validator with 4 cloned Pump programs
9 Policies β€” Auto-apply solana-rpc, pumpfun, privy, telegram, ollama presets

Set Environment

export HELIUS_API_KEY=<your-helius-key>
export SOLANA_RPC_URL=https://mainnet.helius-rpc.com/?api-key=$HELIUS_API_KEY
export TELEGRAM_BOT_TOKEN=<botfather-token>
export TELEGRAM_NOTIFY_CHAT_IDS=<comma-separated-chat-ids>   # optional
export AGENT_TOKEN_MINT_ADDRESS=<pump-token-mint>             # optional
export DEVELOPER_WALLET=<developer-wallet>                    # optional (Privy creates one)

Start Everything

nemoclaw solana start

One command spins up the full Solana operator stack inside the sandbox:

Service What it does
βœ… Telegram Monitor Pump-Fun alerts, launch tracking, graduation events, whale detection
βœ… Wallet Bridge Natural-language narration of buys, sells, transfers, program interactions
βœ… WebSocket Relay Real-time launch feed for dashboards and downstream bots
☐ Payment App Payment-gated agent (enable: START_PAYMENT_APP=true)
☐ Swarm Bot Multi-bot orchestration dashboard (enable: START_SWARM_BOT=true)

🧠 Default Model: 8bit/DeepSolana

NemoClaw ships with 8bit/DeepSolana as the default inference model, auto-pulled via Ollama during onboard. It's a Solana-tuned model that understands Pump-Fun mechanics, token launches, DeFi strategies, and wallet narration out of the box.

Setup

# Install Ollama (if not already installed)
curl -fsSL https://ollama.com/install.sh | sh

# Pull DeepSolana (happens automatically during onboard)
ollama pull 8bit/DeepSolana

# Verify it's running
curl http://localhost:11434/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model":"8bit/DeepSolana","messages":[{"role":"user","content":"What is Pump-Fun?"}]}'

Model Options

Option How to select
8bit/DeepSolana (default) Auto-selected when Ollama is detected
NVIDIA Cloud (Nemotron 120B) Select "NVIDIA Cloud API" during onboard
Any Ollama model ollama pull <model> then update inference route
vLLM Set NEMOCLAW_EXPERIMENTAL=1, run vLLM on port 8000

Switching Models

# Pull any model
ollama pull llama3

# Update the inference route
openshell inference set --no-verify --provider ollama-local --model llama3

# Or use NVIDIA Cloud
openshell provider create --name nvidia --type openai \
  --credential "OPENAI_API_KEY=nvapi-YOUR-KEY" \
  --config "OPENAI_BASE_URL=https://integrate.api.nvidia.com/v1"
openshell inference set --provider nvidia --model nvidia/llama-3.3-70b-instruct

🐳 Sandbox

NemoClaw runs inside a hardened OpenShell sandbox container. The sandbox is created from the community openclaw image and includes all Solana tooling pre-installed.

Creating a Sandbox

# Automated (during onboard)
nemoclaw onboard

# Manual
openshell sandbox create --name deep-solana --from openclaw

What's Inside

The sandbox container includes:

  • Solana CLI v2.2.2 β€” Full Solana toolchain
  • helius-cli β€” Helius RPC direct access
  • OpenClaw 2026.3.x β€” Agent framework
  • Python 3.13 β€” For custom scripts
  • Node.js 20+ β€” For bot runtimes
  • 43 DeFi persona JSONs β€” Agent personalities
  • Pump-Fun SDK β€” Token operations
  • Privy wallet skill β€” Encrypted key management

Sandbox Network Policies

Every outbound request from the sandbox is governed by policy. Pre-configured presets:

Preset Endpoints Allowed
solana-rpc Solana mainnet/devnet/testnet, Helius, Alchemy, QuikNode
pumpfun pump.fun APIs, Jupiter aggregator, DexScreener
privy Privy auth + wallet + policy APIs
telegram Telegram Bot API
ollama Local Ollama on host.openshell.internal:11434
npm npm registry
pypi Python package index

πŸ” Wallet Commands

Create and manage encrypted Privy agentic wallets without running the full onboard:

nemoclaw wallet create    # β†’ Prompts for Privy creds β†’ creates Solana wallet
nemoclaw wallet list      # β†’ Shows all wallets with addresses and chain types
nemoclaw wallet status    # β†’ Privy config, wallet count, default address

Private keys never leave Privy infrastructure and are never stored locally. Default spending policy: 0.1 SOL per transaction (configurable).


πŸ“‘ Telegram Bot

When the bridge is running, your agent speaks on Telegram:

🟒 Wallet Buy Detected

Our agent wallet just spent 0.05 SOL to buy a token.
Token: 4xKp...9nZe
Amount: 1,250,000
Provider: Helius RPC
View on Solscan β†’

Commands

Command Response
/start Welcome + capabilities overview
/balance SOL balance + top 8 token holdings
/holdings Detailed token positions
/status Uptime, transactions narrated, RPC provider, Privy status
/wallet Wallet address (copyable)
/rpc Current RPC endpoint and version
/lasttrade Re-narrate the most recent detected event

Event Types

Icon Event Example narration
🟒 Buy "Our agent wallet just spent 0.05 SOL to buy a token"
πŸ”΄ Sell "Our agent wallet just sold tokens and realized 0.12 SOL"
πŸ’° Received "The wallet received 1.5 SOL from 4xKp...9nZe"
πŸ“€ Sent "The wallet sent 0.01 SOL to 7bRq...2mXf"
πŸͺ™ Token "The wallet changed a token balance"
⚑ Program "The wallet executed an on-chain program interaction"

πŸ› οΈ All Commands

Global

nemoclaw onboard                   # Full 9-step setup wizard
nemoclaw solana                    # Solana status + available commands
nemoclaw solana start              # One-shot: bridge + telegram-bot + relay
nemoclaw wallet create             # Create encrypted Privy wallet
nemoclaw wallet list               # List all wallets
nemoclaw wallet status             # Wallet + Privy configuration
nemoclaw list                      # List all sandboxes
nemoclaw start / stop / status     # Manage auxiliary services
nemoclaw deploy <instance>         # Deploy to Brev GPU VM

Per-Sandbox

nemoclaw <name> connect            # Open sandbox shell
nemoclaw <name> solana-stack       # Start bridge + bot + relay together
nemoclaw <name> solana-agent       # Pump-Fun tracker bot
nemoclaw <name> solana-bridge      # Natural-language Telegram narration
nemoclaw <name> telegram-bot       # Telegram monitor + REST API
nemoclaw <name> payment-app        # Payment-gated agent
nemoclaw <name> swarm-bot          # Pump-Fun swarm dashboard
nemoclaw <name> websocket-server   # Real-time launch relay
nemoclaw <name> status             # Sandbox + Solana + wallet health
nemoclaw <name> logs --follow      # Stream logs
nemoclaw <name> policy-add         # Add network policy preset
nemoclaw <name> policy-list        # Show applied presets
nemoclaw <name> destroy            # Tear down sandbox + NIM

Inside the Sandbox

solana config set --url <rpc>      # Set RPC endpoint
solana balance                     # Check SOL balance
solana transfer <to> <amount>      # Send SOL
solana-keygen new                  # Generate keypair
solana deploy <program.so>         # Deploy a program
solana-test-validator              # Local validator (Pump programs cloned)
spl-token create-token             # Create SPL token
spl-token mint <mint> <amount>     # Mint tokens
helius-cli                         # Helius RPC tools

πŸ—οΈ Architecture

                                 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                                 β”‚   nemoclaw CLI       β”‚
                                 β”‚   (host machine)     β”‚
                                 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                           β”‚
                     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                     β”‚          OpenShell Gateway                  β”‚
                     β”‚     (network policy + inference routing)   β”‚
                     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                           β”‚
           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
           β”‚                   Sandbox Container                          β”‚
           β”‚              (Landlock + seccomp + netns)                    β”‚
           β”‚                                                              β”‚
           β”‚   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”‚
           β”‚   β”‚ Telegram Bot  β”‚ β”‚ Solana Bridge  β”‚ β”‚  WS Relay    β”‚      β”‚
           β”‚   β”‚  (monitor)    β”‚ β”‚ (narration)    β”‚ β”‚ (launches)   β”‚      β”‚
           β”‚   β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜      β”‚
           β”‚          β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜                  β”‚              β”‚
           β”‚                   β–Ό                           β”‚              β”‚
           β”‚          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                  β”‚              β”‚
           β”‚          β”‚  OpenClaw Agent  β”‚β—„β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜              β”‚
           β”‚          β”‚                 β”‚                                  β”‚
           β”‚          β”‚  β”œβ”€ 8bit/DeepSolana  (Ollama β€” auto-pulled)       β”‚
           β”‚          β”‚  β”œβ”€ Privy Wallet Skill (sign / send / policy)     β”‚
           β”‚          β”‚  β”œβ”€ Pump-Fun SDK     (@nirholas/pump-sdk)         β”‚
           β”‚          β”‚  β”œβ”€ 43 DeFi Agent Personas                        β”‚
           β”‚          β”‚  └─ Solana CLI + helius-cli                        β”‚
           β”‚          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                                  β”‚
           β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                           β”‚
                     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                     β”‚                 Ollama                      β”‚
                     β”‚     8bit/DeepSolana (localhost:11434)       β”‚
                     β”‚     Solana-tuned LLM β€” runs on CPU or GPU  β”‚
                     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ›‘οΈ Security

Protection Layers

Layer What it protects Enforcement
Network Blocks unauthorized outbound connections Hot-reloadable
Filesystem Prevents access outside /sandbox and /tmp At creation
Process Blocks privilege escalation + dangerous syscalls At creation
Inference Routes model calls through controlled gateway Hot-reloadable
Wallet Private keys managed by Privy, never in sandbox Always
Credentials ~/.nemoclaw/ with mode 600 Always
Pre-commit Git hook blocks API keys, tokens, secret files On commit

Secret Protection

  • .gitignore blocks .env, .npmrc, credentials.json, *.keypair, privy.json, helius.json
  • Pre-commit hook rejects commits containing nvapi-*, sk-*, ghp_*, AKIA*, bot tokens
  • API keys only injected at runtime from ~/.nemoclaw/ (mode 600)
  • Wallet private keys stay in Privy β€” zero local exposure

🧠 Knowledge Workspace

Inside the sandbox, the agent has local access to the full Pump-Fun corpus β€” no external fetching needed:

~/.openclaw/workspace/
β”œβ”€β”€ AGENTS.md                        # Agent identity + Solana capabilities
β”œβ”€β”€ skills/privy/SKILL.md            # Privy wallet skill (create/sign/send/policy)
└── pumpfun/
    β”œβ”€β”€ docs/                        # Protocol + SDK documentation
    β”œβ”€β”€ agent-app/                   # Tracker bot (payments, claims, buybacks)
    β”œβ”€β”€ telegram-bot/                # Telegram monitor runtime
    β”œβ”€β”€ pumpkit/                     # PumpKit packages + 6 tutorials
    β”œβ”€β”€ defi-agents/                 # 43 DeFi persona JSONs (18 locales each)
    β”œβ”€β”€ tokenized-agents-skill/      # @pump-fun/agent-payments-sdk guide
    β”œβ”€β”€ x402/                        # HTTP 402 Solana micropayment protocol
    β”œβ”€β”€ swarm-bot/                   # Multi-bot orchestration + strategies
    β”œβ”€β”€ websocket-server/            # Real-time launch relay
    β”œβ”€β”€ agent-prompts/               # PumpKit build prompts
    └── agent-tasks/                 # Scoped task specs + deliverables

DeFi Agent Personas (43 total)

Click to see all 43 personas
Category Personas
Trading Airdrop Hunter Β· Alpha Leak Detector Β· Whale Watcher Β· MEV Protection Advisor Β· DEX Aggregator Optimizer
Risk & Analysis DeFi Risk Scoring Engine Β· Liquidation Risk Manager Β· Impermanent Loss Calculator Β· Smart Contract Auditor Β· Bridge Security Analyst
Yield DeFi Yield Farmer Β· Yield Dashboard Builder Β· Yield Sustainability Analyst Β· Staking Rewards Calculator Β· Liquidity Pool Analyzer
Portfolio Portfolio Rebalancing Advisor Β· Token Unlock Tracker Β· Wallet Security Advisor
Research Crypto News Analyst Β· Narrative Trend Analyst Β· Protocol Revenue Analyst Β· Protocol Treasury Analyst Β· Governance Proposal Analyst
Education DeFi Onboarding Mentor Β· APY vs APR Educator Β· Layer2 Comparison Guide Β· Gas Optimization Expert Β· Stablecoin Comparator
Tax & Compliance Crypto Tax Strategist Β· DeFi Insurance Advisor
Protocol-Specific Pump-Fun SDK Expert Β· NFT Liquidity Advisor Β· SPA Tokenomics Analyst Β· USDS Stablecoin Expert Β· Vespa Optimizer
Sperax Suite Sperax Bridge Β· Governance Β· Liquidity Β· Onboarding Β· Portfolio Β· Risk Β· Yield
DeFi Protocol DeFi Protocol Comparator

πŸ”§ Development

# Clone
git clone https://github.com/x402agent/NemoClaw.git
cd NemoClaw
npm install

# Build plugin
npm run build:plugin

# Run tests
npm test

# Check what gets published
npm run pack:check

# Full release check (build + test + pack)
npm run release:check

# Publish
npm run publish:public

πŸ“š Learn More

Bundled Stack

Component Description
Telegram Bot Launch monitoring, graduation alerts, whale detection, REST API
PumpKit Monorepo: monitor, tracker, claim, channel, web packages + 6 tutorials
Agent App Tracker bot, payment-gated invocation, invoice flow
DeFi Agents 43 persona JSONs with 18 locale translations each
Tokenized Agents @pump-fun/agent-payments-sdk implementation guide
x402 Protocol HTTP 402 micropayment protocol for Solana
Swarm Bot Multi-bot dashboard: sniper, momentum, market-maker strategies
WebSocket Server Real-time Pump launch relay
Protocol Docs SDK reference, deployment guides, architecture

Reference Docs


License

Licensed under Apache 2.0.

About

πŸ¦€ NemoClaw β€” Autonomous Solana Trading Agent with DeepSolana, Pump-Fun SDK, Privy Wallets, Telegram Bridge

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages