
# Agent native cloud: servers your AI agent buys itself

**An agent native cloud is infrastructure your AI agent can buy and manage on its own.** The agent gets an exact quote, creates a VPS through MCP or an API, pays from the balance within its limit, and deletes the server when the job is done. It works in your account, and you set the rules once: what the key can do and how much it can spend per month.

The groundwork is already there: [Anthropic reports](https://www.anthropic.com/news/donating-the-model-context-protocol-and-establishing-of-the-agentic-ai-foundation) a large number of active public MCP servers that agents use to reach outside services. The next step is obvious: the agent provisions its own infrastructure for the task. Below: how the flow works step by step, where the risks are, what it costs, and what to look for when you pick a provider.


## Why your agent needs its own server

Coding agents like Claude Code, Codex and Cursor already write code, run tests and edit configs. They hit one wall: deploying anything needs a server, and a human buys it in a web dashboard. The agent waits, the human context-switches.

Typical jobs where an agent needs a server right now:

- spin up a test box and run a load test;
- run a long build or a scraping job for a few hours;
- keep a bot running 24/7 after the agent wrote it.

A classic cloud is built for people: a signup form, plan cards to click, a checkout page. There's nothing for an agent to hold on to.

## Agent native cloud vs a classic cloud

The difference isn't the hardware. It's who the customer is.

| | Classic cloud | Agent native cloud |
|---|---|---|
| Entry point | Web form, click-through confirmations | MCP, REST API, llms.txt |
| Choosing a plan | A person compares cards | The agent requests a quote with `dry_run` |
| Cost control | Invoice at month end, budget alerts | Spend limit on the key: new purchases over it are refused (402) |
| Permissions | One login for everything | Separate key with read, create, delete scopes |
| Server lifetime | Months | Hours: create, do the job, delete |
| Mistakes | A human fixes them by hand | Deletion can be undone within 24 hours |

The core idea: you don't take the agent's word for it, you give it a key with a ceiling. If the model misreads the task, it runs into scopes and limits, not your bank account.

## How it works, step by step

In an agent-native setup every step has a machine interface. Here's the flow on 0x.cloud:

| Step | What the agent does | What makes it possible |
|---|---|---|
| 1. Discover | Learns what the cloud offers | `llms.txt`, OpenAPI spec, MCP tool list |
| 2. Access | Works in your account with the rights you grant via OAuth or an API key | With OAuth you pick scopes, spend limit, expiry and "own servers only" |
| 3. Quote | Gets the exact price | Create request with `dry_run`: price and a `pricing_fingerprint` returned, nothing created |
| 4. Check | Compares the price with its limit and your rules | Monthly spend limit on the API key |
| 5. Buy | If the balance is short, tells you so you can top it up; then creates the server | Request with the fingerprint (valid 10 minutes, else 409 `price_changed`) |
| 6. Work | Runs commands through MCP (`run_command`, `read_file`, `write_file`) | "For AI agents" image: Node, Python, Git, tmux and Docker preinstalled |
| 7. Clean up | Deletes the server | Charges stop at once, the unused remainder returns to balance |

Full walkthrough with commands: how an agent creates a server.

## Three ways in: llms.txt, OpenAPI, MCP

An agent has to understand the cloud without a human. There are three layers:

1. **llms.txt.** A short text file on the site with the essentials: what the service is, the plans, where the docs live. The agent reads it first, the way you'd skim a homepage.
2. **REST API with OpenAPI.** A full machine-readable description of every method. Good when the agent writes a script or works in n8n through an HTTP node.
3. **MCP server.** The shortest path: the agent sees ready-made tools like "get price", "create server", "delete" and calls them itself. The protocol is defined at [modelcontextprotocol.io](https://modelcontextprotocol.io/specification/latest); connecting to 0x.cloud is covered on the [0x.cloud MCP server](https://0x.cloud/mcp) page.

## Guardrails: how to keep the agent in bounds

The obvious fear: the agent loops and creates twenty servers. So in an agent native cloud the limits live in the key, not in trust in the model.

**Heads-up: the default 0x.cloud key has `servers.*`, which means it can delete servers and run commands on them as root.** Give the agent its own key and strip what it doesn't need, for example keep `servers.read` and `servers.create` (the latter is also what `dry_run` requires).

| Guardrail | What it does | Example setting |
|---|---|---|
| Key scopes | Separates read, create and delete | Test agent: read and create, no delete |
| Monthly spend limit | Ceiling on new purchases; hourly servers already running keep billing and count toward it | $20/mo on the agent's key |
| `ttl_hours` timer | The server deletes itself even if the agent forgets | 3 hours for a test box |
| `dry_run` | Price before purchase, no side effects | Agent shows the price and waits for "yes" |
| Hourly billing | Pay by the hour; a calendar month never costs more than the monthly price | A 3-hour test box, deleted when done |
| 24-hour restore | Accidental deletes are reversible | Bring the server back |
| 7-day data hold | Balance ran out, data is safe | You have a week to top up |

Setting scopes and limits is covered in [how to limit an AI agent](https://0x.cloud/kb/ai/limit-ai-agent).

What you should do on your side:

- give each agent its own key so you can see who spent what;
- tell the agent in the prompt to show the price before creating anything;
- don't grant delete to an agent that doesn't need it;
- keep enough balance for the task, not your yearly budget;
- ask the agent to set `ttl_hours` on temporary servers.

## What it costs in practice

On 0x.cloud the hourly rate is the monthly price divided by 730 and multiplied by 5 (decimals beyond the sixth are dropped), and a calendar month of hourly billing never costs more than the monthly price. Your first paid server needs one top-up of at least $5.

| Scenario | Plan | Time | Approx. cost |
|---|---|---|---|
| Test environment | s2-4 (2 vCPU, 4 GB) | 50 hours | ≈ $5.48 |
| One-off scraping job | s1-2 (1 vCPU, 2 GB) | 8 hours | ≈ $0.44 |
| Bot the agent wrote, 24/7 | s1-1 (1 vCPU, 1 GB) | 1 month | $4.49 |
| Agent with a browser | s4-8 (4 vCPU, 8 GB) | 1 month | $31.99 |

All plans and period discounts are on the [VPS pricing](https://0x.cloud/pricing) page.

## What to look for in an agent native cloud

0x.cloud isn't the only cloud with machine access. Nearly every big provider has an API, and DigitalOcean, for example, runs a [remote MCP server](https://docs.digitalocean.com/reference/mcp/) (checked November 20, 2026). So don't just ask "is there an API?" Ask how safe it is to hand the key to an agent:

1. **Agent access.** Can the agent work through OAuth or a scoped key, or does it need your dashboard password?
2. **Quote before purchase.** Is there a `dry_run` equivalent that returns the final amount?
3. **Key scopes.** Can you forbid delete and allow only read and create?
4. **Spend limit on the key,** not just after-the-fact budget alerts.
5. **Hourly billing** with no minimum term.
6. **Remainder refund** on delete, and a way to undo a delete.
7. **Agent-ready images,** so the agent doesn't burn tokens installing a toolchain.

## Copyable prompt: let your agent buy a server

Paste this into Claude Code, Codex or Cursor with the 0x.cloud MCP server connected:


```text
I need a server on 0x.cloud for a load test. First get the price of an s2-4 with Ubuntu 24.04 and hourly billing using dry_run, and show it to me. After I confirm, create the server, install k6 and run the test from the load/ folder. When you're done, send me a report and delete the server.
```



[Create server: s2-4, $15.99/mo](https://0x.cloud/cabinet/create?plan=s2-4)


An overview of everything built for agents is on the [cloud for AI agents](https://0x.cloud/ai) page.

## The bottom line

For an agent to buy servers safely, a cloud needs three things: a machine entry point (llms.txt, OpenAPI, MCP), a price before purchase (`dry_run`), and limits on the key (scopes and a monthly cap). Hourly billing and remainder refunds keep short jobs cheap, and a 24-hour restore covers mistakes. You set the rules, the agent works inside them.

Where to start: create a separate API key for the agent with `servers.read` and `servers.create` (the default key can also delete and run commands, which the agent doesn't need), set a monthly limit sized to the task (say $10), connect MCP in your client, and ask the agent to show a `dry_run` quote first. Once it behaves predictably, widen scopes and limits step by step.

## FAQ

**What is an agent-native cloud?**
A cloud built so an AI agent, not just a human in a browser, can get an exact quote, create servers, pay from a balance and delete them, all through MCP or an API and within limits you set.

**Can an AI agent drain my balance?**
Not if the key is set up right. On 0x.cloud every API key has a monthly spend limit: once it's reached, new purchases are blocked, even if the agent loops. Hourly servers that already exist keep billing, so give them an auto-delete timer with `ttl_hours`.

**How does the agent know the price before buying?**
It sends the create request with dry_run. The cloud returns the exact price and creates nothing. The agent then shows you the price or checks it against its budget.

**Which agents can provision servers on their own?**
Any agent that supports MCP or HTTP calls: Claude Code, Codex, Cursor, ChatGPT and others. MCP takes a couple of minutes to connect; with the REST API the agent reads the OpenAPI spec.

**What if the agent deletes the wrong server?**
Only give the agent's key the delete scope if it truly needs it. On 0x.cloud a deleted server can be restored within 24 hours; the remainder refunded on delete is charged again when you restore it.
