Skip to content
Home

SeaCloud Sandbox Overview

SeaCloud Sandbox creates short-lived isolated Linux runtimes from templates. Use it when an application or agent needs to run code, edit files, install dependencies, start preview servers, or execute untrusted automation without touching the host machine.

The public SDKs talk to the SeaCloud Sandbox API. SeaCloud creates and manages sandboxes, then returns sandbox-scoped runtime access for files, commands, PTY, code execution, metrics, and port previews.

Your backend / agent runner
-> SeaCloud Sandbox API
-> Sandbox is created or reconnected from a template
-> Template image starts inside an isolated runtime
-> SDK uses sandbox runtime credentials for files, commands, metrics, and ports

Use the public SDK object as the boundary. Do not cache runtime URLs or runtime tokens outside the create/detail/connect response flow.

CapabilityWhat it gives you
Isolated executionEach sandbox has its own runtime boundary, filesystem, process tree, and lifecycle timeout.
Fast create/connect loopCreate from official templates, wait for readiness, reconnect by sandbox ID, refresh TTL, pause, or delete.
Files and commandsRead/write files, list directories, run foreground commands, and start background services.
Public previewsOpen apps with https://sandbox-router.cloud.seaart.ai/{port}-{sandboxID}/ after binding the service to 0.0.0.0.
TemplatesSelect official template families and pin a concrete tpl-... or promoted tag for production.
Multi-language SDKsNode, Python, and Go SDKs expose aligned lifecycle, file, command, template, and code-interpreter flows.
Resource modelReserved baseline, plus best-effort burst: configured CPU and memory are reserved, while spare host CPU may be used opportunistically at no extra cost.
BlockResponsibility
Sandbox APIPublic API entrypoint, API key auth, routing, and request context.
Lifecycle managementCreate, inspect, connect, pause, refresh, timeout, logs, and delete.
Runtime accessFiles, processes, PTY, metrics, health checks, and public port routing.
GoalRecommended first step
Evaluate basic command executionCreate base, write a file, run sh, delete the sandbox.
Execute generated code or data analysisCreate code-interpreter, use runCode, read generated artifacts.
Preview a web appCreate node or web-frontend, bind the app to 0.0.0.0, open getHost(3000).
Run a coding agentStart with codex, claude, opencode, or base, then pin a concrete template.
Stabilize a production environmentPin a concrete tpl-... ID or promoted tag, then verify image, resources, and startup behavior.
ItemCurrent contract
API base URLhttps://sandbox-service.real-cloud.seaart.ai/api/v1/sandbox
API authX-API-Key: <SEACLOUD_API_KEY>
Runtime authX-Access-Token: <envdAccessToken> returned by create/detail/connect
First templatebase for shell/files, code-interpreter for runCode workflows
Starter resource shapeOfficial starter templates commonly begin at 1 vCPU / 1024MB; larger language, browser, desktop, and agent templates reserve more.
Workspace path in examples/root/workspace
Sandbox timeout unitSeconds
Runtime command timeout unitMilliseconds
App preview URLhttps://sandbox-router.cloud.seaart.ai/{port}-{sandboxID}/
Billing basisConfigured vCPU and memory while running; storage only while paused; data transfer when traffic is sent or received.
Template familyUse it for
baseGeneral shell, files, git, PTY, metrics, and lightweight services.
node, python, go, web-frontendLanguage-specific apps, previews, build jobs, and tests.
code-interpreter, code-interpreter-liteMulti-language code execution, data analysis, and generated artifacts.
browser, desktopBrowser automation, screenshot capture, and computer-use style workloads.
codex, claude, opencode, openclaw, amp, openai-agentsCoding-agent and agent-orchestration runtimes.
api-server, mcp-server, scraper, devopsService prototypes, MCP tools, scraping, and operational automation.
Concrete tpl-...Production workloads that need stable image and storage behavior.

For the full public template list, typical resources, and use cases, see Sandbox Templates. List templates in the target environment before pinning one in production, then prefer a concrete tpl-... ID or tag.

Before moving from evaluation to production, confirm:

  1. The workload uses a concrete tpl-... ID or a promoted tag instead of a moving official alias.
  2. All user-visible app servers bind to 0.0.0.0 and expose the documented port.
  3. Sandbox lifecycle timeout and per-command timeoutMs are both explicitly set.
  4. Logs, metrics, timeline, diagnostic, and requestID are captured in your support flow.
  5. API keys and envdAccessToken never reach browser code, model prompts, or user-visible logs.