Skip to main content

Installation Guide

Installing the Morph Cloud SDK is simple. Choose your preferred language below:

# requires python3.10 or newer 
# create a new virtual environment
python -m venv .venv

# activate the new virtual environment
source .venv/bin/activate

# install morphcloud
pip install morphcloud

Make sure that you have obtained your API key and that it is set as the value of your MORPH_API_KEY environment variable.

Once installed, the CLI and the first-party Volumes helpers are automatically available in your environment:

morphcloud --help
morphcloud volumes --help

To use the Python SDK in your code:

import os

from morphcloud import MorphCloudClient

client = MorphCloudClient(api_key=os.environ["MORPH_API_KEY"])

print([bucket.name for bucket in client.volumes.list_buckets()])

SDK Installation

For more details about our SDKs, check out the official repositories:

Don't forget to configure your API key.