12345from opencomputer import Snapshots snapshots = Snapshots() # or with explicit config: snapshots = Snapshots(api_key="...", api_url="...")
body api_keystrOPENCOMPUTER_API_KEY env var)body api_urlstrOPENCOMPUTER_API_URL env var)await snapshots.create(name, image, on_build_logs=None)body namestrrequiredbody imageImagerequiredbody on_build_logsCallable[[str], None]dictawait snapshots.list()list[dict]await snapshots.delete(name)None12345678910{ "id": str, # Unique snapshot identifier "name": str, # Snapshot name "status": str, # "building" | "ready" | "failed" "contentHash": str, # SHA-256 hash of the image manifest "checkpointId": str, # Linked checkpoint ID "manifest": dict, # The declarative image manifest "createdAt": str, # ISO 8601 creation timestamp "lastUsedAt": str, # ISO 8601 last usage timestamp }