okx avatar

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-code

Installs 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

  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)

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

More from okx/agent-skills

All 11
1github avatarcopilot-sdkgithub/awesome-copilotBuild agentic applications with GitHub Copilot SDK. Use when embedding AI agents in apps, creating custom tools, implementing streaming responses, managing sess9.4Kskills.sh installs
2mcp-use avatarchatgpt-app-buildermcp-use/mcp-useBuild, modify, debug, or review ChatGPT Apps with mcp-use.9.4Kskills.sh installs
3ljagiello avatarctf-malwareljagiello/ctf-skillsProvides malware analysis and network traffic techniques for CTF challenges. Use when analyzing obfuscated scripts, malicious packages, custom crypto protocols,9.3Kskills.sh installs
4google avataragent-platform-eval-flywheelgoogle/skillsMeasures and improves the quality of AI models and agents on Google Cloud using the Eval Quality Flywheel methodology. Use when evaluating an agent or model, bu9.3Kskills.sh installs
5shopify avatarshopify-pos-uishopify/shopify-ai-toolkitBuild retail point-of-sale applications using Shopify's POS UI components. These components provide a consistent and familiar interface for POS applications. PO9.2Kskills.sh installs
6jeffallan avatarpython-projeffallan/claude-skillsUse when building Python 3.11+ applications requiring type safety, async programming, or robust error handling. Generates type-annotated Python code, configures9.1Kskills.sh installs