Automation
SeaCloud CLI provides stable output formats, dry-run support, task lookup, and sandbox lifecycle commands for agents, CI, and scripts.
Task status
Section titled “Task status”The run command automatically waits for the task result. If you need to query a task separately, use the task status command with the task ID. The task ID can be obtained from the response fields of seacloud run.
seacloud task status <task_id>seacloud task status <task_id> --output urlseacloud task status <task_id> --output jsonGlobal dry run
Section titled “Global dry run”Use --dry-run to preview the request, parameters, and target actions before actual execution. This mode does not send network requests, write credentials, install skills, create generation tasks, or mutate sandbox resources. It is suitable for checking commands before automated execution in scripts or agents.
seacloud --dry-run run seedance_2_0 --param content='[{"type":"text","text":"test"}]'seacloud --dry-run sandbox kill --all --state running,paused --metadata app=agentseacloud --dry-run sandbox network update <sandbox_id> --allow-internet-access=falseJSON output
Section titled “JSON output”The following commands support using --output json to obtain machine-readable results: models list, models spec, run, task status, and sandbox commands such as create, list, logs, and metrics. Sandbox and template commands also accept --format json for E2B-compatible automation.
seacloud models list --output jsonseacloud models spec seedance_2_0 --output jsonseacloud run seedance_2_0 --param content='[{"type":"text","text":"test"}]' --output jsonseacloud sandbox create base --no-connect --wait --output json --metadata app=agentseacloud sandbox logs <sandbox_id> --limit 100 --direction backward --output jsonseacloud template list --format jsonSandbox automation
Section titled “Sandbox automation”Use --no-connect and --output json when an agent or CI job creates a sandbox. Store the returned sandbox ID and clean it up explicitly.
seacloud auth statusseacloud sandbox create base --no-connect --wait --output json --metadata app=agentseacloud sandbox exec <sandbox_id> "python --version"seacloud sandbox logs <sandbox_id> --limit 100 --direction backward --output jsonseacloud sandbox metrics <sandbox_id> --output jsonseacloud --dry-run sandbox kill <sandbox_id>seacloud sandbox kill <sandbox_id>For bulk cleanup, preview filters first and keep filters narrow:
seacloud --dry-run sandbox kill --all --state running,paused --metadata app=agentseacloud sandbox kill --all --state running,paused --metadata app=agentConfiguration
Section titled “Configuration”Configure CLI service URLs through environment variables.
| Variable | Description |
|---|---|
SEACLOUD_MODELS_URL | Overrides the model list and model specification service URL |
SEACLOUD_GENERATION_URL | Overrides the generation service URL used for task status lookup |
SEACLOUD_SKILLHUB_URL | Overrides the SkillHub API URL |
SEACLOUD_BASE_URL | Overrides the SeaCloud API origin; sandbox commands normalize it to /api/sandbox/v1 |
SEACLOUD_SANDBOX_URL | Overrides the sandbox API base URL directly |
SEACLOUD_NAMESPACE_ID | Sends a sandbox namespace scope header |
SEACLOUD_USER_ID | Sends a sandbox user scope header |
SEACLOUD_PROJECT_ID | Sends a sandbox project or team scope header |