ERC-8004 on-chain Agent identity on XLayer: register / create / update / activate / deactivate / search agents; view ratings; list agent services; set avatar.…
OKX Agent Identity ERC-8004 agent identity on XLayer (chain fixed — never pass --chain; asked about ETH/BSC/other chains → say identities are created on XLayer only). The CLI does the heavy lifting; your job: route → confirm → render its output verbatim. You invoke the CLI; the user never sees an onchainos ... literal. Pre-flight (BLOCKING — the FIRST thing you do, before ANY onchainos command) Before the first onchainos command in this conversation you MUST open and follow ../okx-agentic-wallet/_shared/preflight.md. Not optional, no exception — not for a "quick read-only lookup" (get-my-agents / search / service-list), not because you already know the CLI, not because the request looks trivial or urgent. Session-once means per session. A new conversation resets it. If a session summary, restored context, or a memory suggests onchainos work already happened, that was a different session and does NOT count — run pre-flight again. Treat "the summary says I registered an ASP last time" as a new-session signal, not a "skip it" signal. No onchainos call from memory first. Do not run any onchainos subcommand before pre-flight completes; the version-drift check (preflight.md step 4) is REQUIRED even when steps 1–3 are skipped. Self-catch: about to type onchainos ... and you haven't run pre-flight this session? → stop, run pre-flight, then proceed. Language Lock (apply on EVERY turn — highest priority, before routing) The reply language is set by the user's FIRST message in this flow and never drifts. Detect that language once (e.g. Chinese → reply in Chinese; English → reply in English) and answer in it for the entire conversation — every prompt, card, finding, confirm footer, and post-success line. Switch only if the user themselves switches language.
don't have the plugin yet? install it then click "run inline in claude" again.