okx-cex-auth

Authenticate OKX users via OAuth 2.0 device flow and manage the okx-auth binary.

100|2.3k|Updated May 14, 2026
One-click install
npx skills add https://github.com/dex-original/okx-agent-trade-kit --skill okx-cex-auth-dex-original
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: okx-cex-auth
Source: https://github.com/dex-original/okx-agent-trade-kit/tree/main/skills/okx-cex-auth
Command: npx skills add https://github.com/dex-original/okx-agent-trade-kit --skill okx-cex-auth-dex-original

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @okx_ai/okx-trade-cli, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill solves the issue of authentication and account setup for the OKX exchange, providing a streamlined process for logging in, reconnecting, and configuring the OKX API client.

Core Features & Use Cases

  • Authentication: Streamlines the OAuth 2.0 device flow authentication process for OKX CLI.
  • Re-authentication: Handles re-authentication after session expiry.
  • First-Time Setup: Guides users through the first-time setup and configuration of their OKX account.
  • Login Status Check: Provides information about the login status.
  • Binary Management: Manages the installation, update, and removal of the okx-auth binary.
  • Error Handling: Offers troubleshooting for common errors during authentication.

Quick Start

Run the okx-cex-auth skill to begin the authentication process and connect your OKX account.

Frequently Asked Questions about okx-cex-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I authenticate and connect my OKX account to AI agents?▼

OKX account authentication uses the OAuth 2.0 device flow to manage login, reconnection, and API client configuration. This process handles the okx-auth binary to securely connect your account with AI agents or scripts.

What is the OAuth 2.0 device flow for OKX CLI login?▼

The OAuth 2.0 device flow for OKX CLI is an authentication mechanism that guides users through first-time setup and login. It manages login status checks and handles re-authentication when sessions expire.

How do I set up the OKX API client for the first time?▼

First-time OKX API client setup involves running the authentication skill to initiate the OAuth 2.0 device flow. This guides you through account configuration and installs the necessary okx-auth binary.

Do I need the okx-trade-cli dependency to manage OKX authentication?▼

Yes, the okx-trade-cli dependency is required to manage OKX authentication. The authentication process interacts with the OKX CLI to handle the OAuth 2.0 device flow and manage the okx-auth binary.

Why does my OKX CLI session expire and how do I re-authenticate?▼

OKX CLI sessions expire due to token timeouts, requiring re-authentication to restore access. The skill handles re-authentication after session expiry by re-initiating the OAuth 2.0 device flow and checking your login status.

How do I troubleshoot common errors during OKX OAuth authentication?▼

Troubleshooting OKX OAuth authentication errors involves using the built-in error handling features to identify login or connection issues. The skill helps resolve common errors during the first-time setup and re-authentication processes.