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.

Paperspace CLI Setup

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

Install, configure, and verify
# 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 reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

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

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call paperspace.paperspace_list_machines '{}' --json
Provider shortcut
kosmo integrations:paperspace paperspace_list_machines '{}' --json

Discovery

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

Discovery commands
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

Automation Contexts

The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.

CLI Functions

Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.

paperspace.paperspace_list_machines

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

Read read
Parameters
none
Generic call
kosmo integrations:call paperspace.paperspace_list_machines '{}' --json
Shortcut
kosmo integrations:paperspace paperspace_list_machines '{}' --json

paperspace.paperspace_get_machine

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

Read read
Parameters
machine_id
Generic call
kosmo integrations:call paperspace.paperspace_get_machine '{"machine_id":"example_machine_id"}' --json
Shortcut
kosmo integrations:paperspace paperspace_get_machine '{"machine_id":"example_machine_id"}' --json

paperspace.paperspace_list_notebooks

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

Read read
Parameters
none
Generic call
kosmo integrations:call paperspace.paperspace_list_notebooks '{}' --json
Shortcut
kosmo integrations:paperspace paperspace_list_notebooks '{}' --json

paperspace.paperspace_list_datasets

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

Read read
Parameters
none
Generic call
kosmo integrations:call paperspace.paperspace_list_datasets '{}' --json
Shortcut
kosmo integrations:paperspace paperspace_list_datasets '{}' --json

paperspace.paperspace_list_projects

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

Read read
Parameters
none
Generic call
kosmo integrations:call paperspace.paperspace_list_projects '{}' --json
Shortcut
kosmo integrations:paperspace paperspace_list_projects '{}' --json

paperspace.paperspace_list_ssh_keys

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

Read read
Parameters
none
Generic call
kosmo integrations:call paperspace.paperspace_list_ssh_keys '{}' --json
Shortcut
kosmo integrations:paperspace paperspace_list_ssh_keys '{}' --json

paperspace.paperspace_get_current_user

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

Read read
Parameters
none
Generic call
kosmo integrations:call paperspace.paperspace_get_current_user '{}' --json
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 0 parameters
Schema command
kosmo integrations:schema paperspace.paperspace_list_machines --json
ParameterTypeRequiredDescription
No parameters.
paperspace.paperspace_get_machine 1 parameters
Schema command
kosmo integrations:schema paperspace.paperspace_get_machine --json
ParameterTypeRequiredDescription
machine_id string yes The machine ID.
paperspace.paperspace_list_notebooks 0 parameters
Schema command
kosmo integrations:schema paperspace.paperspace_list_notebooks --json
ParameterTypeRequiredDescription
No parameters.
paperspace.paperspace_list_datasets 0 parameters
Schema command
kosmo integrations:schema paperspace.paperspace_list_datasets --json
ParameterTypeRequiredDescription
No parameters.
paperspace.paperspace_list_projects 0 parameters
Schema command
kosmo integrations:schema paperspace.paperspace_list_projects --json
ParameterTypeRequiredDescription
No parameters.
paperspace.paperspace_list_ssh_keys 0 parameters
Schema command
kosmo integrations:schema paperspace.paperspace_list_ssh_keys --json
ParameterTypeRequiredDescription
No parameters.
paperspace.paperspace_get_current_user 0 parameters
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.