This repository provides a suite of "skills" enabling AI agents to integrate with the OKX OnchainOS API. It empowers AI coding assistants and developers to perform complex on-chain operations, including wallet management, token discovery, market data analysis, DEX swaps, and transaction broadcasting across over 20 blockchains, offering a streamlined interface for sophisticated DeFi interactions.
How It Works
The project exposes modular skills abstracting specific blockchain functionalities: wallet operations, security analysis, DEX interactions (swaps, market data), and transaction broadcasting. These skills orchestrate into pre-defined workflows or are composed dynamically by AI agents, simplifying multi-chain DeFi protocol interactions via a unified API layer.
Quick Start & Requirements
- Installation: Recommended via
npx skills add okx/onchainos-skills for AI coding assistants, or using provided shell/PowerShell scripts for CLI installation.
- Prerequisites: Requires OKX API credentials (API Key, Secret Key, Passphrase) configured via environment variables (
OKX_API_KEY, OKX_SECRET_KEY, OKX_PASSPHRASE) or a .env file.
- Supported Chains: Includes XLayer, Solana, Ethereum, Base, BSC, Arbitrum, Polygon, and over 20 others.
- Compatibility: Works with Claude Code, Cursor, Codex CLI, OpenCode, and OpenClaw.
- Documentation: API credentials application via OKX Developer Portal.
Highlighted Details
- Comprehensive DeFi toolkit with over 14 distinct skills.
- Supports cross-chain operations across 20+ blockchains.
- Features advanced analytics for token research, smart money tracking, and portfolio management.
- Includes pre-built workflows for common DeFi tasks (e.g., token research, wallet analysis).
- Offers a composite CLI for executing multi-step operations with single commands.
- Can function as an MCP server for integration with compatible clients.
Maintenance & Community
- No specific details regarding maintainers, community channels (e.g., Discord, Slack), or roadmap were found in the provided README.
Licensing & Compatibility
- License: MIT.
- Compatibility: The MIT license permits commercial use and integration within closed-source applications without significant restrictions.
Limitations & Caveats
- Production use requires user-provided OKX API credentials; bundled sandbox keys are for testing only and carry risks of rate limiting and unexpected behavior.
- Users are responsible for secure API key management.
- Beta versions are opt-in and may differ in stability from stable releases.