Skip to main content

race-cli

Command-line interface for the Race Engineering GPU cloud platform.

Install

pip install race-cli

Quick start

# Generate an API key first, via the Race Engineering web dashboard
# (Account Settings -> API Keys -> Create Key)

race login --key rk_xxxxxxxxxxxxxxxxxxxxxxxx
race deploy --gpu <slice_id> --template <template_id>
race status <pod_id>

Commands

Command Description
race login --key <key> Store an API key locally (OS keychain — never a plaintext file)
race logout Remove the locally stored key
race deploy --gpu <slice_id> --template <template_id> Deploy a new GPU pod
race list List your pods
race status <pod_id> Check a pod's deploy status
race pause <pod_id> Pause a running pod
race resume <pod_id> Resume a paused pod
race terminate <pod_id> [--yes] Terminate a pod (asks for confirmation unless --yes)

Run race --help or race <command> --help for full option details at any time.

Configuration

By default the CLI talks to the production API. To point it elsewhere (e.g. a self-hosted or staging instance):

race login --key <key> --base-url https://your-instance.example.com

The base URL is remembered for future commands — you don't need to pass it every time.

Authentication & security

  • API keys are generated through the web dashboard, not this CLI — race login only stores a key you already have.
  • Keys are stored using your operating system's credential store (macOS Keychain, Windows Credential Manager, Linux Secret Service) via the keyring package — never written to a plaintext file on disk.
  • race login validates the key against the API before storing it, so a mistyped or invalid key is never silently saved.

Retries and idempotency

race deploy automatically retries once on a network-layer failure (timeout, dropped connection) using the same idempotency key for every retry of that attempt — this guarantees a retried deploy can never accidentally create a second pod. A definitive error response from the server (e.g. insufficient balance, invalid template) is not retried.

Requirements

  • Python 3.9+
  • A Race Engineering account and API key

License

MIT — see LICENSE.

Release files for race-ai 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for race-ai 0.1.0
File Size Uploaded
race_ai-0.1.0.tar.gz 11.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for race-ai 0.1.0
File Interpreter ABI Platform
race_ai-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 24.0 kB

Release files / race_ai-0.1.0.tar.gz

Download URL race_ai-0.1.0.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a933566e890c04875fe27aed5b6a91014a75371f42df6613feb3b8958c68c36a
BLAKE2b-256 checksum
How to use checksums
99205bea914fbd0dc1c2dd7e91c270359adf6befc171398ece90bf01523f9bdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / race_ai-0.1.0-py3-none-any.whl

Download URL race_ai-0.1.0-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02acb50674706a126d260dabe84eae546460f764162f393b7add12c84401d755
BLAKE2b-256 checksum
How to use checksums
559c95e4c51431158f13ea982d4527a6e8ced14282b09633b236952f6e8a41f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page