Scan your whole stack
From OX Research Newsroom
Are you using @itpay/cli?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.2.83
@itpay/cli was last scanned on 25 Nov 2026 at version 0.2.83. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.2.83 LATEST | 25 Nov 2026 | No rules fired |
| 0.2.82 | 25 Nov 2026 | No rules fired |
| 0.2.81 | 24 Nov 2026 | No rules fired |
| 0.2.80 | 23 Nov 2026 | Not shown |
| 0.2.79 | 23 Nov 2026 | Not shown |
Findings for v0.2.83. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.2.83; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
The official V3 CLI and the single ItPay entry point for services, purchases, account history, and human-authorized content reads.
itpay is the only public CLI entry point, and $itpay is its user-facing Skill invocation. The Agent first distinguishes a new service request, previously purchased content, order history, or a refund. Seller workflows will use the same entry point later and are not implemented yet.
npm install -g @itpay/cli
itpay install --json
itpay --agent-type codex-desktop readyz --json
# execute the returned next.command until the typed Skill is loaded
Official Agent install prompt(可直接复制给 Agent):
安装或更新官方
@itpay/cli。从itpay install --json开始,选择你真实 所在的平台,完整执行 iTPay 返回的每个next.command并读取内置 Skill。 初始化后,根据我的自然语言需求自行使用 iTPay,不要让我运行命令,也不要向 我讲解命令、内部 ID 或技术步骤。只有需要我选择、授权、付款、提供联系方式 或确认退款时,才用通俗语言询问我;展示官方操作入口后停止等待。不要猜命令、 切换身份或环境、绕过授权或重复创建资源。准备完成后只回复“iTPay 已就绪”。
Use a separate test prompt to set the exact official Dev Backend. Never put a Dev override in the public install prompt.
The CLI defaults to the production Backend https://app.itpay.ai. Explicit sandbox runs may set ITPAY_BACKEND_URL=https://sandbox.itpay.ai; every other Backend URL is rejected before network or local state access.
Normal JSON commands return one bounded envelope:
status current command state
result facts needed at this step
handoff optional human-visible URL/image fields for the current Host
instruction how the Agent must use the result
next zero or one preferred executable command
recovery exceptional recovery commands only
Run next.command unchanged after filling only explicit placeholders or user-provided required fields. Do not inspect raw APIs or hardcode a service workflow.
Normative per-command contracts: CLI Command Reference.
| Agent Type | Default Host |
|---|---|
codex-desktop |
codex |
codex-cli |
terminal |
claude-code-desktop |
claude-code |
claude-code-cli |
terminal |
workbuddy |
plain-chat |
zcode |
plain-chat |
doubao-work |
plain-chat |
kimi-code |
terminal |
openclaw |
必须显式提供 |
--agent-type identifies the stable runtime and registered Agent instance. Every returned ItPay command preserves it. Different windows or chats of the same type reuse one Agent Instance; they are not separate identities. --host only selects the human presentation surface, and --target only routes output to a Host destination. Use itpay install <agent_type> --json for the exact responsibility.
The local installation keeps one Ed25519 private key and a separate registration for each official Backend, with one Agent Instance per Agent Type under each registration. A rejected session is renewed and the same request is retried once; revoked v2 registrations are never silently replaced.
readyz: selected official Backend liveness; catalog list: compatibility-gated discovery.services start/invoke/action/checkout/next: generic Service Execution flow.cart add/show/remove/clear/next, buy: canonical Cart and ordinary Checkout flow.checkout: authoritative payment and fulfillment recovery.services read-result: read one human-granted protected result.order, orders: exact order and account order views.vault list/access/read: find and read previously purchased content after time-limited human authorization.refund create/list/get/watch/cancel: Refund Owner flow.services get/events: redacted support diagnostics; normal flows should use services next.install, skill show, docs list/show/search: offline packaged guidance.device recover: operator-confirmed Backend reset recovery that preserves the local private key.pay: operator escape hatch only; normal buyers use the ItPay Checkout page.Run itpay <command> --help or browse the command index for parameters.
Use server-backed recovery before creating another resource:
itpay --agent-type <agent_type> next --json
itpay --agent-type <agent_type> services list --json
itpay --agent-type <agent_type> services next <service_execution_id> --json
itpay --agent-type <agent_type> services checkout <service_execution_id> --resume --json
itpay checkout --id <checkout_id> --token <display_token> --json
The local ~/.itpay-v3 directory stores one owner-only signing key, Backend-scoped Device registrations and Agent instances, idempotency operations, and recovery handles. Production uses cart.json / operations.json; sandbox uses cart.sandbox.json / operations.sandbox.json. Backend state remains authoritative. Do not delete or rotate this identity to recover quota.
ITPAY_AGENT_TYPE: stable alternative to global --agent-type.ITPAY_BACKEND_URL: optional sandbox override; only the exact official URL https://sandbox.itpay.ai is accepted. Unset it for production.ITPAY_BEARER_TOKEN: optional account-scoped browser session for legacy account reads. Local Agents normally use signed Device Authority plus the time-limited human authorization returned by vault access.ITPAY_CART_SESSION_PATH: local recovery-state path override.ITPAY_CURRENCY: ordinary Cart currency, default CNY.ITPAY_IDEMPOTENCY_KEY: explicit operation key for deterministic testing; normal use persists operation IDs automatically.ITPAY_IDE_IMAGE_ATTACH=0: disable local Checkout and authorization image download when the runtime filesystem is read-only.ITPAY_IDE_IMAGE_DIR_OVERRIDE: override the local handoff image directory.Provider credentials, Buyer identity, payment provider choice, amount, refund policy, quota, grant scope, and delivery access are never client-owned environment settings.
npm run lint
npm test
npm run test:coverage
npm run test:package
npm run pack:dry-run
npm install configures the repository's pre-commit hook. Every commit must pass
npm run lint and npm test; do not bypass the hook for pull-request changes.
Source boundaries:
src/main.ts: parser and error-envelope wiring.src/client: typed HTTP access.src/commands: command orchestration and public output projection.src/render: Host presentation only; no business HTTP.src/state: local Device Authority, idempotency journal, and recovery handles.docs/cli-reference: normative command contracts.docs/agent/buyer: packaged progressive workflow guidance.Use itpay services run <service_id> --input-json ./input.json --json for a published workflow. The input file must contain a JSON object matching the service input schema. With no input file, the CLI reports required fields and a command to continue the same execution.
Use itpay services run <service_id> --execution <execution_id> --json to resume. At payment, the CLI uses the existing Checkout QR/card handoff. The backend continues after verified payment even if the CLI exits. --timeout <seconds> controls initial status polling (default 120, maximum 600). Use existing order/refund commands for refund requests; an application is not a successful refund until its final status confirms success.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.