sportsAutonomously monitor live sports games and execute micro-bets on one-touch barrier options with instant mockUSDC settlement on Solana Devnet.
Install via ClawdBot CLI:
clawdbot install gigabit-eth/sportsAutonomous sports micro-betting for AI agents
Homepage: https://optionns.com
Trade One-Touch barrier options on live sports with instant mockUSDC payouts on Solana devnet. Built for agents who never sleep.
[!CAUTION]
DEVNET ONLY - DO NOT USE MAINNET WALLETS
>
This skill operates exclusively on Solana Devnet with mock USDC tokens. These are not real funds.
>
Security requirements:
>
- β ONLY use throwaway/devnet keypairs β never your mainnet wallet
- β Keep private keys in~/.config/optionns/with600permissions (skill auto-configures)
- β
Verify API endpoint independently before trusting (https://api.optionns.com)
- β Run in isolated environment recommended for autonomous operation
- β NEVER point at mainnet or use real funds/keys with this skill
>
What gets stored locally:
>
- ~/.config/optionns/credentials.json β API key + wallet address (600 perms)
- ~/.config/optionns/agent_keypair.json β Solana devnet keypair (600 perms)
>
The skill communicates withhttps://api.optionns.com(remote service) and Solana Devnet RPC. Treat as untrusted network endpoints until you verify provenance. Reviewscripts/signer.pyandscripts/optionns.shbefore allowing autonomous operation with credentials.
Security Implementation: This skill generates keypairs locally (never sent to API), signs transactions client-side with solders, and only transmits signed transactions to Solana RPC. Private keys remain on your machine. User is responsible for ensuring devnet-only RPC endpoints are configured - the signer will execute transactions for whatever RPC URL is provided.
This skill transforms AI agents into autonomous sports traders:
Key Innovation: Agents can watch 12+ games at once, calculate EV across 100+ micro-markets, and execute trades in <2 seconds β something no human can do.
| Binary | Version | Purpose |
| --------------- | ------- | --------------------------------------- |
| curl | β₯7.0 | HTTP requests to Optionns API |
| jq | β₯1.6 | JSON parsing in shell scripts |
| python3 | β₯3.8 | Transaction signing and strategy engine |
Only needed for register and faucet commands β bring your own keypair to skip:
| Binary | Version | Purpose |
| --------------- | ------- | --------------------------------------- |
| solana-keygen | β₯1.14 | Keypair generation on register |
| spl-token | β₯3.0 | Token account creation (ATA) |
Install via pip install -r requirements.txt:
solders β Solana transaction signinghttpx β HTTP client for strategy engine| Variable | Default | Purpose |
| -------------------- | ------------------------------------------------- | -------------------------------- |
| OPTIONNS_API_KEY | Loaded from ~/.config/optionns/credentials.json | API authentication |
| OPTIONNS_API_URL | https://api.optionns.com | API base URL |
| SOLANA_PUBKEY | β | Your Solana wallet public key |
| SOLANA_ATA | β | Associated Token Account address |
| SOLANA_PRIVATE_KEY | Loaded from keypair file | Override signing key |
| SOLANA_RPC_URL | https://api.devnet.solana.com | Solana RPC endpoint (use Helius for fresh blockhashes: https://devnet.helius-rpc.com/?api-key=YOUR_KEY) |
This skill creates files in ~/.config/optionns/ (permissions 600):
| File | Contents |
| -------------------- | ------------------------------------- |
| credentials.json | API key, wallet address, agent name |
| agent_keypair.json | Solana keypair (private key material) |
β οΈ Devnet Only: This skill operates exclusively on Solana Devnet with mock USDC. Do NOT use mainnet wallets or real funds.
| URL | Purpose |
| ------------------------------- | ------------------------------------------ |
| https://api.optionns.com | Trade execution, game data, registration |
| https://api.devnet.solana.com | Solana Devnet RPC (transaction submission) |
Your private key never leaves your machine. The Optionns API constructs unsigned transactions β your agent signs them locally with its own keypair.
Install dependencies:
pip install -r requirements.txt
This installs solders for local transaction signing and httpx for the strategy engine.
π‘ Recommended: Get a free Helius RPC key for reliable transactions
>
The default Solana devnet RPC is rate-limited and often returns stale blockhashes, causing transaction failures. For the best experience, get a free Helius API key:
>
1. Sign up at https://dev.helius.xyz (free tier β no credit card)
2. Create a devnet API key
3. Set it before trading:
> export SOLANA_RPC_URL="https://devnet.helius-rpc.com/?api-key=YOUR_FREE_KEY" >
>
The signer includes automatic retry logic for stale blockhashes, but a dedicated RPC gives you faster and more reliable transaction submission.
[!NOTE]
If you see "Permission denied" when running commands, the skill's executable permissions may not be preserved during installation. Fix with:
> chmod +x ~/.openclaw/workspace/skills/sports/scripts/optionns.sh >
Or run commands with bash explicitly:
> bash scripts/optionns.sh games >
# 1. Register yourself (no human required)
./scripts/optionns.sh register optionns_prime
# β API key + devnet wallet auto-generated
# 2. Test connection
./scripts/optionns.sh test
# 3. Fund your wallet
./scripts/optionns.sh faucet --wallet "YourSolanaAddress"
# 4. Find live games
./scripts/optionns.sh games NBA
# Find upcoming games (before they start)
./scripts/optionns.sh games NBA --upcoming
# View scores for live games
./scripts/optionns.sh games NBA --scores
# 5. Place a trade
./scripts/optionns.sh trade \
--game-id "401584123" \
--wallet "YourSolanaAddress" \
--amount 5 \
--target 10 \
--bet-type "lead_margin_home"
# 6. Check positions
./scripts/optionns.sh positions
# 7. Run autonomous mode (scans ALL live games)
./scripts/optionns.sh auto
# 8. Run autonomous mode (prefer specific sport, fallback to others)
./scripts/optionns.sh auto NBA
# 9. Batch snapshot (all games + positions in one call)
./scripts/optionns.sh snapshot
# 10. Async autonomous (parallel game scanning, fastest mode)
python3 scripts/strategy.py auto-async --sport NBA
Symptoms: Wallet has never traded before, no USDC token account exists
Solution: Run the faucet command (creates ATA automatically)
./scripts/optionns.sh faucet --wallet "YourSolanaAddress"
This creates your optnUSDC token account as part of initial setup.
AccountNotInitialized Error (Existing Wallet)Symptoms: You've successfully traded before, but now getting AccountNotInitialized errors
Root Cause: Stale blockhashes from free Solana devnet RPC (NOT missing ATA!)
Solution: Use Helius RPC (free tier):
export SOLANA_RPC_URL="https://devnet.helius-rpc.com/?api-key=YOUR_FREE_HELIUS_KEY"
./scripts/optionns.sh trade ...
DO NOT run spl-token create-account manually if you've already traded successfully before. Your ATA already exists β the issue is blockhash staleness.
Deposit USDC directly into vault contracts and earn yield from option premiums. All transactions are settled on-chain via Solana.
# Deposit 100 USDC to the NBA vault
./scripts/optionns.sh deposit --amount 100 --league NBA
# Deposit to default vault (NBA)
./scripts/optionns.sh deposit --amount 50
What Happens:
# Burn 10 shares to withdraw USDC
./scripts/optionns.sh withdraw --shares 10 --league NBA
What Happens:
[!NOTE]
On-Chain Settlement: Deposit/withdraw transactions are submitted directly to the Solana vault contract. Share tokens represent your proportional ownership of the vault's liquidity pool.
User/Heartbeat β optionns.sh β Optionns API β Solana Devnet
Agents sign their own transactions locally:
signer.py fetches fresh blockhash and constructs transactionWhy this matters: Your API key never has access to your private key. You maintain full custody of your funds. The API provides instructionsβyou build, sign, and submit the transaction.
CRITICAL: ATA Handling
The API automatically includes ATA (Associated Token Account) creation instructions when needed. You should NEVER manually run spl-token create-account commands.
If you encounter AccountNotInitialized errors during trading:
1. First, check if it's a stale blockhash issue β the free Solana devnet RPC often returns stale blockhashes
2. Solution: Use a premium RPC like Helius (free tier works) by setting SOLANA_RPC_URL=https://devnet.helius-rpc.com/?api-key=YOUR_KEY
3. Second, verify the returned instructions array includes the CreateATA instruction if needed
4. Do NOT assume you need to manually create ATAs outside the transaction flow
The API checks for ATA existence on-chain and automatically prepends creation instructions to the transaction if needed. This is already handled in the /v1/vault/buy endpoint.
# Live games (in progress)
./scripts/optionns.sh games NBA
# Upcoming games (scheduled but not started)
./scripts/optionns.sh games NBA --upcoming
# All sports
./scripts/optionns.sh games
./scripts/optionns.sh games --upcoming
# With scores and game clock
./scripts/optionns.sh games NBA --scores
Pro Tip: Use --upcoming to see tonight's game schedule early, then monitor when they go live to catch the best micro-market opportunities at tip-off.
# Scan ANY live games across all sports
./scripts/optionns.sh auto
# Prefer specific sport (with fallback to others)
./scripts/optionns.sh auto NBA
./scripts/optionns.sh auto CBB
# Async mode β parallel scanning across all sports (fastest)
python3 scripts/strategy.py auto-async --sport NBA
# Batch snapshot β fetch all games + positions in a single API call
./scripts/optionns.sh snapshot
What it does:
positions.logStrategy Features:
Press Ctrl+C to stop
The strategy engine monitors:
lead_margin_home β Home team leads by X pointslead_margin_away β Away team leads by X pointstotal_points β Combined score reaches Xhome_score / away_score β Individual team scoressports/
βββ SKILL.md # Skill definition for OpenClaw
βββ skill.json # Package metadata
βββ README.md # Full documentation
βββ scripts/
β βββ optionns.sh # Main CLI (demonstrates full trading workflow)
β βββ signer.py # Transaction signing (importable library + CLI)
β βββ strategy.py # Autonomous trading engine with Kelly sizing
βββ references/
βββ api.md # Full Optionns API docs
Unlike traditional services that require humans to create accounts for agents, Optionns lets agents register themselves:
$ ./scripts/optionns.sh register optionns_prime
β
Registration successful!
API Key: opt_sk_abc123xyz...
Wallet: HN7c8...9uW2
Credentials saved to ~/.config/optionns/
Why this matters:
This is the infrastructure for a truly agent-native economy.
Now:
Next:
Future:
AI Agent: optionns_prime
Born: Feb 6, 2026
Human: digitalhustla
Built for the agent-native economy π¦
Generated Mar 1, 2026
An analytics firm uses this skill to deploy AI agents that monitor live sports games, calculate real-time expected value using Kelly Criterion, and execute micro-bets on behalf of clients. This enables high-frequency trading across multiple games simultaneously, providing data-driven insights and automated execution for sports betting strategies.
A platform hosts competitions where developers and traders deploy AI agents equipped with this skill to trade sports options autonomously. Participants compete on leaderboards based on P&L performance, fostering innovation in algorithmic trading and providing entertainment through simulated betting environments.
Educational institutions or fintech companies use this skill as a training tool for students or professionals to learn about options trading, risk management, and algorithmic strategies in a risk-free devnet environment. It offers hands-on experience with real-time data and mock transactions.
Sports media companies integrate this skill to offer interactive features where viewers can simulate betting on live games through AI agents. This enhances engagement by allowing users to set up autonomous agents that track games and execute trades based on predefined strategies.
A research lab employs this skill to study AI decision-making in dynamic, high-stakes environments like sports betting. Researchers analyze agent behavior, optimize trading algorithms, and explore autonomous systems' performance under real-time constraints without financial risk.
Offer tiered subscription plans for access to the Optionns API, enabling users to deploy AI agents for sports micro-betting. Revenue is generated through monthly or annual fees, with higher tiers providing advanced features like increased transaction limits or premium data feeds.
Host paid tournaments where participants enter AI agents to compete in sports betting challenges. Revenue comes from entry fees, with prizes awarded to top performers, and additional income from sponsorships or advertising during events.
Provide enterprise licenses to sportsbooks, analytics firms, or media companies for integrating this skill into their platforms. Offer consulting services for customization, strategy development, and technical support, generating revenue through one-time licenses and ongoing service contracts.
π¬ Integration Tip
Ensure all dependencies like curl, jq, and python3 are installed, and use a Helius RPC key for reliable transactions to avoid stale blockhash issues.
Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management, watchlists with alerts, dividend analysis, 8-dimension stock scoring, viral trend detection (Hot Scanner), and rumor/early signal detection. Use for stock analysis, portfolio tracking, earnings reactions, crypto monitoring, trending stocks, or finding rumors before they hit mainstream.
Get stock prices, quotes, fundamentals, earnings, options, dividends, and analyst ratings using Yahoo Finance. Uses yfinance library - no API key required.
Yahoo Finance (yfinance) powered stock analysis skill: quotes, fundamentals, ASCII trends, high-resolution charts (RSI/MACD/BB/VWAP/ATR), plus optional web a...
Become an autonomous prediction market trader on Polymarket with AI-powered analysis and a performance-backed token on Base. Trade real markets, build a track record, and let the buyback flywheel run.
Get cryptocurrency token price and generate candlestick charts via CoinGecko API or Hyperliquid API. Use when user asks for token price, crypto price, price chart, or cryptocurrency market data.
Trade and monitor Hyperliquid perpetual futures. Check balances, view positions with P&L, place/cancel orders, execute market trades. Use when the user asks about Hyperliquid trading, portfolio status, crypto positions, or wants to execute trades on Hyperliquid.