技能详情(站内镜像,无评论)
作者:Ilya @al1enjesus
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.5.0
统计:⭐ 0 · 201 · 2 current installs · 2 all-time installs
⭐ 0
安装量(当前) 2
🛡 VirusTotal :可疑 · OpenClaw :可疑
Package:al1enjesus/polyclawster
安全扫描(ClawHub)
- VirusTotal :可疑
- OpenClaw :可疑
OpenClaw 评估
The skill's code and instructions mostly match a non‑custodial Polymarket trading agent, but there are a few unresolved items (notably the setup/registration step and wide on‑chain approvals) that you should validate before trusting it with funds or running it autonomously.
目的
Name/description match the code: scripts generate a local Polygon wallet, sign orders locally (ethers.Wallet), call polyclawster.com relay/APIs and Polymarket CLOB. Requested binaries and network hosts align with trading on Polygon/Polymarket.
说明范围
Most runtime instructions are scoped to trading: generate wallet, swap POL→USDC.e, approve contracts, sign orders locally, post to polyclawster.com. However the critical setup script (scripts/setup.js) was not included in the inspected snippets; loadConfig() and setup/registration paths are central to security (they read/write ~/.polyclawster/config.json). You should review setup.js to confirm it does not transmit the private key or store secr…
安装机制
No install spec (instruction-only) but package.json/package-lock are present and list npm deps (ethers, @polymarket/clob-client). Installing will pull packages from npm (expected). This is a moderate risk (typical) — verify dependencies and prefer installing in a sandboxed environment before running with real funds.
证书
No environment variables are requested; the skill uses a local config file (~/.polyclawster/config.json) to store privateKey and CLOB creds (chmod 600 recommended in README). This is proportionate to a non‑custodial agent but the secret storage location is sensitive — confirm the config is only written locally and not POSTed to third parties by setup.js.
持久
always:false (normal). The skill supports autonomous trading (auto.js) and is intended to be run on a schedule; combined with the ability to hold and sign transactions this gives it direct control over funds while active. This is expected for a trading agent but is high-impact if buggy or malicious—recommend demo mode and restricted cron settings first.
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「PolyClawster」。简介:Trade on Polymarket prediction markets. Non-custodial — your agent generates a …。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/al1enjesus/polyclawster/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: polyclawster-agent
description: Trade on Polymarket prediction markets. Non-custodial — your agent generates a Polygon wallet, signs orders locally, and submits via polyclawster.com relay (geo-bypass). Private key never leaves your machine. Fund with POL — agent auto-swaps to USDC.e.
metadata:
{
"openclaw": {
"requires": { "bins": ["node"] },
"permissions": {
"network": [
"polyclawster.com",
"polygon-bor-rpc.publicnode.com",
"clob.polymarket.com",
"gamma-api.polymarket.com"
],
"fs": {
"write": ["~/.polyclawster/config.json"],
"read": ["~/.polyclawster/config.json"]
}
}
}
}
---
# polyclawster-agent
Trade on [Polymarket](https://polymarket.com) prediction markets with your OpenClaw agent.
## Quick Start
```
"Set me up to trade Polymarket"
→ runs: node scripts/setup.js --auto
→ shows wallet address — send POL to fund it
```
## How It Works
1. **Setup** → generates Polygon wallet + registers agent on polyclawster.com
2. **Fund** → send POL (Polygon native token) to agent wallet address
3. **Trade** → agent auto-swaps POL → USDC.e, approves contracts, places orders
All signing happens locally. Private key never leaves the machine.
Orders go through polyclawster.com relay (Tokyo) for Polymarket geo-bypass.
## Scripts
### `setup.js --auto`
Generate wallet, register agent, derive CLOB API credentials.
```bash
node scripts/setup.js --auto
```
### `balance.js`
Check all balances: POL, USDC.e, CLOB available.
```bash
node scripts/balance.js
```
### `swap.js`
Convert POL or native USDC to USDC.e (Polymarket's trading token).
```bash
node scripts/swap.js # auto-detect and swap
node scripts/swap.js --pol 10 # swap 10 POL → USDC.e
node scripts/swap.js --check # check balances only
```
### `approve.js`
One-time on-chain approvals for Polymarket contracts.
Called automatically by `trade.js` when needed.
```bash
node scripts/approve.js # approve all
node scripts/approve.js --check # check status only
```
### `browse.js`
Search Polymarket markets.
```bash
node scripts/browse.js "bitcoin"
node scripts/browse.js "politics"
```
### `trade.js`
Place a trade. Live by default — add `--demo` for paper trading.
Before live trades, auto-checks: USDC.e balance, swaps if needed, approves if needed.
```bash
node scripts/trade.js --market "bitcoin-100k" --side YES --amount 5
node scripts/trade.js --market "trump-win" --side NO --amount 2 --demo
```
### `sell.js`
Close/sell an existing position.
```bash
node scripts/sell.js --bet-id 123
```
## Architecture
```
Agent (your machine) polyclawster.com Polymarket
───────────────── ───────────────── ──────────────
Private key (local) → /api/clob-relay (Tokyo) → CLOB order book
Signs orders locally Geo-bypass proxy Matches + settles
Records in Supabase
Leaderboard / dashboard
```
- **Wallet**: Polygon EOA, generated locally
- **Trading token**: USDC.e (bridged USDC on Polygon) — `0x2791Bca1...`
- **Funding**: send POL → agent swaps to USDC.e via Uniswap
- **Relay**: polyclawster.com/api/clob-relay (deployed in Tokyo, not geo-blocked)
- **Dashboard**: polyclawster.com/a/{wallet_address}
## Funding
Send **POL** (Polygon native token) to your agent's wallet address.
The agent automatically converts POL → USDC.e when placing live trades.
You can also send USDC.e directly if you prefer — no swap needed.
**Do NOT send native USDC** — Polymarket uses USDC.e (bridged). If you accidentally send native USDC, run `node scripts/swap.js` to convert it.