# Solana Clawd

> solana-clawd — an open-source Solana AI agent framework built from Clawd Code's leaked agentic engine and the SolanaOS operator runtime. TypeScript MCP server for Clawd Desktop, Cursor, VS Code, or headless node. 31+ tools for Solana trading, on-chain intelligence, wallet management, Pump.fun scanning, MawdBot trading agents, Honcho v3 memory, Privy agentic wallets, and multi-venue perp execution (Hyperliquid + Aster). Use when asked about Solana trading, memecoin analysis, Pump.fun launches, MawdBot operations, OODA loops, wallet management, token research, agentic wallets, or any SolanaOS/solana-clawd surface.

- Skill: `solizardking/solana-clawd-2` (Agent Skill, multi-file: 2710 files)
- Install (CLI): `npx get-skill add solizardking/solana-clawd-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/solizardking/solana-clawd-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- License: MIT
- Author: Solizardking (https://skillmd.com/u/solizardking)
- Updated: 2026-11-23
- Page: https://skillmd.com/skills/solizardking/solana-clawd-2

---


# solana-clawd — Complete Agent Skill

> Give this file to any AI agent (Claude, Codex, GPT-4, DeepSolana, Hermes, etc.)
> to fully install, configure, and operate solana-clawd in one shot.

```text
   _____       __                        ________                    __
  / ___/____  / /___ _____  ____ _     / ____/ /___ __      ______/ /
  \__ \/ __ \/ / __ `/ __ \/ __ `/    / /   / / __ `/ | /| / / __  /
 ___/ / /_/ / / /_/ / / / / /_/ /    / /___/ / /_/ /| |/ |/ / /_/ /
/____/\____/_/\__,_/_/ /_/\__,_/     \____/_/\__,_/ |__/|__/\__,_/

                   ╔══════════════════════════╗
                   ║   POWERED BY xAI GROK  ║
                   ╚══════════════════════════╝
```

## What You Are Installing

**solana-clawd** — Grok-powered Solana AI agent framework by 8BIT Labs.

TypeScript modules that compile to a deployable MCP server with:
- **31+ MCP tools** — Helius RPC, DAS, WebSocket, Solana market data, Jupiter swaps
- **MawdBot trading agent** — OODA loop for Solana spot, Pump.fun, memecoins
- **Honcho v3 memory** — persistent cross-session reasoning (KNOWN/LEARNED/INFERRED)
- **Privy agentic wallets** — policy-based guardrails, autonomous transactions
- **Multi-venue perps** — Hyperliquid + Aster perpetuals
- **x402 payments** — USDC-on-Solana facilitator for agent-to-agent commerce

### Links

| | |
| --- | --- |
| Repo | [github.com/x402agent/solana-clawd](https://github.com/x402agent/solana-clawd) |
| Website | [solanaclawd.com](https://solanaclawd.com) |
| $CLAWD | [8cHzQHUS2s2h8TzCmfqPKYiM4dSt4roa3n7MyRLApump](https://pump.fun/8cHzQHUS2s2h8TzCmfqPKYiM4dSt4roa3n7MyRLApump) |
| SolanaOS | [github.com/x402agent/SolanaOS](https://github.com/x402agent/SolanaOS) |
| Hub | [seeker.solanaos.net](https://seeker.solanaos.net) |
| Docs | [go.solanaos.net](https://go.solanaos.net) |

---

## Install

```bash
git clone https://github.com/x402agent/solana-clawd
cd solana-clawd
npm install
npm run build
```

### Quick Start

```bash
npm run demo       # animated feature walkthrough
npm run birth      # hatch a blockchain buddy
npm run spinners   # preview all unicode spinners
```

### Minimum `.env`

```bash
HELIUS_API_KEY=your-helius-key
HELIUS_RPC_URL=https://mainnet.helius-rpc.com/?api-key=your-key

# Optional
SOLANA_PRIVATE_KEY=your-base58-key     # For trading / wallet operations
XAI_API_KEY=your-xai-key              # For Grok vision, image, voice
PRIVY_APP_ID=your-privy-app-id       # For agentic wallet features
HONCHO_API_KEY=your-honcho-key       # For persistent memory
```

### Verify

```bash
npx solana-clawd --version
npx solana-clawd status
```

---

## MawdBot Trading Agent

**MawdBot** is the primary trading agent inside solana-clawd. It runs an OODA loop
for Solana spot trading with Pump.fun integration.

### Commands

```
/mawd status              # OODA loop state, watchlist, positions
/mawd sim                 # Switch to simulated trading mode
/mawd live                # Switch to live trading mode
/mawd scan                # Run Pump.fun scanner
/mawd buy <token> <sol>   # Buy via Jupiter
/mawd sell <token> <pct>  # Sell (supports "50%", "all")
/mawd watch <mint>        # Add to watchlist
/mawd unwatch <mint>      # Remove from watchlist
/mawd positions           # Open positions across venues
/mawd strategy             # Current strategy parameters
```

### OODA Loop

```
OBSERVE  → prices, volume, funding, OI, holders, dev-wallet
ORIENT   → RSI/EMA/ATR scoring, confidence model
DECIDE   → confidence ≥ 0.60 → size band
ACT      → Jupiter swap / Hyperliquid order / Aster order
LEARN    → persist to Honcho, feed auto-optimizer
```

### Drawdown Cascade

| Drawdown | Action |
|----------|--------|
| 5% | Reduce weakest, block Pump.fun |
| 8% | Close perps, spot-only |
| 12% | Full halt |

---

## Memory Tiers (SolanaOS Epistemology)

Three tiers: **KNOWN** (API data, expires), **LEARNED** (trade patterns, persistent), **INFERRED** (correlations, held loosely).

```
/memory                   Status + peer card
/recall <query>           AI-powered recall via dialectic
/remember <fact>          Save durable conclusion
/ask_memory <question>   Ask about yourself
/forget <query>           Delete matching memories
/dream                    Trigger memory consolidation
```

---

## Perps Trading

### Hyperliquid

```
/hl                       Account overview
/hl_positions             Open positions + PnL
/hl_open BTC long 0.01 5x    Open position
/hl_close BTC             Close position
```

### Aster (Solana-native)

```
/aster                    Account summary
/aster_positions          Open positions
/aster_open SOL long      Open position
/aster_close SOL           Close position
```

---

## MCP Tools

31 tools across 6 categories:

| Category | Tools |
|----------|-------|
| Helius RPC | account_info, balance, transactions, priority_fee |
| Solana Market | price, trending, token_info, wallet_pnl |
| Trading | pump_token_scan, pump_buy_quote, pump_sell_quote |
| Memory | memory_recall, memory_write |
| Wallet | balance, address, transfer |
| Agent | agent_spawn, agent_list, agent_stop |

---

## Key Files

| File | Purpose |
|------|---------|
| `SOUL.md` | Agent identity and epistemology |
| `STRATEGY.md` | Multi-venue strategy (SolanaOS v2.0) |
| `TRADE.md` | Pump.fun trading agent skill |
| `mcp-server/` | MCP server implementation |
| `src/` | Core engine (58 subsystems, 400+ source files) |
| `animations/` | Unicode spinners, buddy birth ceremony |
| `buddy/` | Blockchain Buddy companion system |
| `metaplex/` | Agent minting via mpl-agent-registry |

---

## One-Shot Agent Prompt

```
Read SKILL.md in the solana-clawd project root.
Follow every step. My .env values are:
  HELIUS_API_KEY=...
  SOLANA_PRIVATE_KEY=...
  XAI_API_KEY=...
Complete the full installation.
After install: npx solana-clawd status && npx solana-clawd demo
```

---

*solana-clawd v1.0.0 · MIT · github.com/x402agent/solana-clawd*
*Powered by xAI Grok · Built on Solana · SolanaOS compatible*
*x.com/clawddevs · solanaclawd.com*

