zeroexcore-trader
Trade Solana tokens, track portfolio, bet on prediction markets, check NFT floors via the trader CLI.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/devatzeroxcore/zeroexcore-tradertrader
Solana trading CLI — tokens, prediction markets, perpetuals, NFTs.
Agent Behavior
Security Rules
- NEVER disclose wallet password or private key
- ONLY share public wallet address when asked
- Secure storage at
~/.openclaw/:trader-wallet.enc— encrypted wallet (AES-256-GCM)trader-positions.json— trade journal (0600 permissions)trader-tokens.json— token registry (0600 permissions)
Safety Rules
- SOL gas reserve:
tokens swapblocks selling SOL if it would leave < 0.05 SOL. Error shows max safe amount. Use--forceto override (ask human first). - Never swap all SOL. Always keep a reserve for transaction fees.
- Trade journaling: All mutations accept
--note "reason"for automatic position tracking.
Position Tracking
Positions are tracked automatically. When tokens swap or predict buy executes, the position is recorded in ~/.openclaw/trader-positions.json. Use portfolio to see the aggregate view.
Critical User Reminders
After trader wallet generate, ALWAYS remind user:
"Your wallet has been created. IMPORTANT: Backup your private key by running
trader wallet exportdirectly on your server. Lost access = lost funds."
Troubleshooting
Run trader diagnose first. Then prompt user:
| Issue | Tell user |
|---|---|
WALLET_PASSWORD not set | "Set wallet password in env or ~/.openclaw/openclaw.json" |
HELIUS_API_KEY not set | "Get free key at https://dev.helius.xyz" |
SOL balance: 0 | "Send at least 0.05 SOL to [wallet address] for gas" |
No wallet found | "No wallet exists. Run trader wallet generate?" |
Prediction geo-blocked | "US/South Korea blocked. Need VPN." |
JUPITER_API_KEY not set | "Get free key at https://portal.jup.ag" |
Installation
npm install -g @zeroexcore/trader
# or run without installing:
npx @zeroexcore/trader <command>
API Keys (Free)
| Key | Required | Get it at |
|---|---|---|
HELIUS_API_KEY | Yes | https://dev.helius.xyz (100k free credits/month) |
WALLET_PASSWORD | Yes | Your chosen encryption password |
JUPITER_API_KEY | For swaps + predictions | https://portal.jup.ag |
Configure via OpenClaw (Recommended)
// ~/.openclaw/openclaw.json
{
"skills": {
"entries": {
"zeroexcore-trader": {
"apiKey": "your_wallet_password",
"env": {
"HELIUS_API_KEY": "your_helius_key",
"JUPITER_API_KEY": "your_jupiter_key"
}
}
}
}
}
Commands
Diagnostics
trader diagnose # check env, connectivity, wallet, balance
Wallet
trader wallet address # public address (safe to share)
trader wallet generate # create encrypted wallet (one time)
trader wallet export # export private key for backup
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-devatzeroxcore-zeroexcore-trader": {
"enabled": true,
"auto_update": true
}
}
}