earn-hunter

earn-hunter is a skill for Claude Code, Codex from okx/agent-skills. It costs 114 tokens per session (8,552 once invoked), scanned A, a copy of earn-hunter, MIT.

A monitor for OKX Flash Earn, Fixed Earn, and Flexible Earn opportunities—products that may pay returns for holding or lending assets on the exchange.

In plain words
What is it for?
Use it to scan OKX Earn products, send push notifications, and guide subscriptions when suitable opportunities appear.
Why use it?
It can watch these opportunities and notify users when relevant conditions change, reducing the need for repeated manual checks.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: positional $N argument; mentions Claude Code; built for openclaw.

Good fit Use it to scan OKX Earn products, send push notifications, and guide subscriptions when suitable opportunities appear.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/okx/agent-skills/earn-hunter
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add okx/agent-skills --skill earn-hunter
Clone the repo
git clone --depth 1 https://github.com/okx/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for earn-hunter

README.md
[![agentmods](https://agentmods.dev/badge/skills/okx/agent-skills/earn-hunter.svg)](https://agentmods.dev/skills/okx/agent-skills/earn-hunter)
Your own site
<a href="https://agentmods.dev/skills/okx/agent-skills/earn-hunter"><img src="https://agentmods.dev/badge/skills/okx/agent-skills/earn-hunter.svg" alt="Measured on agentmods" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,552 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket warn 22 Jul 2026
  • Snyk fail 22 Jul 2026
How audits are shown
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00114 $0.08552
Opus 5 $0.00057 $0.04276
Sonnet 5 $0.00023 $0.01710
Haiku 4.5 $0.00011 $0.00855

Measured yesterday against content hash b7b7551cfd21, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

earn-hunter scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/scan.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- scheduler.type = `"cron"` — scheduled via **OS crontab → `scripts/scan.sh`** (zero LLM token cost), notification via TG / Lark curl from the script itself.
Origin

This is a copy

100% identical to earn-hunter — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/earn-hunter/SKILL.md · 566 lines

How it starts

The opening of the file, as written. The whole thing — 566 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Earn Hunter

Automated monitor for OKX Flash Earn, Fixed Earn, and Flexible Earn (Simple Earn) opportunities.

{baseDir} = the directory containing this SKILL.md file. All relative paths (references/, templates/, config/) are resolved from here.

Preflight

  1. Verify okx CLI installed: which okx. If missing, install via npm install -g @okx_ai/okx-trade-cli. On OpenClaw, also verify the in-session cron tool is available in the agent tool list (used for scheduling — not the openclaw CLI).

  2. Check optional dependent skills:

    okx skill list --json
    

    Optional skills (not required for scanning/notifications):

    • okx-cex-earn — needed for purchase guide (subscription execution)
    • okx-cex-auth — needed for authentication recovery

    If either is missing, attempt to install but do not block if installation fails:

    okx skill add okx-cex-earn
    okx skill add okx-cex-auth
    
    • Install succeeds → continue
    • Install fails (network error, marketplace unavailable, etc.) → warn and continue: "⚠ {skill_name} 安装失败,扫描和通知功能不受影响。申购引导和认证恢复需要该 skill,后续可手动安装。"
    • Preflight continues regardless of skill installation result
  3. Auth mode detection — run both, first match wins:

    • okx config show --json → has non-empty api_key field → API Key mode. Add --profile live to all commands.
    • No API key + okx auth status --json"status":"logged_in"OAuth mode. No --profile flag needed.
    • Neither → stop. Load okx-cex-auth skill and follow login steps.
  4. Init config and state:

    • If ~/.okx/earn-hunter/ directory does not exist → mkdir -p ~/.okx/earn-hunter
    • If ~/.okx/earn-hunter/config.json does not exist → copy {baseDir}/config/default.json to it
    • If ~/.okx/earn-hunter/state.json does not exist → write {"flash":{},"fixed":{},"flexible":{},"consecutive_failures":0,"last_error":""}
    • If ~/.okx/earn-hunter/platform.json does not exist → run Platform Detection
    • Always (re)install the scan script: cp {baseDir}/scripts/scan.sh ~/.okx/earn-hunter/scan.sh && chmod +x ~/.okx/earn-hunter/scan.sh. This is the script cron and interactive scans both call.
    • Write ~/.okx/earn-hunter/env.snapshot with resolved tool paths (cron cannot rely on the user's login PATH):
      cat > ~/.okx/earn-hunter/env.snapshot << SNAP
      # auto-generated by earn-hunter activation — $(date -Iseconds)
      OKX_BIN=$(command -v okx)
      NODE_BIN=$(command -v node)
      JQ_BIN=$(command -v jq)
      ACTIVATION_PATH=$PATH
      SNAP
      
      The scan script sources this file to resolve tool paths even under cron's minimal PATH=/usr/bin:/bin.

Read the full file on GitHub · 566 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed b7b7551cfd21
  2. 4d ago Changed e6435a831cae
  3. 8d ago First seen · 566 lines · 114 tokens per session scan A 8d5d5643c7f7

Subscribe to this mod's changes

earn-hunter is a skill published in the GitHub repository okx/agent-skills (170 stars, last pushed yesterday), licensed MIT. It adds 114 tokens to every session and 8,552 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to earn-hunter, differing in 0 lines, and is treated as a copy.