Quick start
After installing and configuringrunpodctl, you can start managing resources immediately:
Install Runpod CLI locally
Every you deploy comes preinstalled withrunpodctl 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.- Install script
- macOS
- Linux
- Windows
- Google Colab / Jupyter Notebook
- conda / mamba / pixi
- Nix
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.runpodctl globally on your system, so you can run commands from any directory.
Step 2: Configure your API key
Before you can userunpodctl 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:
Step 3: Verify installation
To verify thatrunpodctl installed successfully, run this command:
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 thehelp command:
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:
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 thecode 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, includingmodel, 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) andget cloudprintError: <message>via Cobra and exit1. Cobra flag parsing and Cobra argument validation still use the structuredusage_errorpath, but validation inside a legacy handler, such asrunpodctl get cloud abc, prints plaintext. - The removed
projectcommand prints SDK migration guidance to standard error and exits1.
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 withrunpodctl easier:
~/.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.