Conway Cloud Operations
Use this skill for sandbox lifecycle, command execution, file operations, and service exposure on Conway Cloud.
Precheck (Automaton-first)
Automatons are usually provisioned already. Validate first, then operate:
bashconway-terminal --version curl https://api.conway.tech/health
If CONWAY_API_KEY is missing or invalid, use the fallback bootstrap path below.
Preferred interface: MCP tools
Use MCP tools first when available:
sandbox_listsandbox_createsandbox_execsandbox_read_filesandbox_write_filesandbox_expose_portsandbox_get_urlsandbox_delete- Interactive:
sandbox_pty_create,sandbox_pty_write,sandbox_pty_read,sandbox_pty_close
HTTP fallback (direct API)
If MCP is unavailable, use direct HTTP calls.
Base URL:
bashhttps://api.conway.tech/v1
Auth header on every request:
bashAuthorization: Bearer $CONWAY_API_KEY
Core calls:
- List sandboxes:
bashcurl https://api.conway.tech/v1/sandboxes \ -H "Authorization: Bearer $CONWAY_API_KEY"
- Create sandbox:
bashcurl -X POST https://api.conway.tech/v1/sandboxes \ -H "Authorization: Bearer $CONWAY_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"task-sandbox","vcpu":1,"memory_mb":512,"disk_gb":2,"region":"us-east"}'
- Run command:
bashcurl -X POST https://api.conway.tech/v1/sandboxes/<SANDBOX_ID>/exec \ -H "Authorization: Bearer $CONWAY_API_KEY" \ -H "Content-Type: application/json" \ -d '{"command":"pwd && ls -la"}'
- Upload file:
bashcurl -X POST "https://api.conway.tech/v1/sandboxes/<SANDBOX_ID>/files" \ -H "Authorization: Bearer $CONWAY_API_KEY" \ -H "Content-Type: application/json" \ -d '{"path":"/home/ubuntu/app.js","content":"console.log(\"hello\")"}'
- Download/read file:
bashcurl "https://api.conway.tech/v1/sandboxes/<SANDBOX_ID>/files?path=/home/ubuntu/app.js" \ -H "Authorization: Bearer $CONWAY_API_KEY"
- Expose port:
bashcurl -X POST "https://api.conway.tech/v1/sandboxes/<SANDBOX_ID>/ports?port=3000" \ -H "Authorization: Bearer $CONWAY_API_KEY"
- Delete sandbox:
bashcurl -X DELETE "https://api.conway.tech/v1/sandboxes/<SANDBOX_ID>" \ -H "Authorization: Bearer $CONWAY_API_KEY"
Fallback bootstrap (when not provisioned)
Prefer one-line provisioning:
bashcurl -fsSL https://conway.tech/terminal.sh | sh
Manual install (if API key already exists):
bashnpm install -g conway-terminal export CONWAY_API_KEY="cnwy_k_..."
Run modes:
- MCP stdio mode:
conway-terminal - HTTP mode:
conway-terminal --http 3000 - HTTP tool check:
curl http://localhost:3000/mcp/v1/tools
Execution pattern
- Reuse existing sandbox when possible.
- Create minimal resources first; scale up only if needed.
- Execute in small, verifiable steps.
- Expose ports only after health checks pass.
- Tear down idle sandboxes.
Guardrails
- Never leak
CONWAY_API_KEY, wallet keys, or tokenized terminal URLs. - Avoid destructive actions unless explicitly required.
- Keep operations resource-aware and cost-conscious.


