okx-cex-auth
Installation
SKILL.md
OKX CEX Authentication
OAuth 2.0 device flow authentication for OKX CLI. Guides first-time setup, re-authentication after session expiry, and logout.
Supported Sites
| Site | Region | URL |
|---|---|---|
global |
Global | www.okx.com |
eea |
EEA | my.okx.com |
us |
US | app.okx.com |
Site is a separate dimension from auth method. Both API-key and OAuth paths require a site. Once selected, a site is persisted:
- API-key users:
profile.sitein~/.okx/config.toml(written byokx config init). - OAuth users: saved inside the
okx-authbinary state the first timeokx auth login --site <X>succeeds, and returned byokx auth status --jsonas thesitefield.
There is no okx config set-site command — site cannot be persisted independently of an auth attempt. For OAuth flows, the agent must remember the user's choice within the conversation and pass --site <X> on okx auth login.