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 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.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
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.
kosmo integrations:call paperspace.paperspace_list_machines '{}' --json 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.
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 - Parameters
- none
kosmo integrations:call paperspace.paperspace_list_machines '{}' --json 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 - Parameters
- machine_id
kosmo integrations:call paperspace.paperspace_get_machine '{"machine_id":"example_machine_id"}' --json 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 - Parameters
- none
kosmo integrations:call paperspace.paperspace_list_notebooks '{}' --json 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 - Parameters
- none
kosmo integrations:call paperspace.paperspace_list_datasets '{}' --json 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 - Parameters
- none
kosmo integrations:call paperspace.paperspace_list_projects '{}' --json 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 - Parameters
- none
kosmo integrations:call paperspace.paperspace_list_ssh_keys '{}' --json 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 - Parameters
- none
kosmo integrations:call paperspace.paperspace_get_current_user '{}' --json 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
kosmo integrations:schema paperspace.paperspace_list_machines --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
paperspace.paperspace_get_machine 1 parameters
kosmo integrations:schema paperspace.paperspace_get_machine --json | Parameter | Type | Required | Description |
|---|---|---|---|
machine_id | string | yes | The machine ID. |
paperspace.paperspace_list_notebooks 0 parameters
kosmo integrations:schema paperspace.paperspace_list_notebooks --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
paperspace.paperspace_list_datasets 0 parameters
kosmo integrations:schema paperspace.paperspace_list_datasets --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
paperspace.paperspace_list_projects 0 parameters
kosmo integrations:schema paperspace.paperspace_list_projects --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
paperspace.paperspace_list_ssh_keys 0 parameters
kosmo integrations:schema paperspace.paperspace_list_ssh_keys --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
paperspace.paperspace_get_current_user 0 parameters
kosmo integrations:schema paperspace.paperspace_get_current_user --json | Parameter | Type | Required | Description |
|---|---|---|---|
| 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.