OKX Deep Dive6 min readOKX

Complete OKX AI Agent Skills Guide: Trade CLI 1.5.1 & OnchainOS

TL;DR

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.

Quick Install Starter Skill (okx-cex-trade)

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.

OKX 18 Official AI Skills Architecture Overview

SuiteKey Skill IDsRuntime CLICredential Scope
Keyless CEX & DEX Marketokx-cex-market / okx-dex-marketokx / onchainosZero API key needed
Spot, Perps & Options Executionokx-cex-trade@okx_ai/okx-trade-cli@1.5.1Demo mode or trade API key
Grid, DCA & Smart Botsokx-cex-bot@okx_ai/okx-trade-cli@1.5.1Trade API key / demo sandbox
Portfolio, Copy & Sentimentokx-cex-portfolio / okx-cex-smartmoney / okx-sentiment-trackerokxAccount read / trade auth
OnchainOS Wallet, DeFi & DAppsokx-agentic-wallet / okx-defi / okx-dapp-discoveryonchainosDiscovery 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 --json

2. 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

Keyless BTC Market Check
Use okx-cex-market to inspect live BTC-USDT spot and swap prices, order book depth, and funding rate in JSON.
Draft ETH Grid Parameters
Analyze the 7-day ETH-USDT range with okx-cex-market and propose non-binding grid bot parameters matching okx-cex-bot schema.

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.

OKX20% Rebate

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.