okx-cex-auth

okx-cex-auth is a skill for Claude Code, Codex from dex-original/okx-agent-trade-kit. It costs 228 tokens per session (4,485 once invoked), scanned A, a copy of okx-cex-auth, MIT.

An authentication guide for the OKX command-line tool, which lets you manage an OKX account from a terminal. It covers browser-based sign-in, choosing an OKX regional site, session renewal, and logout.

In plain words
What is it for?
Use it to connect an OKX account, complete first-time setup, sign in again after a session expires, check authentication status, or log out.
Why use it?
It helps resolve sign-in and expired-session errors without putting account credentials into chat. It also explains the setup needed before using authenticated OKX commands.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to connect an OKX account, complete first-time setup, sign in again after a session expires, check authentication status, or log out.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dex-original/okx-agent-trade-kit/okx-cex-auth
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dex-original/okx-agent-trade-kit --skill okx-cex-auth
Clone the repo
git clone --depth 1 https://github.com/dex-original/okx-agent-trade-kit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for okx-cex-auth

README.md
[![agentmods](https://agentmods.dev/badge/skills/dex-original/okx-agent-trade-kit/okx-cex-auth/github.svg)](https://agentmods.dev/skills/dex-original/okx-agent-trade-kit/okx-cex-auth)
Your own site
<a href="https://agentmods.dev/skills/dex-original/okx-agent-trade-kit/okx-cex-auth"><img src="https://agentmods.dev/badge/skills/dex-original/okx-agent-trade-kit/okx-cex-auth/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for okx-cex-auth

Your own site · 80×15
<a href="https://agentmods.dev/skills/dex-original/okx-agent-trade-kit/okx-cex-auth"><img src="https://agentmods.dev/badge/skills/dex-original/okx-agent-trade-kit/okx-cex-auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 228 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,485 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00228 $0.04485
Opus 5 $0.00114 $0.02243
Sonnet 5 $0.00046 $0.00897
Haiku 4.5 $0.00023 $0.00449

Measured 11d ago against content hash 0d7be18a8dc1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

okx-cex-auth scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

97% identical to okx-cex-auth — 17 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/okx-cex-auth/SKILL.md · 328 lines

How it starts

The opening of the file, as written. The whole thing — 328 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.site in ~/.okx/config.toml (written by okx config init).
  • OAuth users: saved inside the okx-auth binary state the first time okx auth login --site <X> succeeds, and returned by okx auth status --json as the site field.

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)

Unconditional rule — do NOT skip Step 0 under any circumstances. Even if a prior skill (preflight, okx-cex-portfolio, etc.) already ran auth status and passed you a conclusion like "user is not_logged_in, go log in" — you MUST re-run the two commands below yourself and walk Steps 0.1 → 0.2 → 0.3 in order. Upstream tool output does not substitute for your own pre-flight. The single most common failure mode for this skill is an agent that reads an upstream "not authenticated" signal, skips Step 0.1 site selection, and calls okx auth login with a silently-defaulted site.

Run both in parallel:

okx config show --json
okx auth status --json

Then apply the following three checks in strict order — each step short-circuits the rest.

Step 0.1 — Site check (independent of auth mode)

A site is considered already selected if either is true:

  • config show --json has any profile with a non-empty site field, OR
  • auth status --json returns a non-empty site field AND status is logged_in or pending.

Read the full file on GitHub · 328 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 328 lines · 228 tokens per session scan A 0d7be18a8dc1

Subscribe to this mod's changes

okx-cex-auth is a skill published in the GitHub repository dex-original/okx-agent-trade-kit (100 stars, last pushed 3mo ago), licensed MIT. It adds 228 tokens to every session and 4,485 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to okx-cex-auth, differing in 17 lines, and is treated as a copy.

Related

Other skills, from other repositories

obai-strategy

Quantitative equity strategy design and backtesting via the OBaI backtest MCP server (http://localhost:8007/mcp). Use when the user wants to build, test, backtest, optimize, refine, repair, or compare a trading strategy, run walk-forward robustness validation, inspect trade logs, or follow up on a backtest job.…

sixteen-dev/obai · 111 tokens

obai-prediction-markets

Polymarket prediction-market analysis via the OBaI prediction-markets MCP server (http://localhost:8009/mcp). Use for market discovery, event odds, YES/NO executable pricing and depth, price history, trade flow, holder concentration, trader leaderboards, wallet analysis, trade decision memos, calibration/longshot-bias…

sixteen-dev/obai · 111 tokens

obai-hub

Central router for OBaI's MCP servers. Trigger this skill whenever the user asks a financial-markets question and the OBaI MCP servers (localhost ports 8001-8010) are available: stock prices, quotes, technicals, fundamentals, valuation, SEC filings, insider trades, earnings, dividends, news catalysts, options chains…

sixteen-dev/obai · 149 tokens

obai

Use the OBaI CLI to answer financial and stock market questions by running obai query commands with --session for conversation memory. Trigger this skill whenever the user asks about stock prices, earnings, fundamentals, options, market movers, portfolio analysis, portfolio risk, screening, dividends, SEC filings…

sixteen-dev/obai · 172 tokens

obai-strategy-routing

Use when the user wants to build, test, backtest, optimize, refine, repair, compare, or follow up on a systematic trading strategy. Covers strategy design, backtesting, optimization, robustness analysis, rule generation, strategy repair/comparison, execution handoff, and strategy job follow-ups. Excludes prediction…

sixteen-dev/obai · 71 tokens

obai-crypto

Coinbase spot crypto research via the OBaI crypto MCP server (http://localhost:8010/mcp). Use for Coinbase spot product lookup, crypto OHLCV candles, order books, latest trades and bid/ask, single-product spot strategy backtests, and Coinbase paper-ledger strategy artifacts. Excludes derivatives, DeFi, on-chain…

sixteen-dev/obai · 93 tokens