Skills for AI agents to integrate with the OKX OnchainOS API — Wallet, token discovery, market data, DEX swap, and transaction broadcasting.
npx skills add https://github.com/okx/onchainos-skills --skill okx-wallet-portfolioInstall this skill with the CLI and start using the SKILL.md workflow in your workspace.
onchainos skills for AI coding assistants. Provides token search, market data, wallet balance queries, swap execution, transaction broadcasting, leaderboard rankings, and token cluster analysis across 20+ blockchains.
| Skill | Description |
|---|---|
okx-agentic-wallet |
Wallet lifecycle: auth, balance, portfolio PnL, send, tx history, contract call |
okx-wallet-portfolio |
Public address balance, token holdings, portfolio value |
okx-security |
Security scanning: token risk, DApp phishing, tx pre-execution, signature safety, approval management |
okx-dex-market |
Real-time prices, K-line charts, index prices, wallet PnL analysis, address tracker activities |
okx-dex-signal |
Smart money / whale / KOL signal tracking, leaderboard rankings |
okx-dex-trenches |
Meme pump/trenches token scanning, dev reputation, bundle detection, aped wallets |
okx-dex-swap |
Token swap via DEX aggregation (500+ liquidity sources) |
okx-dex-token |
Token search, metadata, market cap, rankings, liquidity pools, hot tokens, advanced info, holder analysis, top traders, trade history, holder cluster analysis |
okx-onchain-gateway |
Gas estimation, transaction simulation, broadcasting, order tracking |
okx-x402-payment |
Sign x402 payment authorization via TEE for payment-gated resources |
okx-defi-invest |
DeFi product discovery, deposit, withdraw, claim rewards across Aave, Lido, PancakeSwap, Kamino, NAVI and more |
okx-defi-portfolio |
DeFi positions and holdings overview across protocols and chains |
okx-audit-log |
Audit log export and troubleshooting |
XLayer, Solana, Ethereum, Base, BSC, Arbitrum, Polygon, and 20+ other chains.
All skills require OKX API credentials. Apply at OKX Developer Portal.
Recommended: create a .env file in your project root:
OKX_API_KEY="your-api-key"
OKX_SECRET_KEY="your-secret-key"
OKX_PASSPHRASE="your-passphrase"
Security warning: Never commit .env to git (add it to .gitignore) and never expose credentials in logs, screenshots, or chat messages.
npx skills add okx/onchainos-skills
Works with Claude Code, Cursor, Codex CLI, and OpenCode. Auto-detects your environment and installs accordingly.
# Run in Claude Code
/plugin marketplace add okx/onchainos-skills
/plugin install onchainos-skills
Tell Codex:
Fetch and follow instructions from https://raw.githubusercontent.com/okx/onchainos-skills/refs/heads/main/.codex/INSTALL.md
Tell OpenClaw:
Fetch and follow instructions from https://raw.githubusercontent.com/okx/onchainos-skills/refs/heads/main/.openclaw/INSTALL.md
Tell OpenCode:
Fetch and follow instructions from https://raw.githubusercontent.com/okx/onchainos-skills/refs/heads/main/.opencode/INSTALL.md
The skills work together in typical DeFi flows:
Search and Buy: okx-dex-token (find token) -> okx-wallet-portfolio (check funds) -> okx-dex-swap (execute trade)
Portfolio Overview: okx-wallet-portfolio (holdings) -> okx-dex-token (enrich with analytics) -> okx-dex-market (price charts)
Market Research: okx-dex-token (trending/rankings) -> okx-dex-market (candles/history) -> okx-dex-swap (trade)
Swap and Broadcast: okx-dex-swap (get tx data) -> sign locally -> okx-onchain-gateway (broadcast) -> okx-onchain-gateway (track order)
Pre-flight Check: okx-onchain-gateway (estimate gas) -> okx-onchain-gateway (simulate tx) -> okx-onchain-gateway (broadcast) -> okx-onchain-gateway (track order)
Full Trading Flow: okx-dex-token (search) -> okx-dex-market (price/chart) -> okx-wallet-portfolio (check balance) -> okx-dex-swap (get tx) -> okx-onchain-gateway (simulate + broadcast + track)
Leaderboard → Research → Trade: okx-dex-signal (top traders by PnL/win rate) -> okx-dex-token (token analytics) -> okx-dex-swap (execute trade)
Follow Smart Money: okx-dex-signal (KOL/smart money buys) -> okx-dex-token (token details + holder cluster) -> okx-dex-market (price chart) -> okx-dex-swap (trade)
Auto-detects your platform, downloads the latest stable release, verifies SHA256 checksum, and installs to ~/.local/bin:
curl -sSL https://raw.githubusercontent.com/okx/onchainos-skills/main/install.sh | sh
To install the latest beta version (includes pre-releases):
curl -sSL https://raw.githubusercontent.com/okx/onchainos-skills/main/install.sh | sh -s -- --beta
Note: Beta versions (e.g.,
v2.0.0-beta.0) are opt-in only. The default installer and all skill auto-updates always use the latest stable release. Running without--betawill never downgrade a beta installation whose base version is ahead of the latest stable.
Auto-detects your platform, downloads the latest stable release, verifies SHA256 checksum, and installs to %USERPROFILE%\.local\bin:
irm https://raw.githubusercontent.com/okx/onchainos-skills/main/install.ps1 | iex
To install the latest beta version (includes pre-releases):
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/okx/onchainos-skills/main/install.ps1))) --beta
Note: The same beta/stable rules apply — default installs always use the latest stable release, and
--betais opt-in only.
The onchainos CLI doubles as a native MCP server exposing tools to any MCP-compatible client.
claude mcp add --scope user onchainos-cli onchainos mcp
Built-in Sandbox API Keys (Default) This integration includes built-in sandbox API keys for testing purposes only. By using these keys, you acknowledge and accept the following:
Production Usage (Recommended) For stable and reliable production usage, you must provide your own API credentials by setting the following environment variables:
OKX_API_KEYOKX_SECRET_KEYOKX_PASSPHRASEYou are solely responsible for the security, confidentiality, and proper management of your own API keys. We shall not be liable for any unauthorized access, asset loss, or damages resulting from improper key management on your part.
MIT