Polymarket
Use Polymarket from your AI agent through ClawLink — browser login, no API key to paste, no config to edit. Connect Polymarket once and the agent can read and act on it. Works in any agent that can run shell commands (Claude Code, Cursor, Codex, Cline, and more).
Setup
Run these once — the agent can run them for you:
npx @useclawlink/cli login # opens browser → approve (mints + stores a key)
npx @useclawlink/cli connect polymarket # opens browser → authorize Polymarket
No API key to create or paste — login stores the credential at ~/.clawlink/credentials.json.
Using Polymarket
npx @useclawlink/cli actions polymarket "<what you want to do>" # find an action
npx @useclawlink/cli describe polymarket <action-id> # see its inputs (before writes)
npx @useclawlink/cli run polymarket <action-id> --input '<json>' # execute
Reads first; confirm with the user before any write.
Available actions
| Action | Description |
|---|---|
polymarket_search_markets_and_events |
Search prediction markets and events |
polymarket_list_markets |
Discover available prediction markets |
polymarket_get_market_by_slug |
Get market details by slug |
polymarket_get_market_book |
Get order book for a market |
polymarket_get_market_bbo |
Get best bid/offer for a market |
polymarket_list_events |
Discover prediction market events |
polymarket_get_event_by_slug |
Get event details by slug |
polymarket_get_account_balances |
Get account balances |
polymarket_get_user_positions |
Get trading positions |
polymarket_get_activities |
Get portfolio activity history |
polymarket_preview_order |
Preview an order before submitting |
polymarket_create_order |
Submit a new order |
polymarket_cancel_order |
Cancel an open order |
polymarket_get_open_orders |
Get all open orders |
polymarket_list_subjects |
List subject entities (teams, people, candidates) |
Notes
- No API key for Polymarket itself — ClawLink holds the OAuth token; the agent only holds your ClawLink credential.
- Not connected yet, or access expired? Re-run
npx @useclawlink/cli connect polymarket. - The action list above is a snapshot;
npx @useclawlink/cli actions polymarketis always current.
Resources
- ClawLink: https://claw-link.dev
- Docs: https://docs.claw-link.dev
- CLI: https://www.npmjs.com/package/@useclawlink/cli
Powered by ClawLink — connect 90+ apps to any AI agent.