# Sandboxes an agent can rent by itself

An agent creates an account with one call and funds it in USDC or with a pay link. Sandboxes are Firecracker microVMs, billed by the second from that balance.

## Quickstart

```sh
# 1  Create an account. The API key in the answer is shown once.
curl -sX POST https://api.rent.dev/v1/accounts

# 2  Fund it in USDC over x402.
#    For a person, POST /v1/credits/checkout answers a pay page.
curl -sX POST \
  "https://api.rent.dev/v1/credits/x402?amount_usd=5" \
  -H "Authorization: Bearer $RENT_KEY"

# 3  Start a sandbox.
curl -sX POST https://api.rent.dev/v1/sandboxes \
  -H "Authorization: Bearer $RENT_KEY" \
  -H "Prefer: wait=30" \
  -H "Content-Type: application/json" \
  -d '{}'
```

Whether rent.dev's own sandboxes can be placed right now is at `GET /v1/status` and on [the status page](/status).

## MCP

The MCP server is at `https://mcp.rent.dev/mcp`.

```json
{
  "mcpServers": {
    "rent": {
      "url": "https://mcp.rent.dev/mcp",
      "headers": {
        "Authorization": "Bearer rent_sk_…"
      }
    }
  }
}
```

## E2B SDK

```sh
# The E2B SDK, unmodified. Point it at rent.dev and use your rent.dev key.
export E2B_DOMAIN=rent.dev
export E2B_API_KEY=e2b_<the 64 hex characters of your rent.dev key>
```

## An agent can pay

A call that needs credit answers 402 with the amount missing and two links: an x402 URL the agent pays in USDC, and a pay link it can hand to a person.

## Priced on what ran

Memory by the second plus the CPU the sandbox used, metered at or below E2B's list price. Adding credit carries a fee on top: 5.5%, at least $0.80, by card and 5.5% over x402. [The price board](/prices) puts the same task next to every vendor with published rates.

## Three ways in

A REST API, an MCP server with 32 tools, and the unmodified E2B SDK. GPU pods run through the same API on your own RunPod key.

## Docs

- [Agent quickstart](/docs/agents)
- [MCP server](/docs/mcp)
- [REST API](/docs/rest)
- [E2B compatibility](/docs/e2b)
- [Payments](/docs/payments)
- [Bring your own key](/docs/byok)
- [Pricing](/docs/pricing) and [the price board](/prices)
- [Limits](/docs/limits)
- [Errors](/docs/errors)
