okx

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

OKX OnChainOS Skills Directory

OKX OnChainOS 技能目录

OKX OnChainOS is a comprehensive suite of 11 specialized skills that provide on-chain trading, analytics, security, and wallet management capabilities across 20+ blockchains including Ethereum, Solana, Base, BSC, Arbitrum, Polygon, XLayer, and TRON.
OKX OnChainOS是一套包含11项专业技能的综合套件,支持Ethereum、Solana、Base、BSC、Arbitrum、Polygon、XLayer和TRON等20+条区块链的链上交易、分析、安全及钱包管理功能。

Overview

概述

All OKX OnChainOS skills use the
onchainos
CLI tool and can be installed via npx from the okx/onchainos-skills repository.
Supported Chains: Ethereum, Solana, XLayer, Base, BSC, Arbitrum, Polygon, Optimism, Avalanche, Fantom, TRON, and 10+ more.

所有OKX OnChainOS技能均使用
onchainos
CLI工具,可通过npx从okx/onchainos-skills仓库安装。
支持的区块链:Ethereum、Solana、XLayer、Base、BSC、Arbitrum、Polygon、Optimism、Avalanche、Fantom、TRON及其他10+条区块链。

Skills by Category

技能分类

📊 Market Data & Analytics

📊 市场数据与分析

1. okx-dex-market

1. okx-dex-market

Real-time token prices, K-line charts, index prices, and wallet PnL analysis on-chain.
Capabilities:
  • Single and batch token price queries
  • K-line/candlestick chart data with customizable timeframes
  • Index price aggregation from multiple sources
  • Wallet portfolio analysis (win rate, top performers, transaction history)
  • Address tracking for smart money and KOL trading activities
Installation:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-dex-market

链上实时代币价格、K线图、指数价格及钱包盈亏分析。
功能:
  • 单一代币及批量代币价格查询
  • 支持自定义时间范围的K线/蜡烛图数据
  • 多来源聚合的指数价格
  • 钱包资产组合分析(胜率、表现最优资产、交易历史)
  • 追踪聪明资金和KOL的交易活动地址
安装:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-dex-market

2. okx-dex-token

2. okx-dex-token

Token discovery, analytics, and holder insights for DEX trading.
Capabilities:
  • Token search by name, symbol, or contract address
  • Detailed pricing metrics including market cap, liquidity, and volume
  • Risk identification (honeypots, developer rug-pull history)
  • Holder filtering by wallet type (whales, smart money, KOLs, snipers, bundlers)
  • Top trader identification and liquidity pool inspection
  • Holder cluster analysis for concentration assessment
Installation:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-dex-token

适用于DEX交易的代币发现、分析及持有者洞察。
功能:
  • 通过名称、符号或合约地址搜索代币
  • 包含市值、流动性和交易量的详细定价指标
  • 风险识别(蜜罐、开发者跑路历史)
  • 按钱包类型筛选持有者(巨鲸、聪明资金、KOL、狙击手、打包器)
  • 识别顶级交易者并检查流动性池
  • 持有者集群分析以评估集中度
安装:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-dex-token

3. okx-dex-signal

3. okx-dex-signal

Real-time tracking of smart money, whale, and KOL buy signals across multiple blockchains.
Capabilities:
  • Lists supported chains for signal tracking
  • Fetches buy-direction signals filtered by wallet type, trade size, and token
  • Displays signal metadata including USD amount, wallet type, trigger count
  • Ranks top traders across markets with customizable sorting
Installation:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-dex-signal

跨多条区块链实时追踪聪明资金、巨鲸和KOL的买入信号。
功能:
  • 列出支持信号追踪的区块链
  • 按钱包类型、交易规模和代币筛选买入方向信号
  • 显示包含美元金额、钱包类型、触发次数的信号元数据
  • 支持自定义排序的跨市场顶级交易者排名
安装:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-dex-signal

4. okx-dex-trenches

4. okx-dex-trenches

Meme token discovery, developer reputation checks, bundle detection, and co-investor tracking for pump.fun and similar launchpads.
Capabilities:
  • Scan new token launches across Solana, BSC, X Layer, and TRON
  • Analyze creator credibility through rug pull history
  • Detect bundler and sniper activity on tokens
  • Identify wallets that co-invested in the same launches
  • Find similar tokens by the same developer
Installation:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-dex-trenches

适用于pump.fun及类似launchpad的迷因币发现、开发者信誉检查、打包器检测及联合投资者追踪。
功能:
  • 扫描Solana、BSC、X Layer和TRON上的新代币发行
  • 通过跑路历史分析创建者可信度
  • 检测代币的打包器和狙击手活动
  • 识别参与同一发行项目的联合投资钱包
  • 查找同一开发者发行的相似代币
安装:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-dex-trenches

💼 Portfolio & Wallet Management

💼 资产组合与钱包管理

5. okx-wallet-portfolio

5. okx-wallet-portfolio

Query wallet balances, token holdings, and portfolio value across 20+ blockchains.
Capabilities:
  • Total portfolio value across all chains
  • All token balances with USD valuations
  • Specific token holdings lookup
  • Supports both EVM (0x...) and Solana (Base58) addresses
  • Integration with swap workflows for balance verification
Installation:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-wallet-portfolio

查询20+条区块链上的钱包余额、代币持仓及资产组合价值。
功能:
  • 跨所有区块链的总资产组合价值
  • 包含美元估值的所有代币余额
  • 特定代币持仓查询
  • 支持EVM(0x...)和Solana(Base58)地址
  • 与兑换流程集成以验证余额
安装:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-wallet-portfolio

6. okx-agentic-wallet

6. okx-agentic-wallet

Authentication, balance queries, token transfers, transaction history, and smart contract calls.
Capabilities:
  • Account management (login, add wallets, switch accounts)
  • Balance queries across chains
  • Token transfers and native asset sends
  • Smart contract interactions
  • Transaction history browsing
  • MEV protection for high-value transactions
  • TEE signing for secure transaction execution
Installation:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-agentic-wallet
Important Notes:
  • Requires authentication via email or API key
  • Uses numeric chain IDs (e.g., 1 for Ethereum, 501 for Solana)
  • Amounts must be specified in UI units, not base units

身份验证、余额查询、代币转账、交易历史及智能合约调用。
功能:
  • 账户管理(登录、添加钱包、切换账户)
  • 跨链余额查询
  • 代币转账和原生资产发送
  • 智能合约交互
  • 交易历史浏览
  • 高价值交易的MEV防护
  • 安全交易执行的TEE签名
安装:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-agentic-wallet
重要说明:
  • 需要通过邮箱或API密钥进行身份验证
  • 使用数字链ID(例如Ethereum为1,Solana为501)
  • 金额必须以UI单位指定,而非基础单位

🔄 Trading & Swaps

🔄 交易与兑换

7. okx-dex-swap

7. okx-dex-swap

Multi-chain DEX swap aggregation with quote, approval, and execution across 500+ liquidity sources.
Capabilities:
  • Quote generation across 20+ blockchains
  • Token approval handling
  • Swap execution with built-in security features
  • Automatic chain name resolution
  • AutoSlippage optimization and MEV protection
  • Merged approve+swap flow for EVM tokens
  • Security checks including honeypot detection and tax rate disclosure
Installation:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-dex-swap
Core Commands:
bash
onchainos swap chains          # List supported blockchains
onchainos swap quote           # Get price estimates
onchainos swap approve         # Generate ERC-20 approval data
onchainos swap swap            # Execute swaps with transaction data
onchainos swap liquidity       # View available DEX sources

跨链DEX兑换聚合,支持20+条区块链的报价、授权及执行,整合500+流动性来源。
功能:
  • 20+条区块链的报价生成
  • 代币授权处理
  • 内置安全功能的兑换执行
  • 自动区块链名称解析
  • AutoSlippage优化和MEV防护
  • EVM代币的授权+兑换合并流程
  • 包含蜜罐检测和税率披露的安全检查
安装:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-dex-swap
核心命令:
bash
onchainos swap chains          # 列出支持的区块链
onchainos swap quote           # 获取价格估算
onchainos swap approve         # 生成ERC-20授权数据
onchainos swap swap            # 携带交易数据执行兑换
onchainos swap liquidity       # 查看可用DEX来源

🔐 Security & Safety

🔐 安全防护

8. okx-security

8. okx-security

Token risk analysis, DApp phishing detection, transaction pre-execution security, signature safety, and approval management.
Capabilities:
  • Token risk detection and honeypot scanning across all chains
  • DApp phishing threat identification
  • Transaction safety analysis before execution (EVM + Solana)
  • Message signature validation (EVM only)
  • Token authorization and Permit2 status queries (EVM only)
Installation:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-security
Core Commands:
bash
onchainos security token-scan    # Detect token risks and honeypots
onchainos security dapp-scan     # Identify phishing threats
onchainos security tx-scan       # Analyze transaction safety
onchainos security sig-scan      # Validate message signatures
onchainos security approvals     # Query token authorizations
Important: If any security scan fails, the agent MUST block the associated operation rather than proceed.

代币风险分析、DApp钓鱼检测、交易预执行安全、签名安全及授权管理。
功能:
  • 跨所有区块链的代币风险检测和蜜罐扫描
  • DApp钓鱼威胁识别
  • 执行前的交易安全分析(EVM + Solana)
  • 消息签名验证(仅EVM)
  • 代币授权和Permit2状态查询(仅EVM)
安装:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-security
核心命令:
bash
onchainos security token-scan    # 检测代币风险和蜜罐
onchainos security dapp-scan     # 识别钓鱼威胁
onchainos security tx-scan       # 分析交易安全性
onchainos security sig-scan      # 验证消息签名
onchainos security approvals     # 查询代币授权
重要提示: 若任何安全扫描失败,代理必须阻止相关操作,不得继续执行。

⚙️ Infrastructure & Operations

⚙️ 基础设施与操作

9. okx-onchain-gateway

9. okx-onchain-gateway

Gas estimation, transaction simulation, broadcasting, and order tracking across 25+ blockchains.
Capabilities:
  • Gas price lookups with Gwei and USD cost estimates
  • Transaction simulation (dry-run) before broadcasting
  • Signed transaction broadcasting
  • Order status tracking
  • MEV protection on Ethereum, BSC, and Solana
  • Batch broadcast support for approve+swap workflows
Installation:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-onchain-gateway
Primary Commands:
bash
onchainos gateway gas           # Current gas prices
onchainos gateway gas-limit     # Estimate transaction gas
onchainos gateway simulate      # Test transactions before broadcasting
onchainos gateway broadcast     # Send signed transactions
onchainos gateway orders        # Track transaction status

跨25+条区块链的Gas估算、交易模拟、广播及订单追踪。
功能:
  • 包含Gwei和美元成本估算的Gas价格查询
  • 广播前的交易模拟(试运行)
  • 已签名交易的广播
  • 订单状态追踪
  • Ethereum、BSC和Solana上的MEV防护
  • 支持授权+兑换流程的批量广播
安装:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-onchain-gateway
主要命令:
bash
onchainos gateway gas           # 当前Gas价格
onchainos gateway gas-limit     # 估算交易Gas
onchainos gateway simulate      # 广播前测试交易
onchainos gateway broadcast     # 发送已签名交易
onchainos gateway orders        # 追踪交易状态

10. okx-x402-payment

10. okx-x402-payment

Sign x402 payment authorizations and return payment proof for accessing payment-gated resources.
Capabilities:
  • X402 HTTP payment protocol support
  • TEE signing via wallet session
  • Local signing with private key
  • Access payment-required API resources
  • Support for EVM chains using CAIP-2 format
Installation:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-x402-payment

签署x402支付授权并返回支付凭证,以访问付费 gated 资源。
功能:
  • 支持X402 HTTP支付协议
  • 通过钱包会话进行TEE签名
  • 使用私钥进行本地签名
  • 访问需要支付的API资源
  • 支持使用CAIP-2格式的EVM链
安装:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-x402-payment

11. okx-audit-log

11. okx-audit-log

Provide the audit log file path for developers to troubleshoot issues offline.
Capabilities:
  • Access audit log file for debugging
  • JSON Lines format with detailed event logging
  • Automatic log rotation (max 10,000 lines)
  • Timestamp, command, success status, duration, and error tracking
Installation:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-audit-log
Log Location:
  • Default:
    ~/.onchainos/audit.jsonl
  • Custom:
    $ONCHAINOS_HOME/audit.jsonl
    (if environment variable is set)
Log Format:
json
{"timestamp":"2025-01-15T10:30:45Z","source":"cli","command":"market price","success":true,"duration":1234,"args":"[REDACTED]"}

为开发者提供审计日志文件路径,用于离线排查问题。
功能:
  • 访问审计日志文件进行调试
  • 采用JSON Lines格式的详细事件日志
  • 自动日志轮转(最多10,000行)
  • 时间戳、命令、成功状态、时长及错误追踪
安装:
bash
npx skills add https://github.com/okx/onchainos-skills --skill okx-audit-log
日志位置:
  • 默认:
    ~/.onchainos/audit.jsonl
  • 自定义:
    $ONCHAINOS_HOME/audit.jsonl
    (若设置了环境变量)
日志格式:
json
{"timestamp":"2025-01-15T10:30:45Z","source":"cli","command":"market price","success":true,"duration":1234,"args":"[REDACTED]"}

Installation Workflow

安装流程

Install All Skills at Once

一次性安装所有技能

bash
undefined
bash
undefined

Install all 11 OKX OnChainOS skills

安装全部11项OKX OnChainOS技能

npx skills add https://github.com/okx/onchainos-skills --skill okx-dex-market npx skills add https://github.com/okx/onchainos-skills --skill okx-wallet-portfolio npx skills add https://github.com/okx/onchainos-skills --skill okx-dex-token npx skills add https://github.com/okx/onchainos-skills --skill okx-dex-swap npx skills add https://github.com/okx/onchainos-skills --skill okx-onchain-gateway npx skills add https://github.com/okx/onchainos-skills --skill okx-dex-signal npx skills add https://github.com/okx/onchainos-skills --skill okx-dex-trenches npx skills add https://github.com/okx/onchainos-skills --skill okx-agentic-wallet npx skills add https://github.com/okx/onchainos-skills --skill okx-security npx skills add https://github.com/okx/onchainos-skills --skill okx-audit-log npx skills add https://github.com/okx/onchainos-skills --skill okx-x402-payment

---
npx skills add https://github.com/okx/onchainos-skills --skill okx-dex-market npx skills add https://github.com/okx/onchainos-skills --skill okx-wallet-portfolio npx skills add https://github.com/okx/onchainos-skills --skill okx-dex-token npx skills add https://github.com/okx/onchainos-skills --skill okx-dex-swap npx skills add https://github.com/okx/onchainos-skills --skill okx-onchain-gateway npx skills add https://github.com/okx/onchainos-skills --skill okx-dex-signal npx skills add https://github.com/okx/onchainos-skills --skill okx-dex-trenches npx skills add https://github.com/okx/onchainos-skills --skill okx-agentic-wallet npx skills add https://github.com/okx/onchainos-skills --skill okx-security npx skills add https://github.com/okx/onchainos-skills --skill okx-audit-log npx skills add https://github.com/okx/onchainos-skills --skill okx-x402-payment

---

Important Notes

重要说明

Chain Identifiers

区块链标识符

  • Supports both human-readable names (
    ethereum
    ,
    solana
    ,
    xlayer
    ) and numeric chain IDs
  • Use
    onchainos swap chains
    or
    onchainos gateway chains
    to view all supported chains
  • 支持易读名称(
    ethereum
    ,
    solana
    ,
    xlayer
    )和数字链ID
  • 使用
    onchainos swap chains
    onchainos gateway chains
    查看所有支持的区块链

Authentication

身份验证

  • okx-agentic-wallet requires authentication via email or API key
  • Other skills work without authentication for read-only operations
  • TEE signing available for enhanced security
  • okx-agentic-wallet需要通过邮箱或API密钥进行身份验证
  • 其他技能的只读操作无需身份验证
  • 提供TEE签名以增强安全性

Pre-flight Checks

预执行检查

  • All skills include automatic pre-flight checks
  • CLI binary is installed/updated automatically
  • Integrity verification before command execution
  • 所有技能包含自动预执行检查
  • CLI二进制文件会自动安装/更新
  • 命令执行前进行完整性验证

Security Best Practices

安全最佳实践

  1. Always run
    okx-security
    scans before executing transactions
  2. Verify token contracts for honeypots and high taxes
  3. Check DApp URLs for phishing before connecting wallets
  4. Review transaction simulations before broadcasting
  5. Monitor token approvals and revoke unnecessary permissions
  1. 执行交易前始终运行
    okx-security
    扫描
  2. 验证代币合约是否为蜜罐或高税率
  3. 连接钱包前检查DApp URL是否为钓鱼链接
  4. 广播前查看交易模拟结果
  5. 监控代币授权并撤销不必要的权限

Gas & MEV Protection

Gas与MEV防护

  • MEV protection available on Ethereum, BSC, and Solana
  • AutoSlippage optimization for large trades
  • Gas price estimates include USD cost calculations
  • Merged approve+swap reduces transaction steps and costs

  • Ethereum、BSC和Solana上提供MEV防护
  • 大额交易的AutoSlippage优化
  • Gas价格估算包含美元成本计算
  • 授权+兑换合并流程减少交易步骤和成本

Troubleshooting

故障排除

Common Issues

常见问题

  • Binary not found: Run
    npx onchainos --version
    to trigger installation
  • Chain not supported: Use
    onchainos swap chains
    to view supported chains
  • Authentication required: Use
    okx-agentic-wallet
    login flow for wallet operations
  • Rate limits: Check API rate limits and wait between requests

  • 未找到二进制文件:运行
    npx onchainos --version
    触发安装
  • 不支持该区块链:使用
    onchainos swap chains
    查看支持的区块链
  • 需要身份验证:使用
    okx-agentic-wallet
    登录流程进行钱包操作
  • 速率限制:检查API速率限制并在请求间等待

Resources

资源



Skill Selection Guide

技能选择指南

Choose the right skill for your task:
TaskRecommended Skill
Check token priceokx-dex-market
Find new tokensokx-dex-token or okx-dex-trenches
Track smart moneyokx-dex-signal
View wallet balancesokx-wallet-portfolio
Execute swapsokx-dex-swap
Security analysisokx-security
Wallet operationsokx-agentic-wallet
Gas estimatesokx-onchain-gateway
Transaction trackingokx-onchain-gateway
Payment gatingokx-x402-payment
Debuggingokx-audit-log
根据任务选择合适的技能:
任务推荐技能
查询代币价格okx-dex-market
发现新代币okx-dex-token 或 okx-dex-trenches
追踪聪明资金okx-dex-signal
查看钱包余额okx-wallet-portfolio
执行兑换okx-dex-swap
安全分析okx-security
钱包操作okx-agentic-wallet
Gas估算okx-onchain-gateway
交易追踪okx-onchain-gateway
付费访问控制okx-x402-payment
调试okx-audit-log