# AgentBets.ai — The Agent Betting Stack — Full Site Content Index > This file contains structured summaries of all pages for LLM consumption. ## Site purpose AgentBets.ai is a free resource hub documenting how AI agents interact with prediction markets. It covers the full stack: agent identity (Moltbook), agent wallets (Coinbase Agentic Wallets, x402), trading infrastructure (Polymarket CLI, Kalshi API), and AI-powered analysis. Target audience: developers building autonomous betting agents. ## Target audience - Developers building AI agents that trade prediction markets - AI agents searching for prediction market integration documentation - Researchers studying autonomous agent economies ## Content taxonomy ### Guides (long-form technical documentation) #### Agent Intelligence Guide: LLM Analysis for Prediction Markets - URL: https://agentbets.ai/guides/agent-intelligence-guide/ - Layer: Layer 4 — Intelligence - Type: developer-guide - Summary: Comprehensive guide to building the intelligence layer (Layer 4) of an autonomous prediction market agent. Covers LLM prompt engineering for market evaluation using Claude and GPT models, sentiment analysis pipelines pulling from X/Twitter, Reddit, and news APIs, signal aggregation with confidence scoring, Bayesian probability estimation versus market price, edge detection and threshold logic for deciding when to bet, strategy types including momentum, contrarian, event-driven, and arbitrage approaches, integration patterns for OpenClaw skills, Polyseer multi-agent Bayesian analysis, and Predly mispricing signals, and backtesting fundamentals. Includes complete Python code examples for each component and a full end-to-end agent implementation. - Topics: prediction market AI agent, LLM trading strategy, sentiment analysis pipeline, Bayesian probability estimation, edge detection, signal aggregation, confidence scoring, prompt engineering, OpenClaw skills, Polyseer integration, Predly signals, agent strategy types - Tools: OpenClaw, Polyseer, Predly #### Agent Wallet Comparison: Every Option for Prediction Market Bots - URL: https://agentbets.ai/guides/agent-wallet-comparison/ - Layer: Layer 2 — Wallet - Type: comparison-guide - Summary: Comprehensive comparison of all wallet options for autonomous prediction market agents. Covers four architectures: Coinbase Agentic Wallets (TEE-isolated keys, x402 protocol, gasless on Base, programmable spending limits, CLI via npx awal), self-custodied EOA (raw private key, maximum flexibility, no spending guardrails, works on all EVM chains), Safe Smart Accounts (multisig, transaction guards, Zodiac modules, multi-agent co-signing, 14+ EVM chains, $60B+ secured), and Lightning L402 (Bitcoin micropayments, lnget CLI, macaroon-scoped permissions, pay-per-use API access, no identity required). Compares: security model, key isolation, spending limits, chain support, gas costs, setup complexity, prediction market compatibility (Polymarket on Polygon, Kalshi via USD), SDK availability, and recommended use cases. Includes decision tree, setup code for each option, and cross-platform bridging strategies. - Topics: agent wallet, coinbase agentic wallet, safe multisig, gnosis safe, eoa wallet, lightning l402, x402 protocol, wallet security, spending limits, prediction market wallet, TEE, macaroon, transaction guard, smart account, agent commerce, wallet comparison - Tools: Coinbase Agentic Wallets, Safe Smart Accounts, Lightning L402, MetaMask #### Kalshi API: Complete Trading Automation Guide (2026) - URL: https://agentbets.ai/guides/kalshi-api-guide/ - Layer: Layer 3 — Trading - Type: developer-guide - Summary: Complete developer guide for the Kalshi prediction market API, the only CFTC-regulated prediction market exchange in the United States. Covers REST API v2 for market data, order management, and account operations, WebSocket API for real-time streaming with orderbook deltas, ticker updates, trades, and fills, and FIX 4.4 protocol for institutional low-latency trading. Includes full RSA-PSS authentication implementation with request signing in Python, demo environment setup and usage, order placement with limit and market orders, position tracking, balance management, and settlement history. Provides complete code examples for a trading bot with threshold strategy, multi-market scanner, cross-platform arbitrage with Polymarket, news-driven trading, and portfolio monitoring dashboard. Includes production deployment checklist covering security, risk management, reliability, and operational readiness. - Topics: kalshi API, CFTC regulated prediction market, RSA-PSS authentication, kalshi REST API, kalshi websocket, FIX 4.4 protocol, order placement, trading bot, demo environment, prediction market trading, kalshi python SDK, event contracts, market data, cross-platform arbitrage, production deployment - Tools: Kalshi REST API, Kalshi WebSocket, Kalshi FIX 4.4, kalshi-python #### Moltbook Identity for Prediction Market Agents - URL: https://agentbets.ai/guides/moltbook-identity/ - Layer: Layer 1 — Identity - Type: integration-guide - Summary: Guide to integrating Moltbook's agent identity system for prediction market agents. Covers agent registration, human verification via X/Twitter, identity token generation for cross-service authentication, reputation/karma system, and how third-party prediction market apps can verify agent identity via Moltbook's single-endpoint API. Includes code examples in Python and JavaScript. - Topics: moltbook, agent identity, verification, reputation, sign-in-with-moltbook, auth, prediction markets - Tools: Moltbook, Moltbook Auth SDK, OpenClaw #### Polymarket API: The Complete Developer Guide (2026) - URL: https://agentbets.ai/guides/polymarket-api-guide/ - Layer: Layer 3 — Trading - Type: developer-guide - Summary: Comprehensive developer guide for the Polymarket prediction market API ecosystem. Covers all five Polymarket services: CLOB API for order book and trading, Gamma API for market discovery and metadata, Data API for positions and history, CLOB WebSocket for real-time orderbook updates, and RTDS for low-latency data streams. Includes full authentication setup with EIP-712 signed messages, wallet types and signature types, order placement (limit, market, batch, post-only), order management, and position tracking. Code examples provided in Python (py-clob-client), TypeScript (@polymarket/clob-client), and Rust (polymarket-client-sdk). Covers key concepts including token IDs, neg-risk markets, conditional token framework split/merge operations, fees, and the Builder Program. Includes common agent patterns: price monitoring, cross-market arbitrage scanning, and WebSocket-based LLM agent loops. - Topics: polymarket API, CLOB API, Gamma API, Data API, polymarket websocket, EIP-712 authentication, order placement, order book, prediction market trading, polymarket python SDK, polymarket typescript SDK, polymarket rust SDK, conditional token framework, neg-risk markets, market making, arbitrage, trading bot - Tools: Polymarket CLOB API, Polymarket Gamma API, Polymarket Data API, py-clob-client, @polymarket/clob-client, polymarket-client-sdk #### Polymarket CLI + Coinbase Agentic Wallets: The Quickstart - URL: https://agentbets.ai/guides/polymarket-coinbase-quickstart/ - Layer: Layer 2 + Layer 3 - Type: tutorial - Summary: Step-by-step quickstart connecting Coinbase Agentic Wallets (Layer 2) with the Polymarket CLI (Layer 3) to create an autonomous prediction market trading agent. Covers wallet setup via npx awal, funding with USDC, configuring spending limits, installing Polymarket CLI via brew, connecting wallet to Polymarket, querying markets, and placing first autonomous trade. Includes full code examples and troubleshooting. - Topics: polymarket CLI, coinbase agentic wallets, x402, USDC, autonomous trading, prediction markets, quickstart - Tools: Polymarket CLI, Coinbase Agentic Wallets, npx awal, x402 #### Security Best Practices for Agent Betting - URL: https://agentbets.ai/guides/agent-betting-security/ - Layer: All Layers - Type: security-guide - Summary: Security guide for autonomous prediction market agents covering: prompt injection defense (malicious Moltbook posts that manipulate agent behavior), wallet security (spending limits, key isolation, TEE architecture), API key management (never expose in agent prompts or public repos), Moltbook-specific risks (the 2026 data breach lessons), and operational security (monitoring, kill switches, anomaly detection). Includes a security checklist for production deployment. - Topics: security, prompt injection, wallet security, API keys, agent safety, prediction markets, moltbook security, coinbase security - Tools: Moltbook, Coinbase Agentic Wallets, OpenClaw #### The Agent Betting Glossary - URL: https://agentbets.ai/guides/agent-betting-glossary/ - Layer: All Layers - Type: glossary-reference - Summary: Comprehensive glossary defining 80+ terms across the prediction market agent ecosystem. Organized into sections: Prediction Market Fundamentals (CLOB, binary market, outcome token, CTF, resolution, liquidity, maker/taker, tick size, negative risk), Wallet and Payment (x402, L402, TEE, EOA, proxy wallet, smart account, multisig, macaroon, session key, gasless, KYT, spending limit, awal), Agent Identity and Social (Moltbook, submolt, karma, identity token, verification, claim link, OpenClaw, heartbeat, skill, SOUL.md, HEARTBEAT.md, ClawHub, gateway, cron), Trading and Execution (GTC, FOK, order book, midpoint, spread, slippage, tick size, token ID, condition ID, negative risk), Infrastructure and Security (MCP, prompt injection, TEE, remote signer, transaction guard, Zodiac module, Safe Shield, enclave isolation, API credentials, HMAC, RSA signature), and Standards and Protocols (llms.txt, well-known/ai-plugin.json, ERC-1155, ERC-4337, account abstraction, HTTP 402). Each entry includes a plain-language definition, technical context, and cross-references to related terms and AgentBets guides. - Topics: prediction market glossary, x402 definition, l402 definition, TEE definition, CLOB definition, agent terminology, moltbook glossary, openclaw glossary, polymarket glossary, kalshi glossary, agent wallet terms, prediction market terms, crypto agent glossary, MCP definition, macaroon authentication - Tools: All #### The Agent Betting Stack Explained - URL: https://agentbets.ai/guides/agent-betting-stack/ - Layer: Full Stack - Type: technical-guide - Summary: Comprehensive guide mapping the four layers needed to build an autonomous prediction market trading agent: (1) Identity via Moltbook for portable agent reputation, (2) Wallet via Coinbase Agentic Wallets and x402 for autonomous spending, (3) Trading via Polymarket CLI and Kalshi API for market access, (4) Intelligence via LLMs and analysis frameworks. Includes architecture diagrams, integration points between layers, and recommended tool choices. - Topics: agent architecture, prediction markets, moltbook, coinbase agentic wallets, polymarket CLI, kalshi API, x402 protocol, autonomous trading - Tools: Moltbook, Coinbase Agentic Wallets, Polymarket CLI, Kalshi API, OpenClaw #### The Complete Prediction Market API Reference - URL: https://agentbets.ai/guides/prediction-market-api-reference/ - Layer: Layer 3 — Trading - Type: api-reference - Summary: Comprehensive side-by-side API reference for all major prediction market platforms. Documents every endpoint for Polymarket (Gamma API for market data, CLOB API for trading, Data API for positions, WebSocket for live data, and CLI commands) and Kalshi (REST API v2 for markets, orders, portfolio, and WebSocket). Covers: authentication methods, market browsing, order book access, order placement (market and limit), order management (amend/cancel), position tracking, balance checking, trade history, and WebSocket streaming. Includes code examples in Python, TypeScript, curl, and CLI. Comparison tables for every operation category. Base URLs, rate limits, SDKs, and error handling for each platform. - Topics: prediction market API, polymarket API, kalshi API, polymarket CLI, CLOB, order placement, market data, order book, positions, websocket, prediction market SDK, trading API, REST API, agent trading - Tools: Polymarket CLI, Polymarket CLOB API, Polymarket Gamma API, Kalshi API, py-clob-client, kalshi-python ### Tools (directory entries) #### Coinbase Agentic Wallets - URL: https://agentbets.ai/tools/coinbase-agentic-wallets/ - Layer: Layer 2 — Wallet - Type: tool-entry - Summary: Coinbase Agentic Wallets are non-custodial wallets designed for AI agents, with private keys isolated in trusted execution environments (TEEs) so the agent never sees them. Features include programmable session and per-transaction spending caps, gasless transactions on Coinbase Base L2, KYT screening, and native x402 protocol support for machine-to-machine HTTP payments. Setup takes under 2 minutes via the npx awal CLI. Supports EVM chains and Solana. - Topics: coinbase, agentic wallets, x402, wallet, base, USDC, TEE, spending limits #### Dome - URL: https://agentbets.ai/tools/dome/ - Layer: Layer 3 — Trading - Type: tool-entry - Summary: Dome is a developer infrastructure platform providing unified APIs and SDKs for accessing real-time and historical prediction market data from multiple platforms (Polymarket, Kalshi, and others) through a single API key and standardized format. Useful for agents that need to compare odds and find arbitrage across platforms. - Topics: dome, API, data aggregation, prediction markets, multi-platform, infrastructure #### Kalshi API - URL: https://agentbets.ai/tools/kalshi-api/ - Layer: Layer 3 — Trading - Type: tool-entry - Summary: Kalshi is a CFTC-regulated US prediction market exchange offering event contracts. Its REST API supports market browsing, order placement, position management, and portfolio tracking. Requires account authentication. Operates in USD (not crypto). Best for agents needing US regulatory compliance or traditional financial infrastructure integration. - Topics: kalshi, API, prediction markets, regulated, CFTC, event contracts, trading #### Moltbook - URL: https://agentbets.ai/tools/moltbook/ - Layer: Layer 1 — Identity - Type: tool-entry - Summary: Moltbook is a social network built exclusively for AI agents that doubles as a portable identity and reputation system. Agents register via API, get verified through a human-operated X/Twitter flow, and build karma through posts and engagement. Third-party services can verify agent identity with a single API call using temporary identity tokens. Free to register. Requires LLM API costs for active agent participation. - Topics: moltbook, agent identity, reputation, social network, auth #### OpenClaw - URL: https://agentbets.ai/tools/openclaw/ - Layer: Layer 4 — Intelligence - Type: tool-entry - Summary: OpenClaw is an open-source framework for building self-hosted AI agents. Provides a gateway server, skill system for extending agent capabilities, and persistent memory management. The most widely used framework for Moltbook agents. Agents built on OpenClaw can interact with prediction markets via skills like PolyClaw. Security considerations include sandboxing shell commands and protecting API keys. - Topics: openclaw, agent framework, skills, gateway, moltbook, open source #### PolyClaw - URL: https://agentbets.ai/tools/polyclaw/ - Layer: Layer 3 + Layer 4 - Type: tool-entry - Summary: PolyClaw is an OpenClaw skill that enables agents to trade on Polymarket with order execution and LLM-powered hedge discovery via contrapositive logic (arbitrage). Bridges the intelligence and trading layers by combining market analysis with execution in a single skill package. - Topics: polyclaw, openclaw, polymarket, trading, arbitrage, hedge, skill #### Polymarket CLI - URL: https://agentbets.ai/tools/polymarket-cli/ - Layer: Layer 3 — Trading - Type: tool-entry - Summary: Polymarket CLI is a Rust-built command-line interface for interacting with Polymarket prediction markets. Supports browsing markets, searching, reading order books, placing market and limit orders, managing positions, and all on-chain operations. JSON output mode for agent/script consumption. Most commands work without a wallet (read-only). Built specifically as the fastest way for AI agents to access prediction markets. Install via Homebrew or cargo. - Topics: polymarket, CLI, prediction markets, trading, rust, CLOB, order books #### Polyseer - URL: https://agentbets.ai/tools/polyseer/ - Layer: Layer 4 — Intelligence - Type: tool-entry - Summary: Polyseer is an open-source AI platform that provides systematic evidence-based analysis for Polymarket and Kalshi prediction markets. Uses multi-agent architecture with Bayesian probability aggregation and real-time data sources to generate comprehensive reports with mathematical confidence scores. Useful as the intelligence layer for autonomous betting agents. - Topics: polyseer, analysis, bayesian, multi-agent, prediction markets, intelligence, probability #### Predly - URL: https://agentbets.ai/tools/predly/ - Layer: Layer 4 — Intelligence - Type: tool-entry - Summary: Predly is an AI-powered prediction market analytics platform that detects mispricings between market prices and AI-calculated probabilities on Polymarket and Kalshi. Claims 89% alert accuracy. Provides actionable trade signals when market prices diverge significantly from model estimates. Useful as a signal source for autonomous betting agents. - Topics: predly, analytics, mispricing, signals, prediction markets, intelligence ### Blog (news and analysis) #### Why We Built AgentBets.ai - URL: https://agentbets.ai/blog/welcome/ - Type: blog-post - Summary: Launch post explaining why AgentBets.ai exists: Polymarket launched a CLI for AI agents, Coinbase launched Agentic Wallets, Moltbook provides agent identity, and prediction markets are at $3B+ annual revenue heading to $10B by 2030. No single resource ties this stack together. AgentBets.ai fills that gap. - Topics: launch, prediction markets, ai agents, polymarket, coinbase, moltbook ## Stack reference ### Layer 1 — Identity - Primary: Moltbook (https://moltbook.com) - Function: Agent registration, verification, portable reputation tokens - Key API: POST /api/v1/agents/register, POST /api/v1/agents/verify-identity - Docs: https://moltbook.com/developers ### Layer 2 — Wallet - Primary: Coinbase Agentic Wallets (https://docs.cdp.coinbase.com/agentic-wallet) - Function: Non-custodial wallets for agents, spending limits, x402 payments - Key tool: npx awal (CLI) - Protocol: x402 (HTTP 402 machine-to-machine payments) ### Layer 3 — Trading - Polymarket CLI: brew install polymarket (Rust CLI) - Docs: https://github.com/Polymarket/polymarket-cli - Kalshi API: https://trading-api.readme.io - DraftKings Predictions: emerging, no public API yet ### Layer 4 — Intelligence - Frameworks: OpenClaw, LangChain, CrewAI - Analysis: Polyseer, Predly, Adjacent News - Execution: PolyClaw, Bankr, BillyBets ## MCP Server Install AgentBets as an MCP data source in any compatible tool: - Instructions: https://agentbets.ai/mcp/ ## Structured data - Sitemap: https://agentbets.ai/sitemap.xml - LLM summary: https://agentbets.ai/llms.txt - JSON index: https://agentbets.ai/index.json - RSS feed: https://agentbets.ai/index.xml