Back to Skills

okx-cex-earn

Manages OKX Simple Earn (flexible savings/lending), Flash Earn, On-chain Earn (staking/DeFi), Dual Investment (DCD/双币赢), and AutoEarn (自动赚币) via the okx CLI. Use this skill whenever the user wants to check earn balances, browse flash-earn projects, subscribe or redeem earn products, view or set lending rates, monitor on-chain staking orders, interact with dual investment structured products, or manage auto-earn — even if phrased casually as 活期赚币, 定期赚币, 闪赚, 赚币, 申购, 赎回, 链上赚币, 质押, 理财, 双币赢, 双币理财, 双币

108stars15forksUpdated 5/5/2026

Security Assessment

Safe(100/100)
Security Score100/100

About okx-cex-earn

The `okx-cex-earn` skill provides comprehensive management of various earn products offered by OKX through its CLI, addressing the challenge of efficiently handling multiple investment and savings options on a centralized exchange. By consolidating flexible savings, flash earn, on-chain staking, dual investment, and auto-earn functionalities, this skill allows users to interact with their digital assets in a streamlined and secure manner. Users can monitor balances, subscribe to or redeem products, adjust lending rates, and track on-chain staking orders, all through structured commands, eliminating the need to manually navigate multiple interfaces or web portals.

The skill’s main features include the ability to check and manage Simple Earn balances and subscriptions, browse and participate in Flash Earn projects, handle on-chain staking orders, and interact with dual investment products such as DCD/双币赢. Additionally, it supports AutoEarn, enabling automated lending or staking of idle funds. Authentication is handled via either API keys or OAuth, ensuring secure access while guiding users through proper credential setup. The skill is fully integrated with the OKX CLI, offering read and write operations to manage products, and automatically routes users to related skills if other market, trading, or portfolio actions are requested.

This skill is ideal for cryptocurrency traders, investors, and users looking to maximize returns on idle funds on OKX. It is particularly useful for those who want a command-line interface to manage complex earn strategies without relying on the web UI, including users familiar with flexible and fixed-term savings, dual investment products, and automated staking. Target users include individuals managing multiple currencies, users seeking to optimize yields on idle assets, and anyone needing to integrate OKX earn functionality into automated workflows or scripts.

FAQ

How do I set up the okx-cex-earn skill?

First, install the okx CLI via `npm install -g @okx_ai/okx-trade-cli`. Then configure your credentials using `okx config init` and verify access with `okx earn savings balance`. Always follow the CLI setup flow to ensure secure authentication.

Can I use this skill with demo accounts?

No, OKX Earn does not support demo mode. All operations are performed in live mode. API key and OAuth authentication are both supported for secure live access.

What types of earn products can I manage with this skill?

You can manage Simple Earn (flexible/fixed savings), Flash Earn, on-chain staking, Dual Investment (DCD/双币赢), and AutoEarn (自动赚币), including subscribing, redeeming, and monitoring balances and orders.

How do I handle authentication errors?

If you encounter errors like 401, 'Session expired', or prompts to run `okx auth login`, stop the current operation and use the `okx-cex-auth` skill to re-authenticate before retrying commands.

Do I need API keys to use this skill?

API keys are one option. If an API-key profile exists in your config, use it with the `--profile` flag. Otherwise, OAuth login is supported and live mode is the default.

All Files

8 files
references/flash-earn-commands.md1.8 KB
View
references/savings-commands.md11.9 KB
View
references/onchain-commands.md4.5 KB
View
references/templates.md2.5 KB
View
references/autoearn-commands.md3.7 KB
View
SKILL.md12.4 KB
View
references/dcd-commands.md8.7 KB
View
references/workflows.md13.3 KB
View

Install okx-cex-earn

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