KosmoKrator

productivity

RunPod CLI for AI Agents

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

RunPod CLI Setup

RunPod can be configured headlessly with `kosmokrator integrations:configure runpod`.

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 runpod --set access_token="$RUNPOD_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor runpod --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 RUNPOD_ACCESS_TOKEN Secret secret yes API Key
url RUNPOD_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 runpod.runpod_list_pods '{}' --json
Provider shortcut
kosmo integrations:runpod runpod_list_pods '{}' --json

Discovery

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

Discovery commands
kosmo integrations:docs runpod --json
kosmo integrations:docs runpod.runpod_list_pods --json
kosmo integrations:schema runpod.runpod_list_pods --json
kosmo integrations:search "RunPod" --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.

runpod.runpod_list_pods

List all GPU pods in your RunPod account. Returns pod IDs, names, status, GPU types, and runtime details.

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

runpod.runpod_get_pod

Get detailed information about a specific RunPod GPU pod, including its status, GPU type, runtime, ports, and configuration. Use the pod ID obtained from runpod_list_pods.

Read read
Parameters
pod_id
Generic call
kosmo integrations:call runpod.runpod_get_pod '{"pod_id":"example_pod_id"}' --json
Shortcut
kosmo integrations:runpod runpod_get_pod '{"pod_id":"example_pod_id"}' --json

runpod.runpod_list_templates

List all available RunPod templates. Returns template IDs, names, images, and machine configurations.

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

runpod.runpod_list_network_volumes

List all network volumes in your RunPod account. Returns volume IDs, names, sizes, and data center information.

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

runpod.runpod_list_endpoints

List all RunPod endpoints. Returns endpoint IDs, names, statuses, and configuration details.

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

runpod.runpod_list_serverless

List all serverless endpoints in your RunPod account. Returns endpoint IDs, names, statuses, and worker configurations.

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

runpod.runpod_get_current_user

Get the profile of the currently authenticated RunPod user, including name, email, and account details.

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

Function Schemas

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

runpod.runpod_list_pods 0 parameters
Schema command
kosmo integrations:schema runpod.runpod_list_pods --json
ParameterTypeRequiredDescription
No parameters.
runpod.runpod_get_pod 1 parameters
Schema command
kosmo integrations:schema runpod.runpod_get_pod --json
ParameterTypeRequiredDescription
pod_id string yes The RunPod pod ID.
runpod.runpod_list_templates 0 parameters
Schema command
kosmo integrations:schema runpod.runpod_list_templates --json
ParameterTypeRequiredDescription
No parameters.
runpod.runpod_list_network_volumes 0 parameters
Schema command
kosmo integrations:schema runpod.runpod_list_network_volumes --json
ParameterTypeRequiredDescription
No parameters.
runpod.runpod_list_endpoints 0 parameters
Schema command
kosmo integrations:schema runpod.runpod_list_endpoints --json
ParameterTypeRequiredDescription
No parameters.
runpod.runpod_list_serverless 0 parameters
Schema command
kosmo integrations:schema runpod.runpod_list_serverless --json
ParameterTypeRequiredDescription
No parameters.
runpod.runpod_get_current_user 0 parameters
Schema command
kosmo integrations:schema runpod.runpod_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.