KosmoKrator

productivity

Lambda Labs CLI for AI Agents

Use the Lambda Labs CLI from KosmoKrator to call Lambda Labs tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

7 functions 6 read 1 write API key auth

Lambda Labs CLI Setup

Lambda Labs can be configured headlessly with `kosmokrator integrations:configure lambda-labs`.

# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure lambda-labs --set api_key="$LAMBDA_LABS_API_KEY" --enable --read allow --write ask --json
kosmokrator integrations:doctor lambda-labs --json
kosmokrator integrations:status --json

Credentials

Authentication type: API key api_key. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
api_key LAMBDA_LABS_API_KEY Secret secret yes API Key
url LAMBDA_LABS_URL URL url no API Base URL

Call Lambda Labs Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call lambda-labs.lambda_labs_list_instances '{}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:lambda-labs lambda_labs_list_instances '{}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs lambda-labs --json
kosmo integrations:docs lambda-labs.lambda_labs_list_instances --json
kosmo integrations:schema lambda-labs.lambda_labs_list_instances --json
kosmo integrations:search "Lambda Labs" --json
kosmo integrations:list --json

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to Lambda Labs.

lambda-labs.lambda_labs_list_instances

Read read

List all GPU instances in the Lambda Labs account. Returns instance IDs, names, status, IP addresses, and GPU configuration.

Parameters
none

Generic CLI call

kosmo integrations:call lambda-labs.lambda_labs_list_instances '{}' --json

Provider shortcut

kosmo integrations:lambda-labs lambda_labs_list_instances '{}' --json

lambda-labs.lambda_labs_get_instance

Read read

Get details for a specific Lambda Labs GPU instance by ID. Returns full instance information including status, IP, region, and GPU type.

Parameters
id

Generic CLI call

kosmo integrations:call lambda-labs.lambda_labs_get_instance '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:lambda-labs lambda_labs_get_instance '{"id":"example_id"}' --json

lambda-labs.lambda_labs_launch_instance

Write write

Launch a new GPU instance on Lambda Labs. Requires a region name, instance type, SSH key IDs, and optionally a name and image.

Parameters
name, region_name, instance_type, ssh_key_ids, image_id, quantity

Generic CLI call

kosmo integrations:call lambda-labs.lambda_labs_launch_instance '{"name":"example_name","region_name":"example_region_name","instance_type":"example_instance_type","ssh_key_ids":"example_ssh_key_ids","image_id":"example_image_id","quantity":1}' --json

Provider shortcut

kosmo integrations:lambda-labs lambda_labs_launch_instance '{"name":"example_name","region_name":"example_region_name","instance_type":"example_instance_type","ssh_key_ids":"example_ssh_key_ids","image_id":"example_image_id","quantity":1}' --json

lambda-labs.lambda_labs_list_ssh_keys

Read read

List all SSH keys registered in the Lambda Labs account. Returns key IDs, names, and public key fingerprints.

Parameters
none

Generic CLI call

kosmo integrations:call lambda-labs.lambda_labs_list_ssh_keys '{}' --json

Provider shortcut

kosmo integrations:lambda-labs lambda_labs_list_ssh_keys '{}' --json

lambda-labs.lambda_labs_list_instance_types

Read read

List all available GPU instance types on Lambda Labs. Returns specs including GPU model, VRAM, vCPUs, memory, and pricing.

Parameters
none

Generic CLI call

kosmo integrations:call lambda-labs.lambda_labs_list_instance_types '{}' --json

Provider shortcut

kosmo integrations:lambda-labs lambda_labs_list_instance_types '{}' --json

lambda-labs.lambda_labs_list_images

Read read

List all available machine images on Lambda Labs. Returns image IDs, names, and descriptions for OS templates and custom images.

Parameters
none

Generic CLI call

kosmo integrations:call lambda-labs.lambda_labs_list_images '{}' --json

Provider shortcut

kosmo integrations:lambda-labs lambda_labs_list_images '{}' --json

lambda-labs.lambda_labs_get_current_user

Read read

Get information about the current authenticated Lambda Labs user, including email, user ID, and account status.

Parameters
none

Generic CLI call

kosmo integrations:call lambda-labs.lambda_labs_get_current_user '{}' --json

Provider shortcut

kosmo integrations:lambda-labs lambda_labs_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

lambda-labs.lambda_labs_list_instances

List all GPU instances in the Lambda Labs account. Returns instance IDs, names, status, IP addresses, and GPU configuration.

Operation
Read read
Schema command
kosmo integrations:schema lambda-labs.lambda_labs_list_instances --json
ParameterTypeRequiredDescription
No parameters.

lambda-labs.lambda_labs_get_instance

Get details for a specific Lambda Labs GPU instance by ID. Returns full instance information including status, IP, region, and GPU type.

Operation
Read read
Schema command
kosmo integrations:schema lambda-labs.lambda_labs_get_instance --json
ParameterTypeRequiredDescription
id string yes The instance ID.

lambda-labs.lambda_labs_launch_instance

Launch a new GPU instance on Lambda Labs. Requires a region name, instance type, SSH key IDs, and optionally a name and image.

Operation
Write write
Schema command
kosmo integrations:schema lambda-labs.lambda_labs_launch_instance --json
ParameterTypeRequiredDescription
name string yes A human-readable name for the instance (e.g., "gpu-training-01").
region_name string yes The region to launch in (e.g., "us-east-1", "us-west-2", "europe-central-1").
instance_type string yes The instance type slug (e.g., "gpu_1x_a100", "gpu_8x_h100").
ssh_key_ids array yes Array of SSH key IDs to assign to the instance.
image_id string no The image ID to use for the instance OS.
quantity integer no Number of instances to launch (default: 1).

lambda-labs.lambda_labs_list_ssh_keys

List all SSH keys registered in the Lambda Labs account. Returns key IDs, names, and public key fingerprints.

Operation
Read read
Schema command
kosmo integrations:schema lambda-labs.lambda_labs_list_ssh_keys --json
ParameterTypeRequiredDescription
No parameters.

lambda-labs.lambda_labs_list_instance_types

List all available GPU instance types on Lambda Labs. Returns specs including GPU model, VRAM, vCPUs, memory, and pricing.

Operation
Read read
Schema command
kosmo integrations:schema lambda-labs.lambda_labs_list_instance_types --json
ParameterTypeRequiredDescription
No parameters.

lambda-labs.lambda_labs_list_images

List all available machine images on Lambda Labs. Returns image IDs, names, and descriptions for OS templates and custom images.

Operation
Read read
Schema command
kosmo integrations:schema lambda-labs.lambda_labs_list_images --json
ParameterTypeRequiredDescription
No parameters.

lambda-labs.lambda_labs_get_current_user

Get information about the current authenticated Lambda Labs user, including email, user ID, and account status.

Operation
Read read
Schema command
kosmo integrations:schema lambda-labs.lambda_labs_get_current_user --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.