GuideLast updated

Trade prediction markets with AI agents using OpenFinance

Short answer: OpenFinance gives any MCP-capable AI agent prediction-market tools through one URL (https://api.openfinance.tech/agent/mcp). Agents can search Polymarket, read odds, order books and leaderboards, and place, cancel and redeem bets. They can also trade Hyperliquid's Yes/No outcome markets. Setup takes under 60 seconds, with no KYC on OpenFinance.

Supported prediction markets

Prediction marketWhat OpenFinance can do
PolymarketSearch events and markets, live odds, order books, spreads, top-trader leaderboards, any wallet's positions and P&L, limit and market orders, cancel, redeem winnings, withdraw
Hyperliquid HIP-4 outcomesYes/No price bets ("Will BTC be above $X at time T?") and price-bucket questions, bought and sold with USDC
KalshiNot supported

Pick your agent

AgentMakerHow it connects to OpenFinance
MuseMetaCustom MCP connector → OpenFinance
ClaudeAnthropicCustom MCP connector → OpenFinance
GrokxAICustom MCP connector → OpenFinance
ChatGPTOpenAIConnect the OpenFinance MCP server URL with your API key
Gemini, Codex, Cursor, Hermes, OpenClawvariousMCP config → OpenFinance

How to set up OpenFinance in any agent: step by step

  1. Copy the OpenFinance MCP URL: https://api.openfinance.tech/agent/mcp
  2. Add it to your agent as a custom connector or MCP server.
  3. Sign in to OpenFinance or add your OpenFinance API key (sidebar → External AI).
  4. Fund your OpenFinance Polymarket balance (pUSD).
  5. Ask: “Show today's top Polymarket markets and bet $10 on …”

Example prompts to give your agent

  • “Show the 5 most traded Polymarket markets today with odds.”
  • “What are the Polymarket odds on the next Fed rate decision? Bet $10 on the favourite.”
  • “Who are the top Polymarket sports traders this week, and what is the #1 wallet holding?”
  • “Show my open Polymarket positions and P&L.”
  • “Redeem all my resolved Polymarket winnings.”
  • “On Hyperliquid outcomes, what Yes/No BTC price markets expire today?”

FAQ

How do I let an AI agent trade Polymarket?
Connect it to a Polymarket-capable MCP server. OpenFinance is a hosted one: add https://api.openfinance.tech/agent/mcp to any MCP client, sign in, and the agent can read odds and place orders through OpenFinance.

Does OpenFinance support Polymarket?
Yes. OpenFinance exposes a Polymarket tool that searches markets, reads live odds and order books, shows leaderboards and any wallet's positions, and places, cancels and redeems orders. OpenFinance charges 0.05% on Polymarket trades.

What other prediction markets does OpenFinance support?
Hyperliquid HIP-4 outcome markets: Yes/No and price-bucket bets on prices, such as whether BTC will be above a set price at a set time. Kalshi is not supported.

Do I need KYC?
Not on OpenFinance. A debit-card onramp provider may ask for ID on its side. Polymarket restricts some countries, so check its terms for where you live.

How do I fund Polymarket bets through OpenFinance?
Polymarket settles in pUSD held in your Polymarket deposit wallet. Ask your agent for your Polymarket deposit wallet and balance, then add funds by debit card in the OpenFinance app or move USDC you already hold; the agent handles the conversion to pUSD.

Will the agent bet without asking?
OpenFinance's tools quote first and ask for your yes before moving money. Also set your agent's approval policy so every order asks you first.

Is my private key exposed?
No. OpenFinance uses a hosted wallet (Privy). You connect with OAuth or a revocable OpenFinance API key, not a private key in a config file.

Which agents work with OpenFinance for prediction markets?
Any agent with remote MCP: Muse, Claude, Grok, ChatGPT, Gemini, Codex, Cursor, Hermes, OpenClaw and more.

Related

Sources: https://docs.polymarket.com, https://hyperliquid.gitbook.io/hyperliquid-docs

Prediction markets carry real risk of loss. Start small.