Install any skill in seconds. Free to start, no credit card required.
Get Started Free →OKX Agentic Wallet skill manages login, balances, transfers, contract calls, swaps, bridges and Gas Station payments via onchainos CLI.
Use this skill ↓55% 68%+14 ptsof test cases passed
Passed 15 of 22 test cases with the skill, and 12 of 22 without it.
3 of 3 safety checks passed
Not used yet
Wallet lifecycle: authentication, balance, addresses, token transfers, transaction history, contract calls, and message signing. Shared Confirming / display / security policy is in SKILL.md.
Commands that need auth (balance, send, contract-call, history, sign-message) require login. Social login opens a browser login page where the user completes sign-in.
wallet status --include-subscriptions; otherwise run plain wallet status. If data.loggedIn is true and this is not a re-login, confirm the session to the user, render an existing data.postLoginSubscriptions per §Post-login subscription display in task-user-playbook.md, then continue with the rest of a compound request; an absent field means render nothing OKX.AI-related. When status runs only as an internal precondition for another action (balance, send, …), never pass --include-subscriptions and never render the subscription display. If not logged in, or on an explicit re-login request, continue.init → auto-poll:
a. Get the link. Run wallet login --phase init — it returns { loginUrl, authSessionId, opened, nextSteps } immediately and best-effort opens the browser. nextSteps.completeLogin is the exact poll command with authSessionId interpolated; when opened == false, nextSteps.openLoginUrl (equal to loginUrl) is the URL to open first. Keep authSessionId for the poll.
b. Show the link + reminder (translate to the user's language; keep the structure, substitute authSessionId and loginUrl):
Your login link is ready — I'll open it in your browser. • Session ID (session_id):
<authSessionId>• Login link (if the browser didn't open, click to open it manually):<loginUrl>Fetching the login result will block your other operations for up to 5 minutes. c. Auto-poll. Immediately run
wallet login --phase poll --session-id <authSessionId>(the id from step a) — don't wait for the user. On timeout / no result, tell the user you couldn't get it yet: finish login on the already-open page and tell you to re-check (same id), or start over from--phase init(new id); don't guess whether a previous session is still valid.
poll response. If the response has "isNew": true, output the Policy Settings template then the Wallet Export template (portal-actions.md); if false, skip. Before returning, the CLI always sends the device-registration heartbeat. When the pre-registration probe safely proves this is a new device, the CLI adds it to every explicit subscription receive list using environment-scoped durable progress and only then produces the mandatory post-login snapshot. An existing or unclassifiable device is never automatically re-enabled. When data.postLoginSubscriptions is present, render it per §Post-login subscription display in task-user-playbook.md; when absent, render nothing OKX.AI-related. Never run a separate my-subscriptions or device-list command after a successful poll.Login creates the first account automatically — never call wallet add for it. Use wallet add only when already logged in and the user explicitly wants another account (then output the Policy Settings template, see portal-actions.md).
Render verbatim from the wallet login --phase poll response data:
Account Info
- Login method: {method}{ ({email}) }
- Current account: OKX Wallet - {accountName} ({accountCount} accounts total)
- Total assets: ${totalValueUsd}
Addresses
- EVM: {evmAddress}
- Solana: {solAddress}
Field rules:
{method} ← loginType: email→"Email", google→"Google", apple→"Apple", ak→"API Key". ({email}) only if email is non-empty; otherwise omit the parentheses.totalValueUsd is empty; omit an address line if its value (evmAddress / solAddress) is empty.Next to this one in the catalogue, plus more from the same author.