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 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.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
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.
kosmo integrations:call runpod.runpod_list_pods '{}' --json 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.
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 - Parameters
- none
kosmo integrations:call runpod.runpod_list_pods '{}' --json 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 - Parameters
- pod_id
kosmo integrations:call runpod.runpod_get_pod '{"pod_id":"example_pod_id"}' --json 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 - Parameters
- none
kosmo integrations:call runpod.runpod_list_templates '{}' --json 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 - Parameters
- none
kosmo integrations:call runpod.runpod_list_network_volumes '{}' --json 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 - Parameters
- none
kosmo integrations:call runpod.runpod_list_endpoints '{}' --json 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 - Parameters
- none
kosmo integrations:call runpod.runpod_list_serverless '{}' --json 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 - Parameters
- none
kosmo integrations:call runpod.runpod_get_current_user '{}' --json 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
kosmo integrations:schema runpod.runpod_list_pods --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
runpod.runpod_get_pod 1 parameters
kosmo integrations:schema runpod.runpod_get_pod --json | Parameter | Type | Required | Description |
|---|---|---|---|
pod_id | string | yes | The RunPod pod ID. |
runpod.runpod_list_templates 0 parameters
kosmo integrations:schema runpod.runpod_list_templates --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
runpod.runpod_list_network_volumes 0 parameters
kosmo integrations:schema runpod.runpod_list_network_volumes --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
runpod.runpod_list_endpoints 0 parameters
kosmo integrations:schema runpod.runpod_list_endpoints --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
runpod.runpod_list_serverless 0 parameters
kosmo integrations:schema runpod.runpod_list_serverless --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
runpod.runpod_get_current_user 0 parameters
kosmo integrations:schema runpod.runpod_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.