A client library for accessing Lambda Cloud API
Project description
Lambda Cloud API - CLI
This project is a wrapper around the Lambda Cloud API with some additional Quality-of-Life additions. The documentation of the API can be found here: https://docs-api.lambda.ai/api/cloud
Installation
uv pip install lambda-ai-cloud-api-client
Usage
- Set up an API token and environment.
In your lambda.ai account go to https://cloud.lambda.ai/api-keys/cloud-api and generate a new Cloud AI Key. Set this token as an environment variable in the terminal you've installed this project.
export LAMBDA_CLOUD_API_TOKEN=<your-token>
The project also accepts LAMBDA_CLOUD_TOKEN and LAMBDA_API_TOKEN if you prefer that naming.
Optionally you can set the api base url, LAMBDA_CLOUD_BASE_URL, the default is https://cloud.lambdalabs.com .
- Using the CLI
To save on keystrokes I've named the command lai for lambda.ai. To see all available commands use:
lai --help
Overview of features
- List instances:
lai ls - Get instance details:
lai get <instance-id> - Start an instance:
lai start --region us-east-1 --instance-type gpu_1x_a10 --ssh-key my-key --name demo - Stop instances:
lai stop <id-1> <id-2> - Restart instances:
lai restart <id-1> <id-2> - Rename an instance:
lai rename <instance-id> new-name - List instance types:
lai types --available --cheapest --region us-east-1- --available shows only those instance types that are currently available
- --cheapest finds the instance-type that is currently the cheapest $ per hour.
- List available images:
lai images --region us-east-1 - List SSH keys:
lai keys
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lambda_ai_cloud_api_client-2.0.0.tar.gz.
File metadata
- Download URL: lambda_ai_cloud_api_client-2.0.0.tar.gz
- Upload date:
- Size: 50.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9948ba321f4e30603f66d5f2566679c6d1108b5ffcfa7d963703e734d5a9d3d4
|
|
| MD5 |
3ecf94b986f9665a1f793d895e4bf4f2
|
|
| BLAKE2b-256 |
cf7650ddea80a5e5212a4d5936962742048a2344ca0d4d5342ff19741385a326
|
Provenance
The following attestation bundles were made for lambda_ai_cloud_api_client-2.0.0.tar.gz:
Publisher:
ci.yml on alexandervaneck/lambda-ai-cloud-api-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lambda_ai_cloud_api_client-2.0.0.tar.gz -
Subject digest:
9948ba321f4e30603f66d5f2566679c6d1108b5ffcfa7d963703e734d5a9d3d4 - Sigstore transparency entry: 715625991
- Sigstore integration time:
-
Permalink:
alexandervaneck/lambda-ai-cloud-api-client@2d132819b3a8272e74f62272646d66bf73331270 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/alexandervaneck
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@2d132819b3a8272e74f62272646d66bf73331270 -
Trigger Event:
push
-
Statement type:
File details
Details for the file lambda_ai_cloud_api_client-2.0.0-py3-none-any.whl.
File metadata
- Download URL: lambda_ai_cloud_api_client-2.0.0-py3-none-any.whl
- Upload date:
- Size: 181.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bba811618530ea78b306e97dcb4093e56a8a920bea6d6522582fddb6f657b110
|
|
| MD5 |
12ad7d02e6a461e5574f54e6c2bcd7b8
|
|
| BLAKE2b-256 |
40eb4e600dadbda79cde97215d5f47afde5a03d101a1a532d8418096802cc65e
|
Provenance
The following attestation bundles were made for lambda_ai_cloud_api_client-2.0.0-py3-none-any.whl:
Publisher:
ci.yml on alexandervaneck/lambda-ai-cloud-api-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lambda_ai_cloud_api_client-2.0.0-py3-none-any.whl -
Subject digest:
bba811618530ea78b306e97dcb4093e56a8a920bea6d6522582fddb6f657b110 - Sigstore transparency entry: 715625992
- Sigstore integration time:
-
Permalink:
alexandervaneck/lambda-ai-cloud-api-client@2d132819b3a8272e74f62272646d66bf73331270 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/alexandervaneck
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@2d132819b3a8272e74f62272646d66bf73331270 -
Trigger Event:
push
-
Statement type: