# HyperCLI Basic Agent Access (x402)

> HyperCLI Basic Agent Access (x402) is a paid API for AI agents from api.dev.hypercli.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Purchases basic-tier API access for an AI agent by paying $0.01 USDC via x402 on Base, returning an API key and rate-limit bundle valid for a short-duration session.

## Facts

- Endpoint: POST https://api.dev.hypercli.com/agents/x402/basic
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-dev-hypercli-com-4613dbd0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fmxxAdSaGLflYNo2xG3T6

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-dev-hypercli-com-4613dbd0 -d '<json body>'
```

Example prompt: Purchase a basic HyperCLI access bundle for agent x402 — I want to get an API key using the x402 payment flow so my agent can start making calls right away.

## When to prefer this

Use this endpoint when an AI agent needs to autonomously purchase short-duration API access using on-chain USDC micropayments via the x402 protocol on Base, specifically for the 'basic' plan tier. Prefer this over traditional API key provisioning when the agent operates in a pay-per-use, trustless crypto-native environment and needs credentials that self-expire.

## Known failure modes

- Insufficient USDC balance — payment rejected by x402 facilitator
- Invalid or unrecognized agent_id — may return error or unexpected plan
- Network/Base chain congestion causing payment confirmation delays
- Expired or invalid x402 payment header — authentication failure
- Service unavailable on dev environment — 5xx error

## How this service works

HyperClaw plan purchase (variable amount, prorated by payment)

## Output

Returns a JSON object with ok=true, a new API key (hyper_api_... string), a bundle object indicating the 'small' token count, the plan_id ('basic'), quantity, requests-per-minute limit (~173), tokens-per-minute limit (~1.7M), an expiration timestamp (~22 minutes from now), the amount paid in USDC, and the session duration in fractional days.

## Example request

```json
{
 "tier": "basic",
 "agent_id": "x402",
 "notify_email": "zero-qa@agentmail.to"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-dev-hypercli-com-4613dbd0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.dev.hypercli.com](https://www.zero.xyz/host/api.dev.hypercli.com/llms.txt)
