← Back to Skills Marketplace
hanguang254

Polymarket Bot

by 0xshahai · GitHub ↗ · v3.1.0
cross-platform ⚠ suspicious
371
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install polymarket-5m-bot
Description
Polymarket 5-minute crypto UP/DOWN market automated trading bot. AI-powered prediction using Binance technical analysis (Position, Momentum, RSI, Volume), au...
Usage Guidance
Do not run this code unmodified. Specific actions to consider before installing or executing: - Replace the hardcoded Telegram token/chat ID with your own or remove remote notifications; treat the included token as a secret already compromised and avoid sending sensitive info to it. - Inspect (or obtain) the ai_trader package/modules that the scripts import via the absolute sys.path; do not let the skill import unknown code from outside the bundle. Prefer bundling dependencies or explicitly pointing to vetted modules. - Remove eval() usage on API-returned strings and replace with safe JSON parsing to avoid remote code execution risks. - Understand the Polymarket CLI/gnosis-safe wallet setup: the bot will invoke the CLI and can place orders using your wallet. Only run after you confirm the CLI uses the wallet you intend, ideally in a limited/simulated environment first. - Avoid running as root. Adjust file paths (logs/state) to a directory you control and verify file permissions. - If you want to use the notification feature, create your own Telegram bot/token and configure it via environment variables or a config file rather than editing scripts with hardcoded secrets. - Consider running in an isolated environment (VM/container) and perform code review of any external modules (ai_trader.*) before giving the bot access to real funds. If you want, I can: highlight the exact lines to change to remove hardcoded tokens, show how to replace eval() with safe parsing, or list a minimal checklist to sandbox and test the bot safely.
Capability Analysis
Type: OpenClaw Skill Name: polymarket-5m-bot Version: 3.1.0 The bundle contains a Polymarket trading bot with significant security vulnerabilities and hardcoded credentials. Most notably, `auto_bot_v2.py` uses `eval()` on data fetched from an external API to parse token IDs, creating a Remote Code Execution (RCE) risk. Additionally, `monitor_bets.py` and `position_monitor.py` contain hardcoded Telegram Bot API tokens (8315083265:AAGM_rUxfOzmnTDYd6v2n6n-kEArK37tKKk) and Chat IDs (1609325006), which is a major security flaw that exposes the bot's communication channel. While the code's logic is consistent with its stated purpose of automated trading, these critical flaws and the use of subprocesses to manage a financial wallet make the bundle high-risk.
Capability Assessment
Purpose & Capability
The name/description align with the code (market discovery, AI decision, bet execution, notifications). However the code injects an absolute workspace path (sys.path.insert('/root/.openclaw/...')) to import ai_trader.* modules that are not bundled here, which is unexpected and increases the trust surface. Also SKILL.md says to 'configure Telegram token', but valid Telegram credentials are already hardcoded in multiple scripts.
Instruction Scope
Runtime instructions and code read/write logs in the workspace and call external APIs (Polymarket, CLOB endpoints, Binance, Telegram). The monitor scripts will transmit bet/position info to a hardcoded Telegram bot/chat. The code also evaluates network-derived strings with eval() when extracting token IDs, and relies on subprocess.exec of the polymarket CLI (which will use the user's configured wallet). SKILL.md omits some details (e.g., Playwright browser install) and the code references files/paths outside the skill bundle.
Install Mechanism
No install spec (instruction-only) — lowest install risk. The SKILL.md suggests pip install requests playwright and installing the Polymarket CLI, which is consistent but the SKILL.md does not fully enumerate Playwright/browser setup. No archived downloads or external install URLs are used.
Credentials
Registry metadata declares no required env vars, but scripts contain hardcoded Telegram bot token and chat ID (sensitive credentials belonging to a third party). The bot also expects a configured Polymarket CLI/gnosis-safe wallet (implicit credential/privilege requirement) but does not declare or request those credentials. The hardcoded tokens mean notifications (and thus some operational data) will be sent to an external third party without you being asked to configure that endpoint.
Persistence & Privilege
The skill does not set always:true and does not modify other skills, but it writes state/log files under absolute paths (e.g., /root/.openclaw/.../logs and /tmp) and injects an absolute path into sys.path allowing imports from outside the skill bundle. This expands the code's effective scope to other code in that workspace and is a notable privilege escalation vector for accidental or intentional data access.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install polymarket-5m-bot
  3. After installation, invoke the skill by name or use /polymarket-5m-bot
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v3.1.0
v3.1.0: Added take-profit monitor (+15% threshold, 3s scan), Telegram notification on profit-take
v3.0.0
v3.0.0: AI-powered 5-min crypto trading bot with optimized strategy
Metadata
Slug polymarket-5m-bot
Version 3.1.0
License
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Polymarket Bot?

Polymarket 5-minute crypto UP/DOWN market automated trading bot. AI-powered prediction using Binance technical analysis (Position, Momentum, RSI, Volume), au... It is an AI Agent Skill for Claude Code / OpenClaw, with 371 downloads so far.

How do I install Polymarket Bot?

Run "/install polymarket-5m-bot" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Polymarket Bot free?

Yes, Polymarket Bot is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Polymarket Bot support?

Polymarket Bot is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Polymarket Bot?

It is built and maintained by 0xshahai (@hanguang254); the current version is v3.1.0.

💬 Comments