okx-cex-earn

okx-cex-earn is a skill for Claude Code, Codex from dex-original/okx-agent-trade-kit. It costs 274 tokens per session (3,222 once invoked), scanned A, a copy of okx-cex-earn, MIT.

A command-line add-on for managing OKX cryptocurrency earning products, including savings, staking, lending, and dual-investment services.

In plain words
What is it for?
Use it to check earning balances, inspect available products and rates, subscribe or redeem products, and monitor earning activity on OKX.
Why use it?
It provides a defined process for checking balances and managing these products while keeping account setup and credential handling separate from chat.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to check earning balances, inspect available products and rates, subscribe or redeem products, and monitor earning activity on OKX.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dex-original/okx-agent-trade-kit/okx-cex-earn
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 dex-original/okx-agent-trade-kit --skill okx-cex-earn
Clone the repo
git clone --depth 1 https://github.com/dex-original/okx-agent-trade-kit

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 okx-cex-earn

README.md
[![agentmods](https://agentmods.dev/badge/skills/dex-original/okx-agent-trade-kit/okx-cex-earn/github.svg)](https://agentmods.dev/skills/dex-original/okx-agent-trade-kit/okx-cex-earn)
Your own site
<a href="https://agentmods.dev/skills/dex-original/okx-agent-trade-kit/okx-cex-earn"><img src="https://agentmods.dev/badge/skills/dex-original/okx-agent-trade-kit/okx-cex-earn/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for okx-cex-earn

Your own site · 80×15
<a href="https://agentmods.dev/skills/dex-original/okx-agent-trade-kit/okx-cex-earn"><img src="https://agentmods.dev/badge/skills/dex-original/okx-agent-trade-kit/okx-cex-earn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 274 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,222 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.
Origin 95% 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.00274 $0.03222
Opus 5 $0.00137 $0.01611
Sonnet 5 $0.00055 $0.00644
Haiku 4.5 $0.00027 $0.00322

Measured 11d ago against content hash 8d183a7fbc33, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

okx-cex-earn 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 11d ago.

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.

- **Network errors:** If commands fail with a connection error, prompt user to check VPN: `curl -I https://www.okx.com`
Origin

This is a copy

95% identical to okx-cex-earn — 12 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/okx-cex-earn/SKILL.md · 232 lines

How it starts

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

OKX CEX Earn CLI

Preflight

Before running any command, follow ../_shared/preflight.md. Use metadata.version from this file's frontmatter as the reference for Step 2.

Prerequisites

  1. Install okx CLI:
    npm install -g @okx_ai/okx-trade-cli
    
  2. Configure credentials:
    okx config init   # select site -> follow browser OAuth flow
    
  3. Verify: okx earn savings balance

Security: NEVER accept credentials in chat. Guide users to okx config init for setup.


Credential & Profile Check

Run both commands before any authenticated command — the apiKey field from okx auth status --json is the auth-binary's internal state and is always false regardless of whether ~/.okx/config.toml has an API-key profile. okx config show --json is the only authoritative source for API-key presence. The auth method is detected during preflight Step 2 and remembered for the session.

okx config show --json      # reveals API-key profiles (TOML config)
okx auth status --json      # reveals OAuth session state (auth-binary state)

Apply in this order — first match wins:

  • config show --json has any profile with a non-empty api_key field → API Key mode. Proceed.
  • No API-key profile AND auth status --json returns "status":"logged_in"OAuth mode. Proceed.
  • No API-key profile AND "status":"pending" — login is in progress, wait for it to complete.
  • No API-key profile AND "status":"not_logged_in"stop, load okx-cex-auth skill and follow login steps, wait for completion.

OKX Earn does not support demo mode. Always use live mode silently — don't mention it unless there's an error.

  • API Key users: use --profile <live-profile> (the profile without demo=true).
  • OAuth users: no flag needed (live is the default).

On authentication errors (401 / "Session expired" / "Run okx auth login first"): stop immediately, load okx-cex-auth skill and follow re-authentication steps, then retry.

Read the full file on GitHub · 232 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 232 lines · 274 tokens per session scan A 8d183a7fbc33

Subscribe to this mod's changes

okx-cex-earn is a skill published in the GitHub repository dex-original/okx-agent-trade-kit (100 stars, last pushed 3mo ago), licensed MIT. It adds 274 tokens to every session and 3,222 once invoked, about $0.0014 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 95% identical to okx-cex-earn, differing in 12 lines, and is treated as a copy.

Related

Other skills, from other repositories

obai-crypto

Coinbase spot crypto research via the OBaI crypto MCP server (http://localhost:8010/mcp). Use for Coinbase spot product lookup, crypto OHLCV candles, order books, latest trades and bid/ask, single-product spot strategy backtests, and Coinbase paper-ledger strategy artifacts. Excludes derivatives, DeFi, on-chain…

sixteen-dev/obai · 93 tokens

obai-crypto-routing

Use when the user asks about Coinbase spot crypto products, crypto OHLCV, crypto order books, latest crypto trades or bid/ask, Coinbase spot strategy backtests, crypto strategy artifacts, or follow-ups on prior crypto backtests or artifacts. Excludes equities, options, Polymarket, DeFi, on-chain, and derivatives.

sixteen-dev/obai · 74 tokens

crypto-derivatives

Crypto-derivatives strategies — perpetual funding-rate arbitrage, futures term-structure contango/backwardation trading, and option volatility-smile / Greeks analysis.

HKUDS/Vibe-Trading · 37 tokens

defi-yield

DeFi yield analysis and optimization — lending rates, LP yields, staking returns, yield farming strategies, risk-adjusted yield comparison, and protocol-level sustainability assessment.

HKUDS/Vibe-Trading · 37 tokens

onchain-analysis

On-chain data analysis — active addresses / whale tracking / TVL / DEX liquidity, interpretation and signal generation using on-chain valuation metrics such as MVRV / NVT / SOPR.

HKUDS/Vibe-Trading · 43 tokens

stablecoin-flow

Stablecoin supply and flow analysis — USDT/USDC mint-burn signals, exchange stablecoin reserves, on-chain stablecoin velocity, and capital rotation indicators for crypto market timing.

HKUDS/Vibe-Trading · 41 tokens