Skip to content

CLI Commands

payre config

Manage CLI configuration.

bash
# Set your developer secret key
payre config set-key pyr_sk_live_xxx

# Set API URL (default: https://api.payre.dev)
payre config set-url https://api.payre.dev

# Show current config
payre config show

payre earnings

View your earnings.

bash
payre earnings

Output:

Total earnings: $145.30
Today: $12.50

By tool:
  search    $89.20  (17,840 calls)
  generate  $56.10  (2,805 calls)

payre tools

Manage your registered tools.

bash
# List your tools
payre tools list

# Register a new tool
payre tools register --name search --description "Full-text search" --price 0.005

payre charges

View recent charges.

bash
# List last 20 charges
payre charges

# Filter by tool
payre charges --tool search

Advanced Commands

These commands are for the legacy agent discovery system and are not needed for typical payment workflows.

bash
# List registered agents
payre agents list

# Resolve a query to agents
payre resolve "book a flight"

# Create a grant and invoke an agent
payre grants create --caller user1 --target agent1
payre invoke agent1 --grant gnt_xxx --capability search --payload '{}'