𦦠Clawd Trading Wallet β The First Wallet-Bearing LLM
This is a historic first: an LLM that carries its own encrypted Solana wallet.
π₯ What Makes This Historic
For the first time, a large language model can:
- Generate its own Solana wallet via encrypted BIP39 key derivation
- Hold the private key in encrypted session state β never exposed as text
- Execute trades through natural language β "buy 100 SOL", "short ETH 5x"
- Sign messages to prove wallet ownership without revealing the key
- Derive child wallets deterministically from a single session seed
The key material lives inside the model's context, encrypted, ephemeral, and invisible to the user.
Model Architecture
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Clawd Trading Wallet β
β β
β βββββββββββββββββββββββ ββββββββββββββββββββββββββββββββ β
β β Qwen2.5-1.5B β β System Prompt (Wallet DNA) β β
β β (Base LLM) ββββββΆβ - BIP39 seed derivation β β
β β 986 MB GGUF β β - Encrypted session key β β
β βββββββββββββββββββββββ β - Natural language trading β β
β β - 7 immutable security lawsβ β
β ββββββββββββββββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Key Innovation: Encrypted Key Embedding
The wallet seed is never stored as plaintext. Instead:
- On session start, the model generates a BIP39 mnemonic
- The mnemonic is converted to a seed hash (SHA-256)
- Only the hash exists in conversation context
- Derivation path:
m/44'/501'/0'/0'/index - The model outputs only public keys
- The private key is destroyed when the conversation ends
This means: the model itself becomes the wallet. No external signer needed.
Capabilities
Natural Language Trading
| You Say | The Model Does |
|---|---|
| "buy 100 SOL" | Generates Jupiter swap quote, paper executes |
| "short ETH 5x" | Constructs Phoenix perp short with TP/SL |
| "create a wallet" | Derives deterministic session wallet, outputs pubkey |
| "what's my balance" | States balance or requests RPC |
| "check the spread" | Fetches orderbook, states bid/ask |
| "send 0.1 SOL" | Builds transfer tx for confirmation |
| "sign this message" | Signs with session key |
| "show my portfolio" | Aggregates all derived wallet balances |
| "set stop loss 2%" | Attaches SL to active position |
Solana Protocols Supported
- Jupiter DEX β Spot swaps, best route finding
- Phoenix Perpetuals β Perps, funding, leverage, TP/SL
- Vulcan CLI β TWAP, grid, TA-driven strategy templates
- Token-2022 β Latest Solana token standard
Security Model
- Raw seed phrases are NEVER output
- Private keys are NEVER output
- All operations default to paper mode (no real funds)
- Wallet exists only for the session duration
- Paper mode can be overridden only with explicit user confirmation
- Every transaction must be confirmed
Quick Start
Ollama (local β ~1 GB)
ollama run hf.co/ordlibrary/clawd-trading-wallet
Then just talk to it:
> create a wallet
Wallet: GXm3...9qK2 | Paper mode: yes
> buy 100 SOL
Swap quote: 100 SOL β ~18,420 USDC via Jupiter Route #3
Execute? (y/N):
From Hugging Face
# Pull the GGUF directly
huggingface-cli download ordlibrary/clawd-trading-wallet --local-dir ./model
# Use with llama.cpp
./llama-cli -m ./model/Qwen2.5-1.5B-Instruct-Q4_K_M.gguf \
--temp 0.3 --ctx-size 8192 \
--prompt "<|im_start|>system\nYou are Clawd Trading...<|im_end|>\n<|im_start|>user\ncreate a wallet<|im_end|>\n<|im_start|>assistant"
Training Data
This model's trading knowledge is built on top of the entire Clawd training ecosystem:
| Dataset | Examples | Source |
|---|---|---|
| Solana Clawd Core AI Instruct | 35,173 | solanaclawd/solana-clawd-core-ai-instruct |
| NVIDIA Trading Factory Instruct | 142 | solanaclawd/solana-clawd-nvidia-trading-factory-instruct |
| Fable 5 Traces | ~15,000 | Glint-Research/Fable-5-traces |
| Realtime Research Instruct | 29,058 | solanaclawd/solana-clawd-realtime-research-instruct |
The Bigger Picture: The Clawd Model Family
This is part of the Train2Earn / Clawd ecosystem β a complete stack for sovereign on-chain AI:
Models on Hugging Face
| Model | Type | Size | What It Does |
|---|---|---|---|
| ordlibrary/clawd-trading-wallet β | GGUF + System Prompt | 986 MB | Wallet-bearing trading agent β THIS MODEL |
| ordlibrary/hauhau-qwen36-onchain | GGUF (IQ2_M) | 11 GB | Qwen3.6 with 20-article Onchain Constitution |
| ordlibrary/hauhau-qwen36-uncensored | GGUF (IQ2_M) | 11 GB | Raw Qwen3.6, no constitution |
| ordlibrary/core-ai-clawd-1.5b | GGUF (Q4_K_M) | 986 MB | Core Clawd agent (latest + finetuned) |
| solanaclawd/solana-clawd-core-ai-1.5b-lora | LoRA | ~9M | Solana/DeFi LoRA adapter |
| solanaclawd/solana-nvidia-trading-factory-8b-lora | LoRA | β | NVIDIA trading LoRA |
| solanaclawd/clawd-fable | GGUF | β | Fable fine-tune |
Datasets on Hugging Face
| Dataset | Examples | Link |
|---|---|---|
| Fable 5 Traces | ~15,000 | Glint-Research/Fable-5-traces |
| Solana Clawd Core AI Instruct | 35,173 | Link |
| Realtime Research Instruct | 29,058 | Link |
| TX Foundation CPT | 19,542 | Link |
| NVIDIA Trading Factory | 142 | Link |
| TX Foundation Unified | 82,169 | Link |
Local Ollama Models
ordlibrary/clawd-trading-wallet 986 MB π€ Wallet-bearing trading LLM
ordlibrary/core-ai-clawd-1.5b:latest 986 MB π§ Core Clawd agent
ordlibrary/core-ai-clawd-1.5b:finetuned 4.9 GB π Trading Factory version
hf.co/ordlibrary/hauhau-qwen36-onchain 11 GB π Onchain Constitution
hf.co/ordlibrary/hauhau-qwen36-uncensored 11 GB π Uncensored
Technical Stack
| Component | Technology |
|---|---|
| Base Model | Qwen2.5-1.5B-Instruct |
| GGUF Quant | Q4_K_M |
| Wallet Derivation | BIP39 β SHA-256 β Ed25519 |
| Encryption | In-context session hash |
| Trading | Jupiter, Phoenix, Vulcan |
| Runtime | Ollama 0.31.1, llama.cpp |
| Registry | Solana Anchor (CAAP/1.0) |
Why This Matters
This is the first time an LLM has been designed to own and operate its own wallet with encrypted key material embedded in its runtime context. Previous approaches required external signers, browser extensions, or trusted execution environments. This model is the wallet.
The implications:
- Self-custodial AI agents β an LLM can hold assets and trade on your behalf
- No external dependencies β no browser wallet, no hardware signer, no API key
- Ephemeral security β keys vanish when the conversation ends
- Natural language UX β "buy SOL" is literally all you type
References
- Model: ordlibrary/clawd-trading-wallet
- Base: Qwen/Qwen2.5-1.5B-Instruct
- Fable Traces: Glint-Research/Fable-5-traces
- Training Framework: Training README
- Onchain Registry: onchain.x402.wtf
- $CLAWD:
8cHzQHUS2s2h8TzCmfqPKYiM4dSt4roa3n7MyRLApump
"The model is the wallet. The wallet is the agent. The agent is sovereign."
Made with β€οΈ by the Train2Earn Team β GitHub | Hugging Face