01
It starts by itself
every morning. Runs in Claude Code routine or cron.
- ↻ every morning
0 8 * * *
Your OKX bots, checked daily.
Install the OKX CEX Bot skill and make it a habit: follow https://gethabit.dev/skills/okx/okx-cex-bot.md
10K installs194 starsMIT licenceSource on GitHub ↗

OKX CEX Bot
by okx · 10K installs
The skill
The okx cex bot skill lets an agent create, stop, amend and monitor Grid, DCA Martingale and Smart Portfolio bots on OKX through the okx CLI, for traders who want bot control from chat.
Only when you ask.
The habit
Your OKX bots, checked daily.
↻ Runs by itselfevery morning
When does it start? How does it check its work? What does it remember?
Stops after one pass over all running bots and at most 3 confirmed write commands per run.
Run okx config show --json and okx auth status --json; if not logged in, hand over to the okx-cex-auth skill.
Use live or demo as you set it, and ask once if it is not clear.
Run the orders commands for grid, dca and smart-portfolio to get each algoId.
Run details for each bot and note P&L and positions in the log.
Suggest a stop, amend or margin change and run it only after you confirm.
Run orders, details or orders --history to confirm each change took effect.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the OKX CEX Bot skill helps.
No. The skill never moves funds by itself, and every write command needs your OK first.
No. The bots run on OKX servers, so the loop only watches and adjusts them.
Yes. Pick demo mode and the commands run against simulated trading.
Copy the prompt at the top into your agent. It installs the skill from okx/agent-skills and sets up the habit. Or run npx skills add okx/agent-skills --skill okx-cex-bot.
Yes. It is published under MIT. Habit is free too.
Install the OKX CEX Bot skill and make it a habit: follow https://gethabit.dev/skills/okx/okx-cex-bot.md
All okx skills →More ops skills →
Works in
Made by okx, published under MIT. Habit links to the original and never changes it. Is this your skill?