← Back to home

Documentation

Complete CLI reference for Agenzo.

Quick Start

Get up and running in 60 seconds.

agenzo-token-cli
❯npm install -g agenzo-token-cli

Install the CLI globally

❯agenzo-token-cli login

Sign in with a magic link

❯agenzo-token-cli developers create

Create a developer identity

❯agenzo-token-cli keys create

Generate an API key (shown once)

❯agenzo-token-cli payment-methods add

Add a credit card with 3DS

❯agenzo-token-cli payment-tokens create --type vcn --amount 5000

Issue a $50 virtual Visa card

❯agenzo-token-cli payment-tokens create --type network-token

Get a network token + cryptogram

❯agenzo-token-cli payment-tokens create --type x402 --pay-to 0x... --amount 1000000

Sign an x402 payment (1 USDC)

Full reference below ↓

Installation

Requires Node.js 18+. After installation, the `agenzo-token-cli` command is available globally.

❯ npm install -g agenzo-token-cli
added 42 packages in 3s

Authentication

Login

Sign in via magic link. Enter your email, then click the link in your inbox. If the email is not registered, you'll be prompted to create a new organization.

❯ agenzo-token-cli login
? Email: user@acme.com
β„Ή Magic link sent to user@acme.com
β ‹ Waiting for verification...
βœ“ Logged in as Acme Corp (org_01HZ...)
  Access token expires in 8 hours

Logout

Sign out and remove local credentials for the current organization.

❯ agenzo-token-cli logout
βœ“ Logged out from Acme Corp
  Local credentials removed

Configuration

Set API host

Override the API host for local development or custom deployments. Default: https://agenzo-token.everonet.com

❯ agenzo-token-cli config set-host <host>
βœ“ API host updated
  Host        http://localhost:3000

Show configuration

Display the current CLI configuration including API host, API path, and active organization.

❯ agenzo-token-cli config show
  API Host    https://agenzo-token.everonet.com
  API Path    /api/v3/agent-pay
  Active Org  org_01HZ... (Acme Corp)

Organizations

View current organization

Display the name, ID, email, status, and timestamps of your current organization.

❯ agenzo-token-cli orgs me
  ID          org_01HZ...
  Name        Acme Corp
  Email       admin@acme.com
  Status      ACTIVE
  Created     2026-01-15 10:30:00
  Updated     2026-04-20 14:22:00

Update organization

Update organization name (takes effect immediately) or email (requires verification via magic link).

❯ agenzo-token-cli orgs update --name "New Name"
βœ“ Organization updated
  Name        New Name
❯ agenzo-token-cli orgs update --email new@example.com
β„Ή Verification email sent to new@example.com
  Please click the link to confirm the email change

List organizations

List all locally logged-in organizations. The active one is marked with *.

❯ agenzo-token-cli orgs list
  ID              Name            Email               Status
* org_01HZ...     Acme Corp       admin@acme.com      ACTIVE
  org_02AB...     Beta Inc        hello@beta.io       ACTIVE

Switch organization

Switch the active organization. The target org must already be logged in locally.

❯ agenzo-token-cli orgs switch <org_id>
βœ“ Switched to Beta Inc (org_02AB...)

Developers

Create a developer

Create a developer identity. You'll be prompted for a name and email, or pass them as flags: --name, --email.

❯ agenzo-token-cli developers create
? Developer name: My Agent
? Developer email: agent@acme.com
βœ“ Developer created
  ID          dev_01HZ...
  Name        My Agent
  Email       agent@acme.com
  Status      ACTIVE

List developers

List all developers under the current organization.

❯ agenzo-token-cli developers list
  ID              Name            Email               Status
  dev_01HZ...     My Agent        agent@acme.com      ACTIVE
  dev_02AB...     Bot Alpha       bot@acme.com        ACTIVE

Get developer details

Show full details for a specific developer.

❯ agenzo-token-cli developers get <developer_id>
  ID          dev_01HZ...
  Name        My Agent
  Email       agent@acme.com
  Status      ACTIVE
  Created     2026-02-10 09:15:00
  Updated     2026-04-18 11:30:00

Update a developer

Update a developer's name or email.

❯ agenzo-token-cli developers update <developer_id>
? New name (leave blank to skip): Agent v2
βœ“ Developer updated
  Name        Agent v2

API Keys

Create an API key

Generate an API key for a developer. The full key is shown only once β€” save it immediately. Flags: --developer, --name.

❯ agenzo-token-cli keys create
? Developer ID: dev_01HZ...
? Key name: production
βœ“ API key created
  ID          key_01HZ...
  Developer   dev_01HZ...
  Name        production
  Prefix      dev_key_live_a1b2...
  Status      ACTIVE

⚠ Save this key now. You will not see it again.
  Key         dev_key_live_a1b2c3d4e5f6g7h8i9j0...

List API keys

List all API keys for a developer. Full key values are never shown.

❯ agenzo-token-cli keys list --developer <developer_id>
  ID              Developer       Name          Prefix                  Status    Last Used
  key_01HZ...     dev_01HZ...     production    dev_key_live_a1b2...    ACTIVE    2026-04-22 16:00
  key_02AB...     dev_01HZ...     staging       dev_key_live_x9y8...    ACTIVE    2026-04-21 09:30

Get API key details

Show details for a specific API key (prefix, status, last used).

❯ agenzo-token-cli keys get <key_id>
  ID          key_01HZ...
  Developer   dev_01HZ...
  Name        production
  Prefix      dev_key_live_a1b2...
  Status      ACTIVE
  Created     2026-03-01 08:00:00
  Last Used   2026-04-22 16:00:00

Rotate an API key

Generate a new secret for an existing key. The old secret is immediately invalidated.

❯ agenzo-token-cli keys rotate <key_id>
βœ“ API key rotated
  Developer   dev_01HZ...
  Rotated     2026-04-22 17:00:00

⚠ Save this key now. You will not see it again.
  Key         dev_key_live_n3w5ecr3tk3y...

Disable an API key

Permanently disable an API key.

❯ agenzo-token-cli keys disable <key_id>
βœ“ API key disabled
  Developer   dev_01HZ...
  Disabled    2026-04-22 17:05:00

Payment Methods

All payment-methods commands require an API key (--key flag or interactive prompt).

Add a payment method

Add a credit card. You'll be prompted for card number, expiry (MMYY), and CVV (masked input). After submission, complete 3DS verification via the email link. Flags: --key, --type (default: card), --email, --member.

❯ agenzo-token-cli payment-methods add
? API Key: dev_key_live_a1b2...
? Payment type: card
? Email: user@acme.com
? Card number: 4242424242424242
? Expiry (MMYY): 1226
? CVV: ***
βœ“ Payment method created (pending verification)
  ID              pm_01HZ...
  Status          PENDING
  Magic Link      mlt_01HZ...
  Expires         2026-04-22 17:20:00
β„Ή Check your email to complete 3DS verification

List payment methods

List all payment methods. Optionally filter by member.

❯ agenzo-token-cli payment-methods list
  ID              Brand       First Six   Last Four   Status
  pm_01HZ...      Visa        424242      4242        ACTIVE
  pm_02AB...      Mastercard  512345      6789        PENDING
❯ agenzo-token-cli payment-methods list --member <member_id>

Get payment method details

Show details for a payment method. Use this to poll for 3DS verification status (PENDING β†’ ACTIVE or FAILED).

❯ agenzo-token-cli payment-methods get <pm_id>
  ID          pm_01HZ...
  Type        card
  Brand       Visa
  First Six   424242
  Last Four   4242
  Exp         12/26
  Status      ACTIVE
  Member      member_01
  Created     2026-04-22 17:10:00

Disable a payment method

Disable a payment method and cascade-revoke all active payment tokens under it.

❯ agenzo-token-cli payment-methods disable <pm_id>
βœ“ Payment method disabled
  ID          pm_01HZ...
  Tokens revoked: 3

Payment Tokens

All payment-tokens commands require an API key (--key flag or interactive prompt).

Create a VCN (Virtual Card)

Issue a one-time virtual Visa card. Amount is in cents (1–50000, i.e. $0.01–$500.00). Flags: --key, --payment-method, --member, --currency (default: USD).

❯ agenzo-token-cli payment-tokens create --type vcn --amount <cents>
βœ“ VCN created
  Token ID    ptk_01HZ...
  Card        4242 **** **** 1234
  Expiry      12/26
  CVV         ***
  Limit       $50.00
  Balance     $50.00
  Currency    USD
  Status      ACTIVE

Create a Network Token

Get a Visa/Mastercard network token with a one-time cryptogram. Flags: --key, --payment-method, --member.

❯ agenzo-token-cli payment-tokens create --type network-token
βœ“ Network Token created
  Token ID      ptk_01HZ...
  Brand         Visa
  First Six     400000
  Last Four     1234
  ECI           05
  Cryptogram    AgAAAAAABk4DFkZGJhY2...
  Expiry        12/26
  Value         4000001234567890
  Status        ACTIVE

Create an X402 Signature

Sign an EIP-712 payment backed by a credit card. Flags: --key, --payment-method, --member, --pay-to, --amount (USDC smallest unit), --nonce, --network (default: base), --deadline (Unix timestamp).

❯ agenzo-token-cli payment-tokens create --type x402
βœ“ X402 signature created
  Token ID     ptk_01HZ...
  Pay To       0xabc...def
  Amount       1.000000 USDC
  Network      base
  Deadline     2026-04-23 00:00:00
  Signature    eyJhbGciOiJFUzI1NiIs...
  Status       ACTIVE
β„Ή Use the signature value in your X-PAYMENT header

List payment tokens

List all payment tokens. Optionally filter by --type (vcn, network-token, x402) and --member.

❯ agenzo-token-cli payment-tokens list
  Token ID        Type             Status      Member        Summary
  ptk_01HZ...     vcn              ACTIVE      member_01     **** 1234 | $50.00
  ptk_02AB...     network_token    ACTIVE      member_01     Visa | **** 7890
  ptk_03CD...     x402             CONFIRMED   member_02     1.00 USDC | base
❯ agenzo-token-cli payment-tokens list --type vcn --member <member_id>

Get payment token details

Show full details for a payment token. Output format varies by token type.

❯ agenzo-token-cli payment-tokens get <token_id>
  Token ID        ptk_01HZ...
  Type            vcn
  Status          ACTIVE
  Payment Method  pm_01HZ...
  Member          member_01
  Created         2026-04-22 17:30:00
  --- VCN Details ---
  Card            **** 1234
  Expiry          12/26
  Limit           $50.00
  Balance         $45.50
  Currency        USD

Revoke a payment token

Revoke an active payment token. For VCN: closes the card and settles with Evo. For X402: marks as revoked. Cannot revoke tokens already in a terminal state.

❯ agenzo-token-cli payment-tokens revoke <token_id>
βœ“ Payment token revoked
  Token ID    ptk_01HZ...
  Status      REVOKED
  Revoked     2026-04-22 18:00:00

Global Options

  • --help, -h β€” Show help for any command
  • --version, -v β€” Show CLI version
  • --verbose β€” Show detailed logs on error
  • --key <api_key> β€” API key for runtime commands (payment-methods, payment-tokens)