precog
Trade on prediction markets. Create a local wallet, list markets, check prices, buy and sell outcome shares. Coming soon: create and fund markets directly from this skill.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/0xastraea/opencogPrecog Prediction Markets
Precog is a fully onchain prediction market protocol on Base. Anyone can create a market around a real-world question, fund it with liquidity, and trade outcome shares. Prices equal implied probabilities (0–1). Every action is a signed onchain transaction — no custody, no central party.
MATE is a non-monetary practice token (no real economic value). Markets denominated in MATE are safe to use for learning and experimentation. MATE can be claimed at matetoken.xyz.
What you can do here:
- Browse active prediction markets and outcome probabilities
- Get detailed market info including category and resolution criteria
- Quote, buy, and sell outcome shares using your local wallet
- Check your positions (shares held, net cost, trade history)
🚧 Coming soon: Native market creation — submit and fund new markets directly from this skill without visiting the web UI.
For full protocol documentation see PRECOG.md — it covers prediction markets 101, the LS-LMSR pricing curve, resolution via Reality.eth + Kleros, LP mechanics, MATE markets, and more.
Contract addresses and RPCs are built in — no config needed.
Networks
The default network is Base Sepolia (testnet). No flag needed for testnet — scripts connect to sepolia unless told otherwise.
Two networks are supported. Pass --network <name> to any script, or set PRECOG_NETWORK in your environment.
| Network | --network value | Chain | Contract |
|---|---|---|---|
| Base Sepolia (testnet) | sepolia ← default | Base Sepolia (84532) | 0x61ec71F1Fd37ecc20d695E83F3D68e82bEfe8443 |
| Base Mainnet | mainnet | Base (8453) | 0x00000000000c109080dfa976923384b97165a57a |
⚠️ Mainnet uses real funds. Before running any mainnet command, confirm the network with the user and show the contract address. Do NOT default to mainnet — always require an explicit
--network mainnetflag or aPRECOG_NETWORK=mainnetenv var set by the user.
Security and local state
~/.openclaw/.env— created bysetup.mjs --generate. StoresPRIVATE_KEYin plaintext. Treat it like a wallet key file: restrict permissions (chmod 600) and back it up. Losing it means losing access to any funds in that wallet.- No key is ever transmitted. Transactions are signed locally; only the signed transaction is broadcast to the RPC.
- Use a throwaway wallet. The MATE markets use a practice token with no real value — ideal for testing. Do not load a high-value key into this skill.
- Custom RPC risk. If you set
PRECOG_RPC_URL, use only a trusted endpoint.
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-0xastraea-opencog": {
"enabled": true,
"auto_update": true
}
}
}