What problem does it solve? It handles OKX account authentication for the OKX CLI, covering first-time login, session expiry recovery, site selection, and logout so that trading, portfolio, and earn commands can run with valid credentials. ## Core Features & Use Cases - OAuth 2.0 Device Flow Login: Runs non-blocking okx auth login --manual with a verification URL and user code, supporting Global, EEA, US, and TR sites. - Pre-flight Auth Checks: Inspects okx config show and okx auth status to detect existing API keys, pending logins, or expired sessions before attempting any login. - Binary Management: Installs, updates, checks, and removes the okx-auth binary, with troubleshooting for spawn and CDN download failures. - Use Case: A user asks an AI agent to check their OKX balance, the command fails with "Session expired", and the agent walks them through re-authentication by presenting a verification link and code, then confirms the login status. ## Quick Start Ask the assistant to log you into your OKX account and follow the verification link and code it provides.