KosmoKrator

productivity

Paperspace CLI for AI Agents

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

7 functions 7 read 0 write Bearer token auth

Paperspace CLI Setup

Paperspace can be configured headlessly with `kosmokrator integrations:configure paperspace`.

# 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 paperspace --set access_token="$PAPERSPACE_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor paperspace --json
kosmokrator integrations:status --json

Credentials

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

KeyEnv varTypeRequiredLabel
access_token PAPERSPACE_ACCESS_TOKEN Secret secret yes API Token
url PAPERSPACE_URL URL url no API Base URL

Call Paperspace Headlessly

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

kosmo integrations:call paperspace.paperspace_list_machines '{}' --json

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

kosmo integrations:paperspace paperspace_list_machines '{}' --json

Agent Discovery Commands

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

kosmo integrations:docs paperspace --json
kosmo integrations:docs paperspace.paperspace_list_machines --json
kosmo integrations:schema paperspace.paperspace_list_machines --json
kosmo integrations:search "Paperspace" --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 Paperspace.

paperspace.paperspace_list_machines

Read read

List all GPU machines in the Paperspace account. Returns IDs, names, OS, machine type, state, and public IP address.

Parameters
none

Generic CLI call

kosmo integrations:call paperspace.paperspace_list_machines '{}' --json

Provider shortcut

kosmo integrations:paperspace paperspace_list_machines '{}' --json

paperspace.paperspace_get_machine

Read read

Get details for a specific Paperspace machine by ID. Returns full machine information including specs, state, and network configuration.

Parameters
machine_id

Generic CLI call

kosmo integrations:call paperspace.paperspace_get_machine '{"machine_id":"example_machine_id"}' --json

Provider shortcut

kosmo integrations:paperspace paperspace_get_machine '{"machine_id":"example_machine_id"}' --json

paperspace.paperspace_list_notebooks

Read read

List all Gradient notebooks in the Paperspace account. Returns notebook IDs, names, cluster, machine type, and state.

Parameters
none

Generic CLI call

kosmo integrations:call paperspace.paperspace_list_notebooks '{}' --json

Provider shortcut

kosmo integrations:paperspace paperspace_list_notebooks '{}' --json

paperspace.paperspace_list_datasets

Read read

List all datasets in the Paperspace account. Returns dataset IDs, names, storage usage, and creation dates.

Parameters
none

Generic CLI call

kosmo integrations:call paperspace.paperspace_list_datasets '{}' --json

Provider shortcut

kosmo integrations:paperspace paperspace_list_datasets '{}' --json

paperspace.paperspace_list_projects

Read read

List all Gradient projects in the Paperspace account. Returns project IDs, names, descriptions, and creation dates.

Parameters
none

Generic CLI call

kosmo integrations:call paperspace.paperspace_list_projects '{}' --json

Provider shortcut

kosmo integrations:paperspace paperspace_list_projects '{}' --json

paperspace.paperspace_list_ssh_keys

Read read

List all SSH keys in the Paperspace account. Returns key IDs, names, and fingerprints.

Parameters
none

Generic CLI call

kosmo integrations:call paperspace.paperspace_list_ssh_keys '{}' --json

Provider shortcut

kosmo integrations:paperspace paperspace_list_ssh_keys '{}' --json

paperspace.paperspace_get_current_user

Read read

Get information about the current authenticated Paperspace user, including email, user ID, and team membership.

Parameters
none

Generic CLI call

kosmo integrations:call paperspace.paperspace_get_current_user '{}' --json

Provider shortcut

kosmo integrations:paperspace paperspace_get_current_user '{}' --json

Function Schemas

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

paperspace.paperspace_list_machines

List all GPU machines in the Paperspace account. Returns IDs, names, OS, machine type, state, and public IP address.

Operation
Read read
Schema command
kosmo integrations:schema paperspace.paperspace_list_machines --json
ParameterTypeRequiredDescription
No parameters.

paperspace.paperspace_get_machine

Get details for a specific Paperspace machine by ID. Returns full machine information including specs, state, and network configuration.

Operation
Read read
Schema command
kosmo integrations:schema paperspace.paperspace_get_machine --json
ParameterTypeRequiredDescription
machine_id string yes The machine ID.

paperspace.paperspace_list_notebooks

List all Gradient notebooks in the Paperspace account. Returns notebook IDs, names, cluster, machine type, and state.

Operation
Read read
Schema command
kosmo integrations:schema paperspace.paperspace_list_notebooks --json
ParameterTypeRequiredDescription
No parameters.

paperspace.paperspace_list_datasets

List all datasets in the Paperspace account. Returns dataset IDs, names, storage usage, and creation dates.

Operation
Read read
Schema command
kosmo integrations:schema paperspace.paperspace_list_datasets --json
ParameterTypeRequiredDescription
No parameters.

paperspace.paperspace_list_projects

List all Gradient projects in the Paperspace account. Returns project IDs, names, descriptions, and creation dates.

Operation
Read read
Schema command
kosmo integrations:schema paperspace.paperspace_list_projects --json
ParameterTypeRequiredDescription
No parameters.

paperspace.paperspace_list_ssh_keys

List all SSH keys in the Paperspace account. Returns key IDs, names, and fingerprints.

Operation
Read read
Schema command
kosmo integrations:schema paperspace.paperspace_list_ssh_keys --json
ParameterTypeRequiredDescription
No parameters.

paperspace.paperspace_get_current_user

Get information about the current authenticated Paperspace user, including email, user ID, and team membership.

Operation
Read read
Schema command
kosmo integrations:schema paperspace.paperspace_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.