PolyClaw for Openclaw

An automated trading and market analysis skill for Polymarket on the Polygon network.

woody2434
v0.1.0
Mar 4, 2026
0
1.2k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install polyclaw-2

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install polyclaw-2 using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is PolyClaw?

PolyClaw is a sophisticated trading-enabled skill designed to bridge the gap between AI agents and prediction markets. By integrating directly with Polymarket on the Polygon network, it allows developers and researchers to browse markets, manage wallets, and execute complex trading strategies programmatically. This tool is a high-value asset for anyone looking to expand their portfolio of Openclaw Skills with decentralized finance capabilities.

The skill provides a robust framework for executing trades through a split-and-sell mechanism, ensuring liquidity even in volatile markets. Beyond simple trading, PolyClaw incorporates LLM-powered analysis to identify logical hedges, allowing users to discover covering portfolios through contrapositive logic and tier-based risk assessment.

PolyClaw Use Cases

  • Programmatically browsing and searching trending prediction markets.
  • Executing automated YES/NO trades using split + CLOB execution for better capital efficiency.
  • Tracking real-time positions with automated P&L calculations.
  • Using LLMs to discover and analyze cross-market hedges and near-arbitrage opportunities.

How PolyClaw Works

  1. The user configures their wallet and environment variables to connect to the Polygon network.
  2. A market search is performed to identify trading opportunities or logical implications.
  3. To execute a trade, the skill splits USDC.e into YES and NO tokens via the Conditional Tokens Framework (CTF) contract.
  4. PolyClaw immediately sells the unwanted side of the trade on the Central Limit Order Book (CLOB).
  5. The user is left with the desired position at a net cost calculated from the recovered liquidity of the unwanted tokens.

PolyClaw Setup

# Navigate to the skill directory and install dependencies
cd polyclaw
uv sync

# Set required environment variables
export CHAINSTACK_NODE="your_polygon_rpc_url"
export POLYCLAW_PRIVATE_KEY="your_evm_private_key"
export OPENROUTER_API_KEY="your_openrouter_key"

# Perform one-time contract approvals (costs ~0.01 POL)
uv run python scripts/polyclaw.py wallet approve

PolyClaw Data Schema & Taxonomy

Component Data Description Purpose
Markets ID, Volume, Question, JSON metadata Market discovery and detail analysis
Wallet Balances (POL, USDC.e), Approval status Fund management and readiness checks
Positions Entry Price, Current Price, P&L Performance tracking and portfolio monitoring
Hedge Logic Tier (1-4), Coverage %, Net Cost Risk management via LLM-driven logical implications

PolyClaw Advanced Features

  • Residential proxy support with automatic IP rotation to bypass Cloudflare CLOB rate limits.
  • LLM-powered hedge discovery using OpenRouter models to identify contrapositive market correlations.
  • Tiered coverage filtering for hedging, allowing users to prioritize near-arbitrage (Tier 1) opportunities.
  • Full JSON output support for all CLI commands, enabling seamless integration into automated agent workflows and Openclaw Skills ecosystems.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins uv
Github Stars: 0
forks: 0

Featured*