
Okx Cex Auth
Authenticates OKX CLI users via OAuth device flow with site selection and binary management.
- skills.sh installs
- 6.2K
- GitHub stars
- 201
- last updated
- Aug 21, 2026
What it does
- Covers first-time setup, re-authentication after session expiry, logout, and login status checks for the OKX CLI
- Includes a pre-flight check that verifies site selection, API-key presence, and OAuth state before any login attempt
- Enforces a required site menu for OKX regions (Global, EEA, US, TR) so the chosen site is never silently defaulted
- Designed for agents that need to authenticate before using okx-cex-trade, okx-cex-portfolio, okx-cex-earn, or okx-cex-bot
Install
$ npx -y skills add okx/agent-skills --skill okx-cex-auth -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
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 |
tr | TR | tr.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.
Prerequisites
Install okx CLI if not already installed:
npm install -g @okx_ai/okx-trade-cli
Step 0: Pre-flight Check (MANDATORY)
Details
- Repository
- github.com/okx/agent-skills
- Categories
- Finance & Trading, Web3 & Crypto, CLI & Terminal
- First seen
- May 16, 2026
More from okx/agent-skills
All 10Similar to Okx Cex Auth
More Finance & Trading
okx-cex-smartmoneyokx/agent-skills6.2K installsSmart Money analytics on OKX: leaderboard traders, position tracking, trade records, closed-position history, aggregated consensus signals, and signal history.
us-stock-analysistradermonty/claude-trading-skills6K installsComprehensive US stock analysis including fundamental analysis (financial metrics, business quality, valuation), technical analysis (indicators, chart patterns,
fiatbinance/binance-skills-hub5.9K installsQuery Binance fiat payment capabilities — supported countries, currencies, payment methods, limits, and crypto prices — via public APIs, plus authenticated orde
finance-billing-opsaffaan-m/ecc5.9K installsEvidence-first revenue, pricing, refunds, team-billing, and billing-model truth workflow for ECC. Use when the user wants a sales snapshot, pricing comparison,
customer-billing-opsaffaan-m/ecc5.9K installsOperate customer billing workflows such as subscriptions, refunds, churn triage, billing-portal recovery, and plan analysis using connected billing tools like S
prediction-market-oracle-researchaffaan-m/ecc5.8K installsResearch prediction markets as data sources or oracle signals for products, agents, dashboards, and corporate decision intelligence. Use for source-grounded ana