# x402vps Extend Container Lease

> x402vps Extend Container Lease is a paid API for AI agents from x402vps.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-27).

Extends the lease duration of an existing Docker container, charging USDC on Base via x402 payment protocol

## Facts

- Endpoint: POST https://x402vps.com/api/extend?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402vps-extend-container-lease-6d0df836
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_A9YTE826mHyEYfeRRjV-O

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 x402vps-extend-container-lease-6d0df836 -d '<json body>'
```

Example prompt: Extend the lease on container ctr_4cb194 for another 2 hours — pay with USDC on Base.

## When to prefer this

Use this endpoint when an existing x402vps container needs more runtime and you want to extend it without reprovisioning. Prefer this over creating a new container when you need continuity of state, existing processes, or open connections. Ideal for long-running AI agent tasks that outlast the initial lease, automated workflows that self-extend before expiry, or any scenario where container teardown would be disruptive.

## Known failure modes

- Container ID not found or already expired — returns error with container not found message
- Insufficient USDC balance or payment failure — x402 payment rejection
- Invalid or missing method field in request body — validation error
- Container lease cannot be extended beyond maximum allowed duration

## How this service works

Provision Docker containers on demand. Pay per lease with USDC on Base. No signup, no API key. Built for AI agents.

## Output

Returns a JSON object with the container ID, the new expiration timestamp in Unix milliseconds, the number of lease hours added, and the amount of USDC charged (e.g. '$0.01').

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "ctr_4cb194",
  "expiresAt": 1784746373691,
  "leaseHours": 2,
  "priceCharged": "$0.01"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402vps-extend-container-lease-6d0df836/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402vps.com](https://www.zero.xyz/host/x402vps.com/llms.txt)
