Bet on anything, now anywhere

Integrate with Poll using the CLI, connect AI assistants via MCP, build with the TypeScript SDK, or issue scoped API tokens.

Terminal

Install in one line

$ npm install -g @solworks/poll-cli

Then run poll auth login to connect your account.

What you can do

Bet from your terminal

Browse, wager, and track bets without leaving the command line.

Terminal
CLI Reference

Connect your AI

27 tools for Claude, Cursor, or any MCP client.

claude_desktop_config.json
{
  "mcpServers": {
    "pollfun": {
      "command": "npx",
      "args": ["@solworks/poll-mcp"],
      "env": {
        "POM_API_TOKEN": "polld_xxxxx"
      }
    }
  }
}
MCP Server

Scoped access

Tokens grant only the permissions you allow.

readBrowse bets, portfolio, leaderboard
betCreate, wager, vote, settle
profileUpdate display name
socialFriends, favourites

Private keys, account deletion, and fund transfers are never accessible via tokens.

Authentication

Let AI bet for you

Natural language in, wagers out.

you

“Put $50 on BTC hitting 100k”

search_bets("BTC 100k")
place_wager(42, "Yes", 50)
✓ Placed $50 on “Yes” for “Will BTC hit $100k?”
MCP Documentation

Build with the TypeScript SDK

Full on-chain access. Create bets, place wagers, vote, and settle — directly from your application.

sdk.initializeBetV2()

Create prediction markets

sdk.placeWagerV2()

USDC wagers on-chain

sdk.settleBetBatchV2()

Distribute winnings

SDK Reference

Zero to wager in 30 seconds

1

Install

$ npm install -g @solworks/poll-cli

One package, zero config.

2

Login

$ poll auth login
✓ Logged in successfully

Browser opens, approve, done.

3

Browse

$ poll bets trending
1 Will BTC hit $100k? $12,450 3d
2 Lakers win tonight? $8,200 8h

See what people are betting on.

4

Wager

$ poll bets wager 1 --amount 50 --option Yes
✓ Wager placed: $50 on "Yes"

Your first bet from the terminal.