| name | conway-cloud |
| description | Operate Conway Cloud from AI agents, with Automaton-first defaults and HTTP fallback. |
| auto-activate | true |
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:
conway-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_list
sandbox_create
sandbox_exec
sandbox_read_file
sandbox_write_file
sandbox_expose_port
sandbox_get_url
sandbox_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:
https://api.conway.tech/v1
Auth header on every request:
Authorization: Bearer $CONWAY_API_KEY
Core calls:
- List sandboxes:
curl https://api.conway.tech/v1/sandboxes \
-H "Authorization: Bearer $CONWAY_API_KEY"
- Create sandbox:
curl -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:
curl -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:
curl -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:
curl "https://api.conway.tech/v1/sandboxes/<SANDBOX_ID>/files?path=/home/ubuntu/app.js" \
-H "Authorization: Bearer $CONWAY_API_KEY"
- Expose port:
curl -X POST "https://api.conway.tech/v1/sandboxes/<SANDBOX_ID>/ports?port=3000" \
-H "Authorization: Bearer $CONWAY_API_KEY"
- Delete sandbox:
curl -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:
curl -fsSL https://conway.tech/terminal.sh | sh
Manual install (if API key already exists):
npm 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.