Registry / devops / morphcloud

morphcloud

JSON →
library0.1.111pypypi✓ verified 85d ago

A Python SDK and CLI tool for creating, managing, and interacting with Morph Cloud VMs. Current version: 0.1.111. Rapid release cadence (daily/weekly).

pip install morphcloud
INSTALL
IMPORT
SIG · MORPHCLOUD
M
morphcloud
devopspythonv0.1.111
Install
8.4s avg
Import
850ms
Disk
102MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.111 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 9.6s
py 3.11
✓ —
✓ 8.8s
py 3.12
✓ —
✓ 7.5s
py 3.13
✓ —
✓ 7.7s
py 3.9
✕ build_error
✕ build_error
102MB installed
● package 102MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MorphCloudClient
from morphcloud import MorphCloudClient
Correct import for the main client class.
morphcloud
import morphcloud
Module-level import.

Initialize client, create a VM, run a command, then clean up.

from morphcloud import MorphCloudClient import os client = MorphCloudClient(api_key=os.environ.get('MORPH_API_KEY', '')) # Create a VM vm = client.vms.create(name='my-vm', image='ubuntu-22.04') print(f"VM ID: {vm.id}") # Start the VM vm.start() # Execute a command result = vm.exec('echo hello') print(result.stdout) # Stop and destroy vm.stop() vm.destroy()
morphcloud --version
Debug
Known issues
gotchaAPI key must be set via environment variable MORPH_API_KEY or passed as argument. The SDK does not fall back to config files.
fix
Set MORPH_API_KEY environment variable or pass api_key parameter to MorphCloudClient.
affects: >=0.1.0
breakingVM image parameter does not accept image IDs from the dashboard. Use image names like 'ubuntu-22.04' or 'debian-11'.
fix
Use the exact image name from the SDK's list_images() method or the CLI.
affects: >=0.1.0
Errors
Common errors & fixes
morphcloud.exceptions.AuthenticationError: Invalid API key
API key not set or incorrect.
fix
Check that MORPH_API_KEY environment variable is set and valid.
morphcloud.exceptions.ResourceNotFoundError: VM with id '...' not found
VM ID does not exist or has been destroyed.
fix
Verify the VM ID is correct. Use client.vms.list() to find active VMs.
Upgrade
Version history
0.1.111latest on PyPI · released Apr 6, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
morphcloud — pip install morphcloud · libregistry