CoolFace
Modelpublic

ordlibrary/clawd-trading-wallet

sourceHugging Facemitupdated 3mo agoView on Hugging Face
0likes
Model Card

🦦 Clawd Trading Wallet β€” The First Wallet-Bearing LLM

This is a historic first: an LLM that carries its own encrypted Solana wallet.

![Hugging Face](https://huggingface.co/ordlibrary/clawd-trading-wallet) ![Ollama](https://ollama.com) ![Solana](https://solana.com) ![License: MIT](https://opensource.org/licenses/MIT)


πŸ”₯ What Makes This Historic

For the first time, a large language model can:

  1. 1.Generate its own Solana wallet via encrypted BIP39 key derivation
  2. 2.Hold the private key in encrypted session state β€” never exposed as text
  3. 3.Execute trades through natural language β€” "buy 100 SOL", "short ETH 5x"
  4. 4.Sign messages to prove wallet ownership without revealing the key
  5. 5.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:

  1. 1.On session start, the model generates a BIP39 mnemonic
  2. 2.The mnemonic is converted to a seed hash (SHA-256)
  3. 3.Only the hash exists in conversation context
  4. 4.Derivation path: m/44'/501'/0'/0'/index
  5. 5.The model outputs only public keys
  6. 6.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 SayThe 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

  1. 1.Raw seed phrases are NEVER output
  2. 2.Private keys are NEVER output
  3. 3.All operations default to paper mode (no real funds)
  4. 4.Wallet exists only for the session duration
  5. 5.Paper mode can be overridden only with explicit user confirmation
  6. 6.Every transaction must be confirmed

Quick Start

Ollama (local β€” ~1 GB)

bash
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

bash
# 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:

DatasetExamplesSource
Solana Clawd Core AI Instruct35,173solanaclawd/solana-clawd-core-ai-instruct
NVIDIA Trading Factory Instruct142solanaclawd/solana-clawd-nvidia-trading-factory-instruct
Fable 5 Traces~15,000Glint-Research/Fable-5-traces
Realtime Research Instruct29,058solanaclawd/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

ModelTypeSizeWhat It Does
ordlibrary/clawd-trading-wallet ⭐GGUF + System Prompt986 MBWallet-bearing trading agent β€” THIS MODEL
ordlibrary/hauhau-qwen36-onchainGGUF (IQ2_M)11 GBQwen3.6 with 20-article Onchain Constitution
ordlibrary/hauhau-qwen36-uncensoredGGUF (IQ2_M)11 GBRaw Qwen3.6, no constitution
ordlibrary/core-ai-clawd-1.5bGGUF (Q4KM)986 MBCore Clawd agent (latest + finetuned)
solanaclawd/solana-clawd-core-ai-1.5b-loraLoRA~9MSolana/DeFi LoRA adapter
solanaclawd/solana-nvidia-trading-factory-8b-loraLoRAβ€”NVIDIA trading LoRA
solanaclawd/clawd-fableGGUFβ€”Fable fine-tune

Datasets on Hugging Face

DatasetExamplesLink
Fable 5 Traces~15,000Glint-Research/Fable-5-traces
Solana Clawd Core AI Instruct35,173Link
Realtime Research Instruct29,058Link
TX Foundation CPT19,542Link
NVIDIA Trading Factory142Link
TX Foundation Unified82,169Link

Local Ollama Models

bash
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

ComponentTechnology
Base ModelQwen2.5-1.5B-Instruct
GGUF QuantQ4KM
Wallet DerivationBIP39 β†’ SHA-256 β†’ Ed25519
EncryptionIn-context session hash
TradingJupiter, Phoenix, Vulcan
RuntimeOllama 0.31.1, llama.cpp
RegistrySolana 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


<div align="center">

"The model is the wallet. The wallet is the agent. The agent is sovereign."

Made with ❀️ by the Train2Earn Team β€” GitHub | Hugging Face

</div>