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.
npx skills add okx/agent-skills --skill okx-cex-botgit clone --depth 1 https://github.com/okx/agent-skillsWrote 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.
[](https://agentmods.dev/skills/okx/agent-skills/okx-cex-bot)<a href="https://agentmods.dev/skills/okx/agent-skills/okx-cex-bot"><img src="https://agentmods.dev/badge/skills/okx/agent-skills/okx-cex-bot/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.
<a href="https://agentmods.dev/skills/okx/agent-skills/okx-cex-bot"><img src="https://agentmods.dev/badge/skills/okx/agent-skills/okx-cex-bot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket pass
- Snyk fail
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00167 | $0.04750 |
| Opus 5.5 | $0.00067 | $0.01900 |
| Sonnet 5.5 | $0.00033 | $0.00950 |
| Haiku 4.5 | $0.00017 | $0.00475 |
Grade A, and why
okx-cex-bot 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 5d 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.
This is a copy
100% identical to okx-cex-bot — 0 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.
How it starts
The opening of the file, as written. The whole thing — 246 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OKX CEX Bot Trading
Grid, DCA (Spot & Contract Martingale), Smart Portfolio and Recurring Buy (定投) management on OKX. All bots are native OKX server-side — they run on OKX and do not require a local process.
Preflight
Before running any command, follow ../_shared/preflight.md.
Use metadata.version from this file's frontmatter as the reference for Step 2.
Prerequisites
npm install -g @okx_ai/okx-trade-cli
okx config init # select site -> follow browser OAuth flow
Security: NEVER accept credentials in chat. Guide users to
okx config initfor setup.
Credential & Profile Check
Run before every authenticated command. The auth method is detected during preflight Step 2 and remembered for the session.
Step A — Verify credentials
Run both commands — the apiKey field from okx auth status --json is the auth-binary's internal state and is always false regardless of whether ~/.okx/config.toml has an API-key profile. okx config show --json is the only authoritative source for API-key presence.
okx config show --json # reveals API-key profiles (TOML config)
okx auth status --json # reveals OAuth session state (auth-binary state)
Apply in this order — first match wins:
config show --jsonhas any profile with a non-emptyapi_keyfield → API Key mode. Proceed to Step B.- No API-key profile AND
auth status --jsonreturns"status":"logged_in"→ OAuth mode. Proceed to Step B. - No API-key profile AND
"status":"pending"— login is in progress, wait for it to complete. - No API-key profile AND
"status":"not_logged_in"— stop, loadokx-cex-authskill and follow login steps, wait for completion.
Step B — Confirm trading mode
Resolution:
- User intent is clear ("real"/"实盘"/"live" → live; "test"/"模拟"/"demo" → demo) → use it, inform user
- No explicit declaration → check conversation context for previous choice → reuse if found
- Nothing found → ask: "Live (实盘) or Demo (模拟盘)?" — wait before proceeding
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 5d ago Changed · +12 lines · +15 tokens per session b0301411d1ce
- 18d ago Changed · +37 lines · +19 tokens per session 6b982bb679ac
- 1mo ago Changed · +1 lines 42c2f8eff4fc
- 1mo ago Changed · -424 lines · +21 tokens per session dbe29ae62495
- 2mo ago Changed 34fac628c3f3
- 2mo ago Changed ff1676054629
- 2mo ago Changed cf6465daecff
- 2mo ago Changed 23cf263212ad
- 3mo ago First seen · 620 lines · 112 tokens per session scan A 2a2b508e8587
okx-cex-bot is a skill published in the GitHub repository okx/agent-skills (204 stars, last pushed 6d ago), licensed MIT. It adds 167 tokens to every session and 4,750 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to okx-cex-bot, differing in 0 lines, and is treated as a copy.
okx-cex-bot compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| okx-cex-botokx/agent-skills | Skill | 204 | 6d ago | MIT | A | 167 | Claude Code, Codex |
| evmNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 19 | Claude Code, Codex |
| hyperliquidNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 16 | Claude Code, Codex |
| solanaNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 18 | Claude Code, Codex |
| crypto-derivativesHKUDS/Vibe-Trading | Skill | 39k | yesterday | MIT | A | 37 | Claude Code, Codex |
| defi-yieldHKUDS/Vibe-Trading | Skill | 39k | yesterday | MIT | A | 37 | Claude Code, Codex |
| onchain-analysisHKUDS/Vibe-Trading | Skill | 39k | yesterday | MIT | A | 43 | Claude Code, Codex |