Skip to content
sandboxrouting

Rayrun

rayrun, one-time credit, microVM isolation.

$7.04 once

About 500 h of a 2 vCPU, 4 GiB sandbox, once, at $0.0141/h with every vCPU busy. The router reserves that much for each live box, so it never runs past the tier.

Terms

Free usage
¥50 (≈ $7.04)
Free limits
—
Paid after
$0.014/h (2 vCPU / 4 GiB, ¥0.10)
Adapter's note
¥50 of balance at sign-up (converted at the CNY rate in currency.ts). Top-ups by WeChat Pay. Out of balance, running sandboxes are cold-stopped.
Checked
Nov 21, 2026 against rayrunos.com/docs/pricing/

Tencent, Volcengine and Rayrun bill in yuan; their prices are converted at 7.1 CNY per USD, kept in src/providers/currency.ts.

The adapter

Rayrun (rayrunos.com): agent sandboxes in hardware-isolated microVMs, a China-hosted cloud that bills in yuan. A new account gets ¥50 of balance. REST: https://api.rayrunos.com/v1, Bearer token (console "设置 → 我的 API Token"; the CLI reads RAYRUN_API_URL + RAYRUN_TOKEN). Written from the API reference, generated from its OpenAPI 3.0.3 contract (Rayrun API 0.1.0), and the guides (checked 2026-11-21): https://rayrunos.com/docs/api/sandboxes/ POST /sandboxes (synchronous, ~15 s at most, Idempotency-Key ≤ 128), GET /sandboxes[?label=k=v], GET|DELETE /sandboxes/{id}, POST /sandboxes/{id}/pause | /resume (204, idempotent) https://rayrunos.com/docs/api/exec/ POST /sandboxes/{id}/exec {command, cwd, env, timeout_seconds ≤ 3600} → {exit_code, stdout, stderr, timed_out, truncated} https://rayrunos.com/docs/api/ingress/ PUT /sandboxes/{id}/ingress/{port} {visibility, protocol} → {url} https://rayrunos.com/docs/api/files/ (workdir-relative paths only, so not used) https://rayrunos.com/docs/pricing/ ¥0.03/vCPU-h + ¥0.01/GiB-h, memory rounded up https://rayrunos.com/docs/quickstart/ Statuses: Creating, Running, Paused, Stopped, Terminated. Create takes no env, so env is kept in a file commands load. A new sandbox has no network by default; the adapter opens egress (`options.egress: "closed"` keeps it shut). `max_lifetime_seconds` cold-stops the sandbox (disk kept) rather than deleting it, so the router deletes it at its deadline. 403 insufficient_balance is a spent balance; 409 resource_exhausted is a full host.

Keys
RAYRUN_TOKEN (console API token)
Connects through
REST api.rayrunos.com/v1
Capabilities
Public ports, Pause and resume
Isolation
microVM
Operating system
Linux
Longest sandbox
no limit declared
Longest command
1 h
Timeout
The provider keeps it alive, so the router deletes it at the deadline
Billing
Wall clock, every second it runs
Source
src/providers/rayrun.ts, and the provider’s site
Route only here
const sbx = await router.create({ providers: ["rayrun"] });
Override its terms in sandboxrouting.json
{
  "providers": {
    "rayrun": {
      "freeTier": {
        "kind": "one-time-credit",
        "usd": 7.04
      },
      "priority": 10
    }
  }
}