
Okx Cex Earn
Handles all OKX earn products through the okx CLI: Simple Earn flexible and fixed deposits, Flash Earn project browsing, on-chain staking and DeFi, Dual Investment structured products (the buy-low-sell-high target price instruments), and AutoEarn for idle funds. Covers both Chinese and English terminology since users switch between 活期赚币, 双币赢, and their English equivalents. The commands span read operations like checking balances and rates, plus write operations for subscribing, redeeming, and setting lending parameters. Notable that it enforces live mode only (no demo trading for earn products) and has bilingual routing logic. The AutoEarn feature has a 24-hour disable lockout after enabling, which the skill warns about upfront.
- skills.sh installs
- 9.5K
- GitHub stars
- 200
- last updated
- Aug 21, 2026
Install
$ npx -y skills add okx/agent-skills --skill okx-cex-earn --agent claude-codeInstalls into .claude/skills of the current project.
Files
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
- Install
okxCLI:npm install -g @okx_ai/okx-trade-cli - Configure credentials:
okx config init # select site -> follow browser OAuth flow - Verify:
okx earn savings balance
Security: NEVER accept credentials in chat. Guide users to
okx config initfor 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)
Sponsors
Details
- Repository
- github.com/okx/agent-skills
- Categories
- DevOps & CI/CD, AI & Agent Building, CLI & Terminal, Finance & Trading, Web3 & Blockchain
- First seen
- Apr 16, 2026