# RunVero Cloud

Source: https://runvero.dev/docs/runvero-cloud/
Documentation index: https://runvero.dev/llms.txt

**RunVero Cloud** runs the same RunVero sandbox as a managed service. You call it over HTTP or MCP with an API key, and the service enforces your organization's limits, network rules and credentials on every run.

**Status: private preview**
RunVero Cloud is in private preview. Access is by invitation, and features or limits may change before general availability.


## Available in the preview

- **Managed tools.** A signed catalog of ready-made tools: `python-sandbox`, `python-extended`, `sqlite-runner`, `bash-emulator`, `regex-extractor`, `calculator` and `http-fetcher`. Each release is pinned by digest and its signature is checked before it runs. Measured resource profiles and quotas are listed on [Performance and Cost](https://runvero.dev/docs/performance-and-cost).
- **HTTP and MCP APIs.** `POST /v1/execute` runs a tool, `GET /v1/tools` lists the tools your key may use, and `/v1/mcp` serves the same tools to MCP clients.
- **Per-run limits.** Every run has a fuel budget, a memory cap and a timeout. Your organization and each API key can narrow them further.
- **Network rules.** Tools reach only hosts your organization allows. Private and cloud-metadata addresses are always blocked.
- **Protected credentials.** Stored secrets are encrypted with AWS KMS envelope encryption and only sent to the tools and hosts you bind them to. The tool sees a placeholder, never the value; secret rotations and revocations propagate to warm workers within 30 seconds ([Security & Trust Model](https://runvero.dev/docs/security)).
- **Execution records.** Every run writes a signed, hash-chained audit event; see [Security & Trust Model](https://runvero.dev/docs/security) for what execution attestations prove and their boundaries. The console shows recent executions with their fuel, memory and time.
- **Safe retries.** Every `POST /v1/execute` needs an `Idempotency-Key` header. Reuse the key to retry the same request: the stored result is returned instead of running the tool again. A different body with the same key returns `409`.
- **Console.** Your first sign-in creates a test workspace with a test API key (500 runs a month) and opens a guided customer task so you can evaluate a real result and connect an agent straight away. Manage organizations, API keys, allowed hosts and secrets, and try tools in the Playground. The Playground lists the tools your workspace's catalog actually offers, including `python-extended`, and has guided tasks (normalizing partner order batches with `normalize-orders@1.0.0`, checking a YAML config, extracting links from HTML) that run your own input for real. **Use this in my agent** then creates a test key limited to that tool and its limits, with Claude Code, Cursor, Python and cURL setup that repeats the same task, and confirms the first call made with the key.
- **Recipes, demos and sharing.** The Playground has credential-free recipes (SQL, agent-written Python, ID extraction, exact arithmetic, one allowed fetch) that you can open, hand to an agent, or copy as a README snippet that reads the key from `RUNVERO_API_KEY`. Two guided demos show the sandbox stopping a runaway loop (`fuel_exhausted`) and blocking a destination the policy does not allow, each with a plain explanation and the run record. From any run record you can share a redacted summary link with teammates: it shows the tool, outcome, latency, fuel, memory and how many connections were blocked, and never the input, output, workspace, keys or secret names. Links expire (30 days by default) and can be revoked.
- **Getting started progress.** The Overview shows how far a workspace has got: a console run, a first call from your own app or agent, a first successful call (activation), and use on a later day.

Measured Cloud dev-stage latency is published in [Performance and Cost](https://runvero.dev/docs/performance-and-cost). These measurements cover five tools and are not a production latency guarantee. `python-extended` is measured separately in the CLI examples.

For agent setup, supported libraries, discovery and retry handling, see [For AI Agents](https://runvero.dev/docs/agents).

## Planned

- General availability with self-service sign-up and usage-based billing.
- Published client packages (`pip install runvero`, `npm install`). Until then, call the HTTP API directly; the console's code export generates working requests.

## Run it yourself

The managed service uses the `runvero` CLI and gateway runtime. Self-hosting currently requires authorized repository access; public releases are planned. See the [Quick Start](https://runvero.dev/docs/quickstart) and [self-hosting](https://runvero.dev/docs/self-hosting) guides.

## Files and generated artifacts

File workflows require the Cloud artifact storage release. The connected
Playground advertises **Files** for Python extended when the gateway supports it.
Enable files, attach flat filenames, and list the outputs to keep. Inputs appear
under `/input` (read-only); write temporary files to `/tmp` and results to `/output`.
Download buttons verify the file length and SHA-256 digest. The Export tab supplies
a Python upload → execute → download workflow using a test API key.

For example, attach `source.xlsx`, select `result.xlsx` as an output, and run:

```python
from openpyxl import load_workbook
workbook = load_workbook('/input/source.xlsx')
workbook.active['B1'] = 'Processed by RunVero'
workbook.save('/output/result.xlsx')
result = {'saved': 'result.xlsx'}
```

The REST workflow uses raw bytes and opaque references:

1. `POST /v1/artifacts/upload/source.xlsx` with your API key and the file body.
2. Send `files: {"source.xlsx": "<returned-id>"}`, `exports: ["result.xlsx"]`, and
   `filesystem: true` alongside the normal `/v1/execute` request.
3. Download each returned `artifacts` entry with `GET /v1/artifacts/<id>`.
   `DELETE /v1/artifacts/<id>` revokes it early.

References are scoped to the organization and test/live environment. They remain
valid across gateway or worker restarts, but expire after one hour. An execution
retry replays the original references; it does not extend their lifetime. Keep
the same idempotency key and exact payload when retrying a run.

Each file is limited to 16 MiB; the workspace has a 64 MiB combined input,
temporary-file, and output ceiling. A request accepts at most 32 inputs and 32
outputs. Managed storage reserves a conservative daily quota of 64 MiB and 128
files per organization/environment (UTC days), including uploads and generated
outputs. Deletion or a failed upload does not refund that quota. The service can
return `429` when transfer slots or storage quotas are exhausted. Download
outputs promptly; the service is temporary artifact storage, not a file archive.

This release supplies bounded WASI filesystem behavior, not native CPython
extensions, subprocesses, or unrestricted host file access. Tool manifests must
also declare the filesystem capability.

## Bring your own WASI tool

Paid workspaces with tenant tools enabled can upload a fixed, tested WASI 0.2
component from **Your tools** in the console. Use this for tools built ahead of
time in Rust, Go, C, Zig, Python or JavaScript. Dependency environments remain
available for code an agent writes at run time.

Upload `tool.wasm` and a `runvero.tool/v1` manifest named `runvero.tool.json`.
The component must implement the [RunVero tool contract](https://runvero.dev/docs/wit-contracts),
not only the WASI command-line world. Set the manifest's `component` to
`tool.wasm` and use a namespaced name such as `acme/invoice-parser`.
RunVero checks the component, allowed imports and resource limits, then compiles
and signs it before it becomes ready. Raw sockets are not allowed. The console
shows each version's queued, building, ready or failed status and any validation
failure.

Each upload is immutable. New uploads to the same tool create a new version;
agents run the newest ready version by default while an upload is still being
checked. Execute using the tool id shown in the console:

```json
{"tool":"tool_0123456789abcdef01234567","arguments":{"invoice":"..."}}
```

Use `tool_…@2` to execute a particular version. API-key, organization and credential
grants use the public name (`acme/invoice-parser`) and cover every version.
Unrestricted keys also include the workspace's uploaded tools; MCP lists only
tools that the key and organization permit. These calls use the usual metered
execution and fuel accounting.

Limits are 10 MiB per component, 64 KiB per manifest, 20 registered tool names,
100 versions per tool, 100 MiB of uploaded components and 20 uploads per UTC day.
Ask your administrator to enable tenant tools on your paid workspace. Deleting a
tool blocks new calls to all versions and requires removing its explicit grants
first. Its name remains reserved and retained versions continue to consume
storage quota.

For API clients, upload `{"manifest": {...}, "component_base64": "..."}` to
`POST /v1/orgs/{org}/tools` with a console session token and an `Idempotency-Key`.
Send subsequent versions to `/v1/orgs/{org}/tools/{tool_id}/versions`. Keep the
same key and files when retrying a failed upload request. If the dialog is
closed first, submitting those same files continues the unfinished version.
A version stays queued without polling until that build has actually been requested. Source builds and
cross-workspace sharing are not available through this API.
