A robust integration for OKX v5 REST and WebSocket APIs enabling automated crypto trading, account management, and real-time market data analysis.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install okx-api
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install okx-api using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The OKX API skill provides a comprehensive bridge between AI agents and the OKX exchange ecosystem. By leveraging this Openclaw Skills component, developers can programmatically access spot trading, derivatives, and detailed account analytics. It simplifies the complexities of cryptocurrency exchange interaction by handling HMAC SHA256 authentication and signature generation, allowing for secure and efficient operations across both live and sandbox environments.
Built for high-performance trading workflows, this skill supports the full breadth of the OKX v5 interface. Whether you are building an automated trading bot or a portfolio tracking tool, this skill ensures your agent has the necessary tools to interact with one of the most liquid exchanges in the industry.
To enable this skill, store your credentials in your local environment configuration. Openclaw Skills will automatically inject these into the agent workspace.
Add the following to your ~/.openclaw/openclaw.json:
{
"env": {
"OKX_API_KEY": "your-api-key",
"OKX_SECRET_KEY": "your-secret-key",
"OKX_PASSPHRASE": "your-passphrase",
"OKX_DEMO": "1"
}
}
Alternatively, export the variables in your shell:
export OKX_API_KEY="your-api-key"
export OKX_SECRET_KEY="your-secret-key"
export OKX_PASSPHRASE="your-passphrase"
The skill follows the OKX v5 standard response structure, ensuring data consistency across all endpoints.
| Property | Type | Description |
|---|---|---|
| code | String | Status code where 0 indicates success. |
| msg | String | Error message detail if the request fails. |
| data | Array | A collection of objects containing the requested resource. |
All trading pairs use the instId format (e.g., BTC-USDT for spot, BTC-USDT-SWAP for perpetuals). Account data is organized by UID and includes detailed sub-account and equity breakdowns.
Loading
An AI-powered image generation and editing skill for Openclaw Skills agents leveraging the Google Gemini model for high-quality visual creation.

A structured logical framework for decision-making and error correction based on the binary evaluation principles of Critical Fallibilism.

A specialized AI agent skill designed to help solo entrepreneurs build high-impact, low-cost marketing strategies focused on organic growth and community engagement.

A structured thinking partner for startup founders designed to pressure-test decisions and navigate the 2025 startup and Web3 ecosystem.

A structural blueprint for transforming generic AI assistants into opinionated, persona-driven agents with deep long-term memory.

A dynamic persona management system that allows Openclaw Skills to research, save, and embody diverse character identities.








































