okx-cex-auth

Manages OAuth and API-key access tokens for the OKX CLI.

396|63|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/okx/agent-trade-kit --skill okx-cex-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: okx-cex-auth
Source: https://github.com/okx/agent-trade-kit/tree/main/skills/okx-cex-auth
Command: npx skills add https://github.com/okx/agent-trade-kit --skill okx-cex-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Authenticates and authorizes OKX users by securely obtaining and managing access tokens for the CLI, enabling safe and smooth interaction with trading tools.

Core Features & Use Cases

  • First-time login setup and re-authentication flows for the OKX CLI
  • Session status checks, OAuth handling, and API-key conflict resolution
  • Binary management prompts and pre-flight checks to ensure authenticated operations

Quick Start

Run the login flow to authenticate and authorize your OKX account with the okx CLI.

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 my OKX CLI for the first time?

To authenticate the OKX CLI for the first time, run the login flow which triggers the okx-auth binary to obtain access tokens. You must manually authorize the request via your browser following the provided user prompts to complete the session setup.

How does OAuth work with the OKX CLI login process?

The OKX CLI OAuth mechanism requires the okx-auth binary to initiate a login flow, prompting you to manually authorize access through a web browser. Once authorized, it securely obtains and manages access tokens for your CLI session.

What should I do when my OKX CLI access token expires or the session breaks?

When an OKX CLI access token expires, you should run the re-authentication workflow to refresh your session. The system performs pre-flight checks and uses the okx-auth binary to securely obtain new tokens and restore access.

Can I resolve API-key conflicts when logging into the OKX CLI?

Yes, the OKX CLI authentication process handles API-key conflict resolution during the login flow. It enforces pre-flight checks to identify conflicting scenarios and guides you through the proper re-authentication steps to secure your token.

Do I need a browser to complete the OKX CLI login and authorization?

Yes, you need a browser to complete the OKX CLI login because the OAuth workflow requires manual browser authorization. The system provides clear user prompts to open the browser, confirm access, and report status back to the CLI.