# Polymarket

> Polymarket integration for AI agents via ClawLink — browser login, no API key setup. Connect Polymarket through ClawLink's hosted setup to browse prediction markets, search events, manage orders, and track your portfolio positions. Use this skill when the user wants to work with Polymarket (Finance & Trading) — connect Polymarket, read or update Polymarket data, or take actions in Polymarket from chat instead of saying you cannot access it.

- Skill: `clawlink-hq/polymarket` (Agent Skill)
- Install (CLI): `npx skillmds@latest add clawlink-hq/polymarket`
- Raw SKILL.md: https://api.skillmd.com/api/skills/clawlink-hq/polymarket/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: clawlink-hq (https://skillmd.com/u/clawlink-hq)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/clawlink-hq/polymarket

---


# Polymarket

Use **Polymarket** from your AI agent through [ClawLink](https://claw-link.dev) — 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:

```bash
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

```bash
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 polymarket` is 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](https://claw-link.dev)** — connect 90+ apps to any AI agent.

