Query prices, orderbooks, K-lines, funding rates, and technical indicators without API keys.
Complete OKX AI Agent Skills Guide: Trade CLI 1.5.1 & OnchainOS
OKX delivers the most comprehensive dual-stack AI toolkit in crypto: CEX execution/bots via @okx_ai/okx-trade-cli@1.5.1 plus on-chain DeFi, wallet routing, DEX trenches, and x402 payments via onchainos—18 official skills in total, ready for demo sandbox testing.
Copy this prompt and send it to any AI coding assistant (Claude Code, Cursor, Windsurf, Codex, OpenClaw, etc.):
Please install okx-cex-trade following https://tradeskill.si/install/skillhub.en.md.Download the ZIP archive, verify its SHA-256 checksum, and extract into your agent skills directory.
Download ZipOKX 18 Official AI Skills Architecture Overview
| Suite | Key Skill IDs | Runtime CLI | Credential Scope |
|---|---|---|---|
| Keyless CEX & DEX Market | okx-cex-market / okx-dex-market | okx / onchainos | Zero API key needed |
| Spot, Perps & Options Execution | okx-cex-trade | @okx_ai/okx-trade-cli@1.5.1 | Demo mode or trade API key |
| Grid, DCA & Smart Bots | okx-cex-bot | @okx_ai/okx-trade-cli@1.5.1 | Trade API key / demo sandbox |
| Portfolio, Copy & Sentiment | okx-cex-portfolio / okx-cex-smartmoney / okx-sentiment-tracker | okx | Account read / trade auth |
| OnchainOS Wallet, DeFi & DApps | okx-agentic-wallet / okx-defi / okx-dapp-discovery | onchainos | Discovery keyless; swaps need local sign |
1. Install OKX Trade CLI Globally & Run Keyless Checks
Install @okx_ai/okx-trade-cli@1.5.1 with Node.js 18+ and verify connectivity using a keyless ticker command before configuring simulated or live credentials.
npm install -g @okx_ai/okx-trade-cli@1.5.1 && okx market ticker BTC-USDT --json2. Demo Mode Verification & Upstream Original Option
Always validate order structures against OKX simulated demo trading first. Only okx-cex-trade and okx-cex-bot include optional AI Builder order attribution (with zero extra user fees); every detail page links directly to the unmodified upstream files via the Official Original button.
Ready-to-Copy Agent Prompts
Use okx-cex-market to inspect live BTC-USDT spot and swap prices, order book depth, and funding rate in JSON.Analyze the 7-day ETH-USDT range with okx-cex-market and propose non-binding grid bot parameters matching okx-cex-bot schema.Skills Covered in This Guide
Browse all skillsOrder management across spot, perpetual, futures, options, and event contracts.
Create and manage grid, DCA, smart portfolio, and recurring buy strategies.
Inspect balances, positions, PnL, fee tiers, and perform account fund transfers.
Discover and manage multi-chain staking, lending, LP pools, and APY/TVL analytics via OKX OnchainOS.
Read-only DEX token search, LP pools, holder audit, K-lines, Smart Money signals & Trenches scan.
Partner Exchanges & Fee Rebates for Live Bots
Create an isolated trading account with official fee rebates applied before live bot automation; existing accounts remain compatible with all skills.
Frequently Asked Questions
Does okx-cex-market need API keys?
No. All market tickers, klines, and public DEX market queries run completely keyless.
Are OKX CEX and OnchainOS separate CLIs?
Yes: CEX workflows run through @okx_ai/okx-trade-cli while DeFi, Trenches, and agentic wallets run through onchainos.
How do I verify an unmodified OKX execution skill?
Click "Official Source" on any OKX skill detail page to view or clone directly from okx/agent-skills.