@zauthx402/cli
v0.1.1
Published
CLI for discovering x402-enabled paid APIs from the zauth directory
Maintainers
Readme
Quick Start
# Search for paid APIs
npx @zauthx402/cli search weather
# Browse verified endpoints
npx @zauthx402/cli list --verified --network base
# Check endpoint health
npx @zauthx402/cli status https://example.com/api --jsonAgent Skills
Install skills into any agent framework that supports the Agent Skills Specification:
npx skills add zauthofficial/agent-skillsAvailable Skills
| Skill | Description |
|---|---|
| discover-x402-services | Search for x402-enabled paid APIs by keyword or network |
| check-endpoint-status | Check health, pricing, and uptime of a specific endpoint |
CLI Reference
search <query>
Search the directory by keyword.
npx @zauthx402/cli search weather --json
npx @zauthx402/cli search "AI agent" --network solana --verifiedlist
Browse all endpoints with optional filters.
npx @zauthx402/cli list --verified --limit 20
npx @zauthx402/cli list --network base --jsonstatus <url>
Check health and details of a specific endpoint.
npx @zauthx402/cli status https://example.com/api --jsonFlags
| Flag | Description |
|---|---|
| --json | Output structured JSON |
| --network <name> | Filter by network (base, solana, etc.) |
| --verified | Only show verified endpoints |
| --limit <n> | Max results (default: 10) |
How It Works
%%{init: {'theme': 'dark', 'themeVariables': { 'primaryColor': '#1a1a1a', 'primaryTextColor': '#fff', 'primaryBorderColor': '#333', 'lineColor': '#666', 'secondaryColor': '#2d2d2d', 'tertiaryColor': '#1a1a1a' }}}%%
flowchart LR
A[Agent / User] -->|search, list, status| B["@zauthx402/cli"]
B -->|fetch| C[(zauthx402.com Directory)]
C -->|endpoints, pricing, health| B
B -->|results| A
style B fill:#0d4d2b,stroke:#10b981,color:#fff
style C fill:#0d4d2b,stroke:#10b981,color:#fffThe CLI queries the zauth public directory API, which tracks:
- Endpoint health — WORKING, FAILING, FLAKY, UNTESTED
- Pricing — cost per call in USDC
- Success rates — based on automated monitoring
- Verification status — whether the provider is verified
Requirements
- Node.js 18+ (uses built-in
fetch) - Zero runtime dependencies
Get Started
Visit zauthx402.com to explore the full directory and register your own endpoints.
License
MIT
