okx-how-to-play
okx/onchainos-skills
Onchain OS onboarding entry router—guides first-time users into concrete DApp workflows in ≤3 turns.
What is okx-how-to-play?
This skill serves as the primary entry point for new Onchain OS users. It detects login status, displays a contextual welcome banner, handles email or API Key authentication, and routes users into their chosen workflow (trading, yield, signals, or AI guidance).
- Checks wallet login status and renders appropriate welcome banner
- Offers email or API Key login methods with guided setup
- Routes users to specific workflows (DEX trading, DeFi yield, smart-money signals, daily brief, OKX.AI)
- Handles free-form user queries and maps them to relevant skills
- Enforces security best practices (no inline credential pasting, local env-var setup only)
- Supports multi-language rendering with proper translation of UI elements
How to install okx-how-to-play
npx skills add https://github.com/okx/onchainos-skills --skill okx-how-to-play- Onchain OS installed and accessible via `onchainos` CLI commands
- Access to `references/welcome.md` for banner templates and routing logic
- Access to `_shared/preflight.md` for pre-flight checks
- For API Key login: OKX developer account and credentials from https://web3.okx.com/onchainos/dev-portal
How to use okx-how-to-play
- 1.Run `onchainos wallet status` to check login state (the skill does this automatically)
- 2.If logged out, view the welcome banner and reply with `login` or a numbered workflow pick
- 3.For email login: provide your email, receive OTP, enter the code to authenticate
- 4.For API Key login: set `OKX_API_KEY`, `OKX_SECRET_KEY`, and `OKX_PASSPHRASE` as local environment variables, then confirm ready to proceed
- 5.After login, the skill automatically loads your chosen workflow or displays the logged-in welcome banner with your addresses and balance
Use cases
- New user installs Onchain OS and asks 'how do I play?' or 'what can I do?'
- User completes login and needs to be routed to their chosen workflow
- User asks about meme sniping, yield farming, or smart-money tracking without specifying a workflow
- User attempts to log in via email or API Key for the first time
- Returning user checks their wallet balance and available options from the welcome menu
- First-time Onchain OS users seeking onboarding
- Developers integrating OKX Agentic Wallet authentication
- Users choosing between email and API Key login methods
- Anyone exploring DApp workflows (trading, yield, signals, AI)
okx-how-to-play FAQ
Email login is recommended for most users (30 seconds setup). API Key login is faster if you're already an OKX developer with credentials; it requires setting three environment variables locally before proceeding.
No. Never paste credentials in chat. Set them as local environment variables following the dev-portal instructions at https://web3.okx.com/onchainos/dev-portal, then confirm you're ready.
If you picked a workflow from the welcome menu, that workflow loads automatically. If you just replied 'login', you'll see the logged-in welcome banner showing your wallet addresses and balance.
You can ask a free-form question (e.g., 'how do I find yield opportunities?') and the skill will route you to the matching workflow or skill (e.g., okx-defi-invest).
Check that your environment variables are set correctly (for API Key) or that you entered the OTP code correctly (for email). Do not re-enter credentials in chat—verify locally and try again.
Full instructions (SKILL.md)
Source of truth, from okx/onchainos-skills.
name: okx-how-to-play description: "Onchain OS onboarding entry router. Triggers: 'what is onchainos', 'what is onchain os', 'what can onchainos do', 'what does onchainos do', 'how do I use this', 'how do I play', 'how to use onchainos', 'how to play onchainos', 'how does onchainos work', 'how do I start', 'getting started', 'tutorial', 'onboarding', 'first time', 'I just installed', 'now what', 'what do I do now', 'where do I start', 'who are you', 'what are you', 'introduce onchainos', 'tell me about onchainos', 'I'm new'. NOT for: questions where the subject is explicitly 'OKX.AI' — use okx-ai-guide instead." license: MIT metadata: author: okx version: "4.0.1" homepage: "https://web3.okx.com"
Onchain OS — How to Play (Entry Router)
The first-time / "I don't know what to do" entry point. Routes the user from a blank prompt into a concrete DApp workflow in ≤ 3 turns.
Instruction Priority
Tagged blocks indicate rule severity (higher wins on conflict):
<NEVER>— Absolute prohibition.<MUST>— Mandatory step. Skipping breaks the flow.<SHOULD>— Best practice.
Pre-flight Checks
<MUST> > Read `../okx-agentic-wallet/_shared/preflight.md`. If that file does not exist, read `_shared/preflight.md` instead. </MUST>Authoring Pattern — Free Zone vs Fixed Zone
Most user-facing copy in this flow is split into two parts:
- Free zone — the agent answers the user's actual question or acknowledgement first, in 1–5 sentences, contextually woven. No fixed copy. The user shouldn't feel like they hit a script.
- Fixed zone — the canonical English template block (welcome banner, login options, API Key heads-up). At runtime:
- Render all natural-language prose in the user's language.
- Quoted reply words inside prose (e.g.
"login") MUST translate with their sentence. Leaving an English quoted word inside otherwise-translated Chinese / Japanese / etc. prose is a translation bug — the quotes do NOT make the word a literal trigger. - Keep literal: emojis,
{placeholders},1–N, code identifiers / commands / URLs, markdown structure.
This applies to: Welcome Banner, Login Method Choice, and API Key Login Step 1 heads-up.
<MUST> **Bridging is mandatory.** End the free zone with a transitional half-sentence (e.g. "let me drop the menu" / "here's where to start ↓") — never with a hard period followed by an unrelated fixed-zone line. Self-check before emitting: read the free-zone tail + first fixed-zone line as a single unit; if they feel like two separate posts pasted together, rewrite the free-zone tail. </MUST>Status Check
<MUST> Run `onchainos wallet status` **before** showing any login or welcome text. Use the `loggedIn` field to branch. </MUST>onchainos wallet status
loggedIn: false→ render the logged-out Welcome Banner.loggedIn: true→ render the logged-in Welcome Banner.
Welcome Banner
<MUST> Render the banner from `references/welcome.md` — it covers placeholders (`{evm_address}` / `{solana_address}` / `{balance}` from `wallet balance`; geoblock variant from `wallet geoblock`), the template, and pick routing (Step 4). Variant A = 4 picks (Polymarket allowed); Variant B = 3 picks (Polymarket geoblocked). Numbered picks are interpreted strictly against the currently-rendered menu (digit-routing contract per welcome.md §4). Never fabricate addresses or balance. If `wallet balance` fails despite `loggedIn: true` (stale session — refresh token expired), prompt the user to log in again per welcome.md §2.2 instead of rendering a partial banner. </MUST>Login Method Choice
Reached when the user asks to log in (either by replying login to the logged-out banner, or by picking a workflow option from the welcome menu while logged out).
Free zone (1–5 sentences, agent's own words): answer whatever the user actually asked / acknowledged. If they came from a workflow pick, briefly explain that login unlocks that workflow. Then segue naturally into the fixed-zone choice below.
Fixed zone — render the template below in the user's language:
Welcome to Agentic Wallet — the Onchain OS wallet built for agents. Pick a login method:
1. 📧 Email (recommended — 30 seconds)
2. 🔑 API Key (already an OKX developer? Fastest path)
Reply 1 or 2 ↓
If the user replies 1 or "email" → Email Login.
If the user replies 2 or "API Key" → API Key Login.
Email Login
Handled by okx-agentic-wallet skill's Authentication section. Steps:
- Ask for email →
onchainos wallet login <email> --locale <locale> - Ask for OTP code →
onchainos wallet verify <code> - On success → Post-login routing below.
API Key Login
Two steps total: (1) one-time heads-up so the user knows what env vars to set and where to get them, (2) run onchainos wallet login once they confirm.
Step 1 — Heads-up (one-shot, fixed zone)
Free zone (1–5 sentences): if the user has any other question, answer it first. Then segue naturally into the heads-up.
Fixed zone — render the template below in the user's language:
You'll need to set three API Key environment variables before logging in:
1. `OKX_API_KEY` — API Key
2. `OKX_SECRET_KEY` — Secret Key
3. `OKX_PASSPHRASE` — Passphrase
You can find these at https://web3.okx.com/onchainos/dev-portal.
**Attention ⚠️:** Do not paste credentials into the chat — follow the dev-portal instructions and set them locally.
Then stop and wait for the user to confirm they're ready (e.g. "done / ok / ready").
Step 2 — Login
Once the user confirms, run:
onchainos wallet login
On success → Post-login routing below. On login failure, surface the error and ask the user to verify their env vars (do NOT re-show the heads-up — they already saw it).
<NEVER> - Do NOT accept API Key / Secret / Passphrase inline in chat. If the user pastes credentials in chat: do NOT echo, do NOT use the values, ask them to delete the message + rotate the keys + set the env vars locally instead. - Do NOT walk the user through generating keys, opening URLs, creating `.env` files, editing `.gitignore`, or any other multi-step setup. The heads-up is one-shot — they handle their own local setup. - Do NOT ask the user to paste the browser URL or any callback back to the CLI. The dev-portal is read-only. </NEVER>Post-login routing
After login completes successfully:
- If the user came from picking the OKX.AI option (Reply
1) while logged out: automatically loadokx-ai-guideand follow it. Do NOT re-render the welcome banner. - If the user came from picking the Daily brief option (option
4in Variant A / option3in Variant B) while logged out: automatically load~/.onchainos/workflows/daily-brief.mdand follow it. Do NOT re-render the welcome banner. - If the user came from picking any other workflow pick while logged out: automatically load the corresponding workflow file (
~/.onchainos/workflows/<file>.md) and follow it. Do NOT re-render the welcome banner. - If the user came from replying
login(or equivalent) to the logged-out banner: render the logged-in Welcome Banner so they see their addresses + balance.
Free-form fallback
If the user types something other than a numbered pick or login, answer in the free zone, then route to the matching skill / workflow:
| Intent | Route to |
|---|---|
| meme sniping / pump.fun / new launches | okx-dex-trenches |
| follow smart money / KOL / whale | okx-dex-signal (or load smart-money-signals.md) |
| yield / earn / stake / DeFi | okx-defi-invest |
| login (free-form, not as a banner reply) | this skill's Login Method Choice |
| named DApp + action verb (Aave / Hyperliquid / etc.) | okx-dapp-discovery |
Acceptance Criteria
- Banner variant matches auth state —
loggedIn: falserenders the logged-out variant (no addresses);loggedIn: truerenders the logged-in variant (addresses + balance). - Skill picks load without login gate — Polymarket (option 2 in Variant A) and USDC APY (option 3 in A / option 2 in B) load even when logged out; each loaded skill handles its own auth.
- OKX.AI (Reply 1) and Daily brief (option 4 in A / option 3 in B) gate on login — when logged out, route through Login Method Choice first, then auto-resume the chosen target (
okx-ai-guideordaily-brief.md) WITHOUT re-rendering the welcome banner. Smart-money / new-token intents are no longer numbered picks but remain reachable via the free-form fallback table (okx-dex-signal/okx-dex-trenches). - Turn budget — ≤ 3 turns end-to-end for a new user; ≤ 2 turns for a returning user picking a workflow + login.
- Disclaimer placement — the disclaimer is the final segment of every rendered banner (both variants, both auth states).
- Stale-session fallback — when
wallet statusreturnsloggedIn: truebutwallet balancefails (e.g. expired refresh token) or lacks the address / balance fields, the flow prompts re-login (routes to Login Method Choice) instead of rendering a partial or fabricated logged-in banner; after re-login it renders the logged-in banner.
Related skills
More from okx/onchainos-skills and the wider catalog.

okx-onchain-gateway
Broadcast transactions and estimate gas across 20+ blockchains with simulation and order tracking.

okx-security
Security scanning for tokens, transactions, DApps, signatures, and approvals across EVM and Solana chains.

okx-task-watch
Live monitor for OKX task notifications and pending decisions in Claude Code and Codex.

okx-wallet-portfolio
Look up wallet balances, token holdings, and portfolio value across 20+ blockchains.

okx-x402-payment
DEPRECATED — use okx-agent-payments-protocol instead. Legacy redirect for x402 and MPP payment flows.

cubox
Cubox CLI is a callable personal reading memory system that enables you to search, read, and use saved content, perform semantic (RAG-based) queries, access articles, highlights, and metadata, save URLs, update content states, and retrieve annotations and structure such as folders and tags. Use this tool when a task depends on the user’s reading history or requires context from their Cubox library.