Skip to main content

Installation

npx xenarch-cli
Or install globally:
npm install -g xenarch

Agent commands

Wallet

# Generate a new wallet
xenarch wallet generate

# Import an existing private key
xenarch wallet import 0xYOUR_PRIVATE_KEY

# Connect via WalletConnect (scans QR code)
xenarch wallet connect
Wallets are stored at ~/.xenarch/wallet.json with chmod 600.

Check gate

xenarch check https://example.com/premium
Output:
Gate found!
  Price: $0.003 USDC
  Network: Base
  Splitter: 0xC6D3...62ae
  Collector: 0xabc1...publisher

Pay

xenarch pay https://example.com/premium
Executes the full flow: check gate, send USDC, verify, return access token.

History

# All payments
xenarch history

# Filter by domain
xenarch history --domain example.com

Publisher commands

Register

xenarch register
Interactive: prompts for email and password. Returns your API key.

Login

xenarch login

Sites

# List sites
xenarch sites

# Add a new site
xenarch site-add example.com

# View earnings
xenarch stats <site-id>

Payout

xenarch payout 0xYOUR_WALLET_ADDRESS