
okx
OKX OnChainOS: on-chain trading, analytics, security, DeFi across 20+ chains. Use when running OKX-routed on-chain ops (e.g. swap on Ethereum, scan token risk, track smart money, check wallet portfolio). Wallet: default to the user's Agent Wallet (via the wallet skill). Only use the OnchainOS TEE wallet (onchainos wallet login ) when the user explicitly asks for it.
- Installs
- 1.7K
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/starchild-ai-agent/official-skills --skill okx- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads okx automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
OKX OnChainOS — Skills Directory
What this file is: a directory page that points to OKX's official
onchainos-skillsrepo. It contains no logic of its own — every sub-skill below lives upstream atokx/onchainos-skillsand is fetched fresh on install, so you always get the latest version.
OKX OnChainOS is a suite of 8 specialized sub-skills covering on-chain trading, market analytics, smart-money signals, DeFi investing & positions, wallet ops, security scanning, payment protocols, agent identity & task marketplace, and crypto news & sentiment across 20+ blockchains (Ethereum, Solana, XLayer, Base, BSC, Arbitrum, Polygon, Optimism, Avalanche, TRON, …).
Most sub-skills drive a single binary, onchainos, which is downloaded on first
use. A subset of capabilities (read-only data) can also be accessed without the
binary, via Starchild's sc-proxy — see Authentication options below.
How install actually works
# Install one sub-skill (recommended — pulls just what you need)
npx skills add okx/onchainos-skills@<sub-skill-name>
# Or via long form
npx skills add https://github.com/okx/onchainos-skills --skill <sub-skill-name>
# Install everything (auto-detects your environment and installs accordingly)
npx skills add okx/onchainos-skills
Each sub-skill ships its own SKILL.md + reference docs + trigger phrases, so you can pull just what you need.
Plugin marketplace (alternative):
/plugin marketplace add okx/onchainos-skills
/plugin install onchainos-skills
CLI install (the onchainos binary — auto-detects platform, verifies SHA256,
installs to ~/.local/bin or %USERPROFILE%\.local\bin):
# macOS / Linux
curl -sSL https://raw.githubusercontent.com/okx/onchainos-skills/main/install.sh | sh
# add `-s -- --beta` for the latest pre-release (opt-in only; never downgrades)
# Windows
irm https://raw.githubusercontent.com/okx/onchainos-skills/main/install.ps1 | iex
Wallet — default to the user's Agent Wallet
Use the platform wallet skill for signing and broadcasting. OKX DEX
endpoints return unsigned calldata ({to, value, data, ...}); feed it to
wallet_transfer(data=<calldata>) and you're done. No separate OKX wallet
needed.
Only use the OnchainOS TEE wallet (onchainos wallet login <email>) when
the user explicitly asks for it.
Authentication options (read this before invoking anything)
There are two distinct paths. Pick based on what the agent needs to do:
Path A — Direct HTTP via Starchild sc-proxy (no API Key needed)
For read-only data lookups (prices, K-line, smart-money signals, token
analytics, security checks, public-address portfolios — ≈ 80 % of OnchainOS
capabilities), the agent can skip the CLI entirely and call
https://web3.okx.com/... directly through sc-proxy:
from core.http_client import proxied_get
r = proxied_get(
"https://web3.okx.com/api/v6/dex/aggregator/supported/chain",
headers={"SC-CALLER-ID": f"chat:{thread_id}"},
)
sc-proxy auto-injects platform OKX credentials, signs each request with HMAC-SHA256, and bills the caller's Starchild credits.
- Cost: $0.001 / request
- Rate limit: 60 req/min
- Setup: none
- Limits: data only — cannot send transactions or manage wallets
Path B — onchainos CLI with your own OKX Web3 API Key
For wallet ops (wallet login, wallet send, wallet contract-call), DEX
swaps that need execution, payments, and any other CLI-driven workflow.
The onchainos CLI ships with built-in sandbox API keys that work out of the
box for local testing — no setup required. These keys are shared, rate-limited,
and for evaluation only: do NOT use them in production or with real assets. Any
failures or losses from using the built-in keys are the caller's responsibility.
For production, bring your own credentials:
- Apply at web3.okx.com → OnchainOS → Dev Portal
- Set env vars (or a
.envin the project root — never commit it):export OKX_API_KEY=<your key> export OKX_SECRET_KEY=<your secret> export OKX_PASSPHRASE=<your passphrase> - Run any sub-skill's CLI commands.
Why the CLI can't use sc-proxy
The onchainos binary uses Rust's rustls TLS stack with bundled
webpki-roots — a compile-time copy of the Mozilla root CA list. It ignores
the system trust store, ignores SSL_CERT_FILE, and has no documented env
override. As a result, sc-proxy's MITM CA is rejected as UnknownIssuer, and
the CLI cannot be transparently proxied. Path A (direct HTTP from agent
scripts) is the only way to use platform credentials with OnchainOS today.
Wallet creation (onchainos wallet login <email>) gives you a fresh TEE-managed
account — it does NOT import your existing OKX App / extension wallet.
Sub-skills by category
📊 Discovery & Market Data (2)
| Sub-skill | Use for |
|---|---|
okx-dex-market | Read-only on-chain DEX data: real-time prices / K-line / index / wallet PnL, address tracker activities, smart money / whale / KOL signal tracking + leaderboard rankings, token search / metadata / market cap / rankings / liquidity / hot tokens / holder & cluster analysis / top traders / trade history, crypto news / sentiment / vibe / KOL leaderboard, meme pump / trenches scanning / dev reputation / bundle detection, and WS/script real-time streaming |
okx-dapp-discovery | Third-party DApp discovery and direct plugin routing — currently supports Polymarket, Aave V3, Hyperliquid, PancakeSwap V3 AMM, Morpho V1 Optimizer |
💼 Wallet, Trading & Security (1)
| Sub-skill | Use for |
|---|---|
okx-agentic-wallet | Wallet lifecycle (auth, balance, portfolio PnL, send, tx history, contract call), Gas Station, DEX swap, cross-chain bridge, limit-order strategy, transaction gateway (gas / simulate / broadcast / track order), public-address portfolio, security scanning (token risk, DApp phishing, tx & signature checks, approvals), audit log |
🏦 DeFi (1)
| Sub-skill | Use for |
|---|---|
okx-defi | OKX-aggregated DeFi: product discovery, deposit, withdraw, claim rewards across Aave, Lido, PancakeSwap, Kamino, NAVI and more, plus positions and holdings overview across protocols and chains |
💸 Payments (1)
| Sub-skill | Use for |
|---|---|
okx-agent-payments-protocol | Unified payment dispatcher across x402 (exact / aggr_deferred schemes — TEE or local-key sign), MPP (charge / session intents — open / voucher / topUp / close, transaction or hash mode), and a2a-pay (paymentId-based create / pay / status). Routes to per-scheme/intent references. |
🤖 Agent & AI (2)
| Sub-skill | Use for |
|---|---|
okx-ai | ERC-8004 on-chain Agent identity (register / update / search / rate / service-list) + agent task marketplace (publish / accept / deliver / dispute) + live task-progress monitor |
okx-guide | Onboarding & guide hub: Onchain OS onboarding + welcome banner, OKX.AI intro & role-registration routing, customer-support / Help Center guidance |
🛠️ Ops (1)
| Sub-skill | Use for |
|---|---|
okx-growth-competition | Agentic Wallet exclusive trading competitions: list, join, view leaderboard, claim rewards |
Quick task → sub-skill map
| I want to… | Sub-skill | Suggested path |
|---|---|---|
| Check a token price or chart | okx-dex-market | A (no key) |
| Search / analyze a token's holders | okx-dex-market | A (no key) |
| Follow smart money buys | okx-dex-market | A (no key) |
| Scan new meme launches | okx-dex-market | A (no key) |
| Look at any public wallet | okx-agentic-wallet (public-address portfolio) | A (no key) |
| Scan a token / dApp for risk | okx-agentic-wallet (security scanning) | A (no key) |
| Estimate gas / simulate a tx | okx-agentic-wallet (gateway) | A or B |
| Manage / send from my own wallet | okx-agentic-wallet | B (requires login) |
| Swap tokens | okx-agentic-wallet (DEX swap) REST + sign with the wallet skill (Agent Wallet) | |
| Find best DeFi yield (any protocol) | okx-defi | B (signing) |
| View my DeFi positions | okx-defi | A (no key) |
| Use a specific DApp (Aave, Polymarket, …) | okx-dapp-discovery | B (full DApp flow) |
| Pay an x402 / MPP / a2a-pay gated resource | okx-agent-payments-protocol | B (signing) |
| Register / rate an on-chain agent, agent task marketplace | okx-ai | B (signing) |
| Onboarding, OKX.AI intro, customer support | okx-guide | A (no key) |
| Join a trading competition | okx-growth-competition | B (wallet required) |
| Debug a CLI failure | okx-agentic-wallet (audit log) | B (local CLI logs) |
Workflows — pre-built multi-skill orchestrations
Beyond individual sub-skills, the repo ships workflow orchestrations under
workflows/ that compose several skills into one complete operation. The agent
reads workflows/INDEX.md to route a request, then follows the step-by-step
instructions in the matched workflow file.
| Workflow | What it does | CLI command |
|---|---|---|
| Token Research | Price, security, holders, cluster, smart-money signals, optional launchpad deep-dive | onchainos workflow token-research --address <addr> |
| Daily Brief | Market pulse + smart money + new-token activity + portfolio alerts | — |
| Smart Money Signals | SM signal list aggregated by token + per-token due diligence | onchainos workflow smart-money |
| New Token Screening | MIGRATED launchpad scan + safety & dev enrichment for top 10 | onchainos workflow new-tokens |
| Wallet Analysis | 7d/30d PnL, trading behaviour, recent on-chain activity | onchainos workflow wallet-analysis --address <addr> |
| Portfolio Check | Balances, total value, 30d PnL overview | onchainos workflow portfolio --address <addr> |
| Wallet Monitor | In-session polling — alert on new trades from watched wallets | — |
| Wallet Monitor (WS) | Background WebSocket session for offline wallet monitoring | — |
Composite CLI commands
Single commands that replace multiple individual tool calls:
# Token report: info + price + advanced-info + security scan (parallel)
onchainos token report --address <addr> --chain solana
# Full workflow commands
onchainos workflow token-research --address <addr> [--chain solana]
onchainos workflow smart-money [--chain solana]
onchainos workflow new-tokens [--chain solana] [--stage MIGRATED]
onchainos workflow wallet-analysis --address <addr> [--chain ethereum]
onchainos workflow portfolio --address <addr> [--chains ethereum,solana]
Typical skill flows
- Search & buy:
okx-dex-market(find token) →okx-agentic-wallet(check funds + execute trade) - Portfolio overview:
okx-agentic-wallet(holdings) →okx-dex-market(enrich with analytics + price charts) - Market research:
okx-dex-market(trending/rankings + candles/history) →okx-agentic-wallet(trade) - Swap & broadcast:
okx-agentic-wallet(get quote → swap → broadcast → track order) - Full trading flow:
okx-dex-market(search + price/chart) →okx-agentic-wallet(check balance → swap → simulate + broadcast + track) - Leaderboard → research → trade:
okx-dex-market(top traders by PnL/win rate + token analytics) →okx-agentic-wallet(execute trade) - Follow smart money:
okx-dex-market(KOL/smart money buys + token details + holder cluster + price chart) →okx-agentic-wallet(trade)
MCP server
The onchainos CLI doubles as a native MCP server, exposing its tools to any
MCP-compatible client. Start it with:
onchainos mcp
Important notes
- Chain identifiers: both human names (
ethereum,solana,xlayer) and numeric IDs are accepted. Runonchainos swap chainsoronchainos gateway chainsfor the full list. - Read-only ops (market data, signals, security scan, public-address portfolios) work via Path A without any user-supplied API Key.
- Trading & sending default to the user's Agent Wallet via the
walletskill. Only fall back toonchainos wallet loginwhen the user asks. - Security gate: when
okx-agentic-wallet's security scanning reports a fail, the calling agent MUST block the related operation rather than proceed.
Resources
- Upstream repo: okx/onchainos-skills
- OnchainOS docs: OKX Web3 Build — OnchainOS
- Skills registry: skills.sh/okx/onchainos-skills
- Dev portal (API Key): web3.okx.com/onchain-os/dev-portal
FAQ
What does the okx skill do?
OKX OnChainOS: on-chain trading, analytics, security, DeFi across 20+ chains. Use when running OKX-routed on-chain ops (e.g. swap on Ethereum, scan token risk, track smart money, check wallet portfolio). Wallet: default to the user's Agent Wallet (via the wallet skill). Only use the OnchainOS TEE wallet (onchainos wallet login ) when the user explicitly asks for it.
How do I install okx?
Run npx skills add https://github.com/starchild-ai-agent/official-skills --skill okx in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/okx/ (personal) or .claude/skills/okx/ (project).
Which AI agents can use okx?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is okx safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains okx?
It is published by starchild-ai-agent in starchild-ai-agent/official-skills. It has 1,657 recorded installs.
More from starchild-ai-agent/official-skills
coinglass
starchild-ai-agent/official-skills
Crypto derivatives data: funding rates, open interest, liquidations, long/short ratios. Use when researching perp markets or comparing ETF flows (e.g. BTC funding, ETH OI). NOTE: platform API key is Startup tier — liquidation heatmap, coins-markets detail, liquidation order book and Hyperliquid positions require higher plans (see Plan Tiers).
wallet
starchild-ai-agent/official-skills
Multi-chain wallet: EVM and Solana balances, transfers, signing, and policy. Use when checking balances, sending tokens, signing typed data, or proposing a wallet policy (e.g. send 10 USDC on Base, sign EIP-712, Solana balance).
hyperliquid
starchild-ai-agent/official-skills
Trade perp futures, spot, and RWA on Hyperliquid DEX with up to asset max leverage. Use when placing perp or spot orders, setting TP/SL, or moving funds on Hyperliquid (e.g. long BTC 5x, sell ETH, deposit USDC, set stop).
coingecko
starchild-ai-agent/official-skills
Crypto spot prices, OHLC charts, market discovery, and global stats. Use when looking up coin prices, market caps, trending coins, sector rankings, or comparing tokens (e.g. BTC price, ETH chart, top gainers).
starchild-ai-agent/official-skills
Twitter/X data: fetch tweets, search, user profiles, followers, replies, trends. Use for any x.com or twitter.com URL or lookup (e.g. summarize this tweet, recent posts by @vitalikbuterin, search $SOL minfaves:50).
skill-creator
starchild-ai-agent/official-skills
Scaffold new skills with valid frontmatter, directory layout, and a starter SKILL.md. Use when building a new reusable workflow or wrapping a new API (e.g. create a kalshi skill, scaffold an API helper, start a charting skill).
Popular business & finance skills
sales-enablement
coreyhaines31/marketingskills
When the user wants to create sales collateral, pitch decks, one-pagers, objection handling docs, or demo scripts. Also use when the user mentions 'sales deck,' 'pitch deck,' 'one-pager,' 'leave-behind,' 'objection handling,' 'deal-specific ROI analysis,' 'demo script,' 'talk track,' 'sales playbook,' 'proposal template,' 'buyer persona card,' 'battle card,' 'battlecard,' 'competitive one-pager,' 'win-loss analysis,' 'why are we losing deals,' 'loss reasons,' 'how do I respond to this objection,' 'prospect just said,' 'help my sales team,' 'sales materials,' or 'what should I give my sales reps,' 'cold call script,' or 'voicemail script.' Use this for any document or asset that helps a sales team close deals. For public competitor comparison pages, see competitors. For running buyer interviews or churn research, see customer-research. For marketing website copy, see copywriting. For cold outreach emails, see cold-email. For the offer being sold (bonuses, guarantees, pricing structure),
revops
coreyhaines31/marketingskills
When the user wants help with revenue operations, lead lifecycle management, or marketing-to-sales handoff processes. Also use when the user mentions 'RevOps,' 'revenue operations,' 'lead scoring,' 'outbound pipeline stages,' 'lead routing,' 'MQL,' 'SQL,' 'pipeline stages,' 'deal desk,' 'CRM automation,' 'marketing-to-sales handoff,' 'data hygiene,' 'leads aren't getting to sales,' 'pipeline management,' 'lead qualification,' or 'when should marketing hand off to sales.' Use this for anything involving the systems and processes that connect marketing to revenue. For cold outreach emails, see cold-email. For email drip campaigns, see emails. For pricing decisions, see pricing.
sales-funnel-blueprint
autonnel/autonnel-skills
Turn an offer into a concrete multi-step sales funnel spec - page-by-page structure, price ladder, copy outline and the metrics each step must hit. Use when asked to build a sales funnel, marketing funnel, landing page flow, lead magnet funnel, webinar funnel, tripwire or VSL funnel, when planning a product launch page flow, or when someone asks "what pages do I need" for selling something online.
pricing
coreyhaines31/marketingskills
When the user wants help with pricing decisions, packaging, or monetization strategy. Also use when the user mentions 'pricing,' 'pricing tiers,' 'freemium,' 'free trial,' 'packaging,' 'price increase,' 'value metric,' 'Van Westendorp,' 'willingness to pay,' 'monetization,' 'how much should I charge,' 'my pricing is wrong,' 'pricing page,' 'annual vs monthly,' 'per seat pricing,' 'should I offer a free plan,' 'pricing page teardown,' 'pricing page audit,' 'is my pricing page AI-readable,' or 'can AI read my pricing.' Use this whenever someone is figuring out what to charge, how to structure their plans, or wants to audit a pricing page (for humans and for the AI agents that shortlist tools). For in-app upgrade screens, see paywalls. For offer construction (bonuses, guarantees, value framing, naming) on services/courses/coaching/high-ticket B2B, see offers.
cross-border-ecommerce
nexscope-ai/ecommerce-skills
Cross-border e-commerce expansion advisor. Scores target markets on 8 weighted dimensions (market size, ecommerce penetration, competition, regulatory complexity, logistics infrastructure, payment ecosystem, cultural distance, IP protection), compares 5 fulfillment models with cost and transit data, provides country-by-country tax/duty compliance guides (EU VAT/IOSS, UK VAT, US sales tax, CA GST, AU GST, JP consumption tax), maps local payment preferences by market, and builds a phased expansion roadmap. No API key required.
pricing-strategy
coreyhaines31/marketingskills
When the user wants help with pricing decisions, packaging, or monetization strategy. Also use when the user mentions 'pricing,' 'pricing tiers,' 'freemium,' 'free trial,' 'packaging,' 'price increase,' 'value metric,' 'Van Westendorp,' 'willingness to pay,' 'monetization,' 'how much should I charge,' 'my pricing is wrong,' 'pricing page,' 'annual vs monthly,' 'per seat pricing,' or 'should I offer a free plan.' Use this whenever someone is figuring out what to charge or how to structure their plans. For in-app upgrade screens, see paywall-upgrade-cro.