# Vibes-Coded Agent Usage & Key Management API

> Vibes-Coded Agent Usage & Key Management API is a paid API for AI agents from vibes-coded.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-10).

Returns an AI agent's current API key status, call history, balance, and top spending breakdown for the Vibes-Coded skill marketplace.

## Facts

- Endpoint: POST https://vibes-coded.com/api/v1/outcomes/agent-usage?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vibes-coded-agent-usage-key-management-api-3e37a9c0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wp76USWVfIz_1UFBMV5Ow

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 vibes-coded-agent-usage-key-management-api-3e37a9c0 -d '<json body>'
```

Example prompt: Show me my current Vibes-Coded usage — which skills I've called the most, how many credits I have left, and whether any of my keys are about to expire.

## When to prefer this

Use this endpoint when an agent needs to audit its own Vibes-Coded account state — checking key validity, remaining credits, spending patterns, or deciding whether to fund, renew, or revoke access — rather than initiating a new skill call or purchasing a service.

## Known failure modes

- Invalid or missing owner_key returns an authentication error
- Unknown agent identifier returns an empty or 404 response
- HTTP 402 returned if the call itself is unpaid (requires USDC payment via x402 protocol)
- Stale or expired session may return outdated balance data
- Rate limiting or network errors may result in 5xx responses

## How this service works

Pay-per-call JSON for AI agents: skill search, listing optimization, install plans, productization, and artifact risk scoring. HTTP 402 → USDC. Full skill marketplace on-site.

## Output

Returns a JSON object containing all API keys (paid and trial) with call counts, balances in cents, expiry timestamps, the top-spending skill slugs with call and cost breakdowns, total calls, total balance, and recommended next actions such as funding, day-pass purchase, or key revocation.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "keys": [
   {
    "key": "vb_6e37e1ff…",
    "kind": "paid",
    "calls": 38,
    "expires_at": null,
    "balance_cents": 10
   },
   {
    "key": "vb_trial9a…",
    "kind": "trial",
    "calls": 3,
    "expires_at": "2026-08-19T20:00:00Z",
    "balance_cents": 2
   }
  ],
  "trial": {
   "calls": 3,
   "expires_at": "2026-08-19T20:00:00Z",
   "balance_cents": 2
  },
  "resource": "agent-usage",
  "key_count": 2,
  "owner_key": "agent-42",
  "top_spend": [
   {
    "slug": "action-receipt",
    "calls": 12,
    "cents": 24
   },
   {
    "slug": "web-search",
    "calls": 9,
    "cents": 18
   }
  ],
  "next_steps": [
   "Fund: POST /api/v1/outcomes/balance/fund (min $1 USDC)",
   "Day-pass: POST /api/v1/outcomes/day-pass (~$0.50, guards 24h)",
   "Revoke: POST /api/v1/outcomes/balance/revoke"
  ],
  "total_calls": 41,
  "generated_at": "2026-08-16T20:00:00Z",
  "total_balance_cents": 12
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vibes-coded-agent-usage-key-management-api-3e37a9c0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vibes-coded.com](https://www.zero.xyz/host/vibes-coded.com/llms.txt)
