Skip to main content
Runpod CLI is an open source command-line tool for managing your Runpod resources from your local machine. You can manage Pods, Serverless endpoints, templates, network volumes, and models, transfer files between your system and Runpod, diagnose issues, and view account information.

Quick start

After installing and configuring runpodctl, you can start managing resources immediately:

Install Runpod CLI locally

Every you deploy comes preinstalled with runpodctl and a Pod-scoped API key. You can also install it on your local machine to manage resources remotely.

Step 1: Choose an installation method

Choose the installation method that matches your operating system.
The install script automatically detects your operating system and architecture:
The script runs as root and installs the latest version to /usr/local/bin. For installation without root access, use the non-root instructions in the Linux tab.
The install script verifies the downloaded release against its SHA-256 checksum before installing, so it needs a checksum tool to be present: sha256sum on Linux or shasum on macOS. These are preinstalled in most environments, but on minimal images without one the install aborts.
This installs runpodctl globally on your system, so you can run commands from any directory.

Step 2: Configure your API key

Before you can use runpodctl locally, you must configure it with an API key. The easiest way to set up your API key and SSH configuration is with the doctor command:
This command guides you through first-time setup, including API key configuration and SSH key setup. Alternatively, you can manually configure your API key:
After running the command, you should see a confirmation message similar to this:

Step 3: Verify installation

To verify that runpodctl installed successfully, run this command:
You should see which version is installed:

Command groups

Runpod CLI organizes commands into groups based on the resource type:

Help and reference

Learn how to use Runpod CLI commands by browsing the CLI reference using the sidebar to the left, or by running the help command:
Learn more about a particular command by running:

Output format

Modern resource commands write successful output to standard output as JSON by default, which makes runpodctl scriptable and agent-friendly. Use the --output flag to switch to YAML:
The supported formats are json and yaml. For commands that reach normal pre-run validation, an unsupported --output value fails with a usage_error. Help paths do not validate this flag. The legacy resource verbs listed below retain their historical table or plaintext success output. template search and hub search emit [] on standard output when nothing matches, instead of a prose message, so a caller piping the output into a JSON parser gets a valid empty list on the no-match case.

Error format

Except for the legacy commands listed below, runpodctl reports failures as a single flat JSON object on standard error and exits with a non-zero status. Branch on the code field, never on the message text. Standard error can also contain plaintext. pod create --wait and serverless create --wait print wait progress before the JSON error, serverless update can print a partial-update warning before it, and receive can print connecting... immediately before it without a newline. Do not decode the entire standard error stream as one JSON document; extract the JSON error object even when it is adjacent to plaintext, and decode it separately so you retain fields such as id when a wait fails. The JSON error object has this shape:
Codes runpodctl generates: The API can also return its own code, which is passed through in lowercase. Treat the list above as the set the CLI generates rather than an exhaustive one.

Exit codes

Documented resource and utility commands exit non-zero on failure, including model, update, send, and receive. Do not rely on stdout being empty to detect failure. Check the exit code and parse the extracted JSON error object. A few legacy surfaces do not use the JSON error handler:
  • Runtime failures inside the legacy pod verbs (get pod, create pod, remove pod, start pod, stop pod, create pods, remove pods) and get cloud print Error: <message> via Cobra and exit 1. Cobra flag parsing and Cobra argument validation still use the structured usage_error path, but validation inside a legacy handler, such as runpodctl get cloud abc, prints plaintext.
  • The removed project command prints SDK migration guidance to standard error and exits 1.
Parsers should tolerate non-JSON error output from those commands.

API environment variables

Invoke is a separate service from the control plane. Pointing RUNPOD_API_URL or RUNPOD_GRAPHQL_URL at a non-production host does not move the invoke URLs; override RUNPOD_INVOKE_URL explicitly when you need that.

Shell completion

Enable tab completion for your shell to make working with runpodctl easier:
This command auto-detects your shell and adds the appropriate source command to your shell configuration file (~/.bashrc or ~/.zshrc). The command is idempotent—running it again skips installation if completion is already configured. Restart your shell or source the configuration file for changes to take effect.
Last modified on November 22, 2026