# CloudGPU — Compute infrastructure for AI agents

Start with the anonymous, read-only self-check:
https://cloudgpu.app/v1/public/agent-self-check
Assess task suitability: POST https://cloudgpu.app/v1/public/task-fit.
Contract: https://cloudgpu.app/agent-contract.json
Measured evidence and unverified cases: https://cloudgpu.app/agent-evidence.json

Connect: connect_account → owner signs in with Google (email alternative) → review balance, top up if needed and explicitly approve limits → finish_connect. The private pending request survives a local MCP restart until expiry. A payment return or positive balance is not spending approval.

Use request_top_up to generate a human payment link, and wait_for_funds to observe credited balance. Never request credentials in chat or complete payment for the owner.

Get live inventory and exact quote. Billing may be per minute or every started hour; price/hour labels do not determine the minimum. Confirm the actual source-bound billing quote and user approval. Check supports_jobs separately.

Persist outputs explicitly before GPU release; Workspace is not a mounted disk or automatic backup. Paid storage has its own budget and policy; inspect GET /v1/storage. Limited Agent keys cannot transfer wallet funds or enable paid storage.

Unknown creation results require reconciliation, not blind retries. Check release evidence; do not infer upstream release from a local client disconnect. Recent metrics may be unavailable or have insufficient samples.

Local MCP install and current transport support: https://cloudgpu.app/docs/mcp
Full instructions: https://cloudgpu.app/mcp/AGENTS.md

## Python and framework clients

The reviewed Python SDK0.1.0 wheel is at https://github.com/cloudgpu-app/cloudgpu-mcp/releases/download/python-v0.1.0/cloudgpu-0.1.0-py3-none-any.whl; checksums/source: https://github.com/cloudgpu-app/cloudgpu-mcp/releases/tag/python-v0.1.0. Install with `python -m pip install <exact-wheel-url>`, then `cloudgpu check` anonymously or `cloudgpu connect --spend-limit 5` for human approval. PyPI publication is pending owner configuration; do not install an unrelated similarly named package.

LangChain Core1.8.0, OpenAI Agents SDK0.24.0 and CrewAI1.6.1 tool schemas/invocation, spending guards and actual anonymous readiness passed. Hermes native installation and existing-owner private connection/catalog passed; use https://github.com/cloudgpu-app/hermes-cloudgpu and the Python helper with `--hermes`, which honors HERMES_HOME. Neither the SDK nor framework tools make a payment or infer consent to paid work. New Google-owner real payment is separate from these tests.

### Output size and real task cases

Before quoting a persistent task, call `assess_task_fit` with `needs_persistent_outputs=true` and `expected_output_bytes`. Explicit automatic Job collection is limited to 100 MiB. When a GPU cannot reach object storage directly, the control plane can relay up to 8 MiB total, one relay at a time, with checksum verification and the original upload reservations. Authorization and validation failures are returned. Larger outputs require verified direct connectivity or an approved export plan before GPU release. Workspace upload capacity and paid budgets are reported separately by `GET /v1/storage`.

Runnable environment, synthetic causal-LM LoRA and tiny Wan video acceptance cases: https://github.com/cloudgpu-app/cloudgpu-mcp/tree/main/examples/verified-tasks. Check https://cloudgpu.app/agent-evidence.json for current delivery, final fees and release evidence. Internal development attempts are a small acceptance sample; obtain a fresh quote for each real task.

## Durable server batches and whole-hour Jobs

Use MCP 0.16.3 `prepare_job_batch` → approve the exact manifest/hash and aggregate budget → `run_server_job_batch`. Atomic enqueue persists every child Job or none; the database queue continues after client/server restarts and waits for account/Key execution slots. Use `get_server_job_batch` and approved `cancel_server_job_batch`. Failed commands are not automatically retried; unknown creation results require reconciliation. The older `run_job_batch` remains a non-atomic client flow.

REST: `POST /v1/job-batches` with one stable `Idempotency-Key`, `total_budget_usd` and 1–32 `jobs`; `GET /v1/job-batches/{batch_id}`; `POST /v1/job-batches/{batch_id}/cancel`. The reviewed MCP manifest is capped at eight Jobs. Batch responses contain bounded summaries; use `get_job` for explicit output metadata. Each child keeps its own spending/time limits; storage fees remain separate.

Whole-hour Jobs require the exact rental billing quote (`estimate_cost` / `POST /v1/gpu/billing-quote`) and explicit `billing_quote_id`, `billing_accepted=true`, plus the compute quote and execution approval. Every allocation needs its own billing quote. Budget must cover the minimum; each started hour is charged in full. Quotes expire after five minutes: expired queued requests fail without allocation and need a newly reviewed request. The service never silently changes the approved billing terms. Linked running Jobs resume through existing recovery; durable receipt aliases plus independent provider presence checks protect whole-hour reconciliation. Ambiguous intents remain `needs_attention`; they never authorize another GPU.

## Regional compute observations

Anonymous `GET /v1/public/compute-offers` (MCP: `list_regional_offers`) returns native regional observations, independent price/inventory ages and explicit unknowns. Check `regional_offer_discovery` in `/v1/public/compute-capabilities`. Optional `user_country` is the human owner's explicit ISO country, never the Agent egress IP; recommendation is country matching, not measured latency or task scoring.

Use `country_code`, `gpu_model`, `gpu_count`, `include_unavailable`, `limit` and `after_id` to inspect the live, non-atomic catalogue. Unknown/failed/stale observations are not zero stock. Counts are not reservations or verified single-host multi-card allocations. Known capacity-group aliases must not be summed into an independent global total.

Native observations alone do not enable region-bound execution or dynamic regional retail. The separately advertised continent rental capability below is the only supported coarse placement path. Published SKU references are not regional quotes. If the task has a hard location requirement, do not submit an ordinary rental or Job: unsupported location/offer constraints are rejected before a new allocation. Existing R2 Workspace is explicit snapshots/restore; native mounted volumes are not offered.


## Continent-constrained rentals

Check anonymous `GET /v1/public/rental-regions` (MCP `list_rental_regions`) first. This staged capability is available only when its response says `enabled: true`. Region selection is optional. Omit `continent` for the aggregated shelf across all qualified suppliers; no default region is imposed. For a location requirement, select one of `asia`, `europe`, `north_america`, `oceania`, `south_america`, `africa`; country and datacenter selection are not supported. With no qualified supply, do not infer a region from the unfiltered legacy catalogue or the Agent's IP.

For a region-constrained rental, pass the same `continent` to `estimate_cost` / `POST /v1/gpu/billing-quote`, then obtain explicit approval and pass it with the exact `billing_quote_id` and `billing_accepted: true` to `POST /v1/gpu/instances`. The stdio client's `create_instance` carries the approved continent automatically. Changes or missing continent bindings require a new quote. Minimum billing periods are unchanged; there is no automatic cross-continent fallback.

The generic `POST /v1/quotes`, Jobs and batches do not yet accept a hard continent constraint. Do not drop that constraint or substitute an unconstrained Job. Rental catalogue prices follow qualified source costs and current stock. The lowest available qualifying price is shown, while the accepted billing quote binds the price and billing terms. Native regional observations remain planning data, not reservations or proof of worldwide rentable coverage.

## Native configuration details

`GET /v1/gpu/offers` and MCP `list_gpus` expose `configurations` when detailed source metadata is available. Each configuration has `gpuCount`, `vramPerGpuGb`, `vcpu`, `memoryGb`, system/local disk capacity, optional continent and interconnect, `available`, `hourlyPrice`, `minimumBillingSeconds`, `billingIncrementSeconds`, and `observedAt` (Unix milliseconds). Missing values are unknown. `hourlyPrice` in a configuration is for the entire instance; the model-level rate is a starting per-card rate. Request an exact quote for the selected GPU count.

`inventory_count_exact: false` means configuration availability, not an exact fleet count. Alternative 1/2/4/8-card configurations may share capacity; do not sum them. Catalog presence is not proof of availability, Job support or image compatibility. Unavailable configurations remain visible for discovery.

## Live supply and delivery evidence

Integrated supplier configurations enter the rental shelf automatically when fresh stock,
supported images and procurement funding permit delivery. Historical per-configuration
acceptance tests are evidence, not a manual admission list. A catalogue listing is not
reserved capacity. Cost and margin checks apply before quoting and again before allocation.
If stock disappears, the next eligible source may set the next quote; an accepted quote
cannot silently become more expensive or cross continents.

For an exact task use the configuration's GPU count, whole-instance rate, billing minimum,
capabilities and observation time. Read `/v1/public/agent-self-check` and
`/v1/public/compute-capabilities` for task restrictions. Delivery-time estimates and network
latency are unknown unless the response explicitly supplies measured evidence; continent
proximity is not a measured speed guarantee. Native observations and historic acceptance
runs are not current delivery SLAs. Region-constrained Jobs and arbitrary images are not
implied by region-constrained base GPU rentals.
