Back to Skills

earn-hunter

Automatically monitors OKX Flash Earn, Fixed Earn and Flexible Earn opportunities, sends push notifications, and guides subscription. 自动监控 OKX 闪赚、定期和活期赚币机会,推送通知并引导申购。Use when user says: 有闪赚通知我, 监控赚币, monitor earn, notify me about earn, 定时检查理财, 执行 earn-hunter 扫描, earn-hunter scan, 活期年化高了通知我, 监控活期.

159stars26forksUpdated 8/3/2026

Security Assessment

Low Risk(88/100)

Detected risks:

Financial Transaction Facilitation(The skill can guide subscription and purchase of exchange earn products, delegating execution to a separate purchase-guide skill., It authenticates to a live crypto exchange account through the official okx CLI, so it operates against real financial credentials.)
Scheduled Execution Persistence(The skill installs a recurring OS crontab entry (or an isolated cron agent turn) that runs a bundled scan script on a schedule., It writes an environment snapshot of resolved tool paths and always re-installs the scan script into the user home directory during activation., It installs a CLI globally via npm when the okx binary is missing.)
Security Score88/100

About earn-hunter

earn-hunter is an OKX agent skill that automatically monitors OKX Flash Earn, Fixed Earn (fixed-term), and Flexible Earn (Simple Earn) opportunities, sends push notifications when qualifying opportunities appear, and guides the user through subscription. It solves the problem of watching yield opportunities continuously without manual polling: it scans the OKX earn products via the official okx CLI, applies APY thresholds and term filters, deduplicates already-notified offers using a hierarchical state file, and pushes alerts through configured channels. The recurring scan is performed entirely by a bundled shell-plus-jq script (scripts/scan.sh) triggered by the OS crontab (or an isolated cron agent turn on OpenClaw), which is designed to exit silently with no output when there are no new opportunities.

The skill performs an activation preflight: verifying the okx CLI (installing it globally via npm if missing), detecting the auth mode (API-key vs OAuth) through the official CLI, optionally installing dependent skills for purchase and auth recovery, initializing config/state under ~/.okx/earn-hunter/, and writing an env snapshot of resolved tool paths so the cron job can run under a minimal PATH. It detects the runtime platform (OpenClaw, Hermes, Claude Code, or generic), the scheduler, and the notification channel as three independent dimensions, and ships reference docs and message templates for each earn type.

It targets crypto users who want automated, thresholded alerts on OKX earn yields and a guided path to subscribe. Credentials are handled through the official okx CLI configuration rather than being requested or stored in plaintext, and there is no exfiltration. The elevated-attention items are that it establishes scheduled execution persistence via crontab, installs a global npm package, and can facilitate financial subscription/purchase actions on an exchange (delegated to a separate purchase-guide skill), which warrant review before granting it live trading credentials.

FAQ

What does earn-hunter monitor?

OKX Flash Earn, Fixed Earn (fixed-term), and Flexible Earn (Simple Earn) opportunities, filtered by configurable APY thresholds (global and per-currency overrides) and term lists, with deduplication so each offer notifies once.

What are the prerequisites?

The okx CLI (@okx_ai/okx-trade-cli, installed via npm if missing), jq for the scan script, and a logged-in auth mode (API-key or OAuth) detected through the official CLI. Optional okx-cex-earn and okx-cex-auth skills enable purchase guidance and auth recovery.

How are scans scheduled?

By the OS crontab, which runs the bundled scan.sh (shell + jq); on OpenClaw an isolated in-session cron agent turn runs the same script. The script sources an env snapshot to resolve tool paths under cron's minimal PATH.

Does it place trades automatically?

The core skill scans and notifies; subscription is a guided flow delegated to the separate okx-cex-earn skill. Because it can facilitate financial actions, review it before granting live trading credentials.

How are credentials handled?

Through the official okx CLI configuration and its auth modes; the skill does not ask for or store plaintext credentials, and it writes only resolved tool paths (not secrets) into its env snapshot.

All Files

16 files
config/default.json0.5 KB
View
references/scan-logic.md14.4 KB
View
templates/error-alert.md1.8 KB
View
config/openclaw.default.json0.1 KB
View
references/scheduler-setup.md5.7 KB
View
templates/fixed-earn.md2.8 KB
View
references/config-reference.md7.0 KB
View
scripts/scan.sh31.7 KB
View
templates/flash-earn.md2.2 KB
View
references/notify-channels.md6.9 KB
View
SKILL.md30.6 KB
View
templates/flexible-earn.md2.2 KB
View
config/claude-code.default.json0.3 KB
View
references/purchase-guide.md5.5 KB
View
templates/activation.md2.5 KB
View
templates/mixed-notify.md3.0 KB
View

Install earn-hunter

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill