Skip to main content

Sign in from your terminal and pull the optimized model packages your workspace owns

Project description

runinfra-cli

Sign in from your terminal and pull the optimized model packages your workspace owns.

$ pip install runinfra-cli
$ runinfra login
$ runinfra pull <slug> --out ./models

Replace <slug> with the slug shown on your package's page under Optimized models on runinfra.ai.

No Node.js required. This distribution carries a self contained program, so pip install is the only step. That is the point of publishing here: the hosts these packages get pulled onto usually have Python and often do not have Node.


Which package do I want?

There are two, they do different jobs, and installing the wrong one is the most common mistake we see.

Install What it gives you Use it when
pip install runinfra-cli The runinfra command You want to sign in and download the packages your workspace bought
pip install runinfra The Python SDK, import runinfra You want to call an optimized endpoint from your code

They are separate products on separate release cycles and they do not conflict. Installing both in the same environment is fine and supported.


Commands

Command What it does
runinfra login [--device] Connects this terminal by having you approve it in a browser
runinfra pull <slug> [--out DIR] [--concurrency N] Downloads a package this workspace owns, resumable
runinfra logout [--local] Revokes this machine's key and deletes the stored copy. --local skips the revoke call
runinfra whoami Shows what this machine has stored, and when its access expires

Working aliases are -h, --help, -V, --version, -o, --out DIR for doctor and pull, and -c, --concurrency N for pull.

Run runinfra --help for the full grammar.

Signing in on a machine with no browser

That is the normal case on a GPU host, and it is handled:

$ runinfra login --device

The terminal prints a short code that you type into the approval page on whatever device does have a browser. The code never arrives inside a link. A link that shows up with the code already in it did not come from us.

Downloads resume

Kits are large. If a transfer stops, for any reason including Ctrl-C, run the same runinfra pull command again and it continues from where it stopped rather than starting over.


Exit codes

These are a contract, not an implementation detail. Scripts branch on them, so they do not change without a major version.

Code Meaning
0 Success
1 Unexpected internal CLI error
2 Bad usage, or this machine cannot run the command
3 Not signed in, denied, or expired
4 The workspace does not own it
5 Network or server failure
6 Integrity failure, such as a checksum mismatch
7 No disk space, or the destination is not writable
130 Interrupted

The split matters in automation. A 5 is worth retrying. A 4 never will be.

Installing through pip does not change any of this. The runinfra command installed here hands control straight to the program and returns its exit code untouched, including 130 from Ctrl-C.


Supported platforms

Operating system Processor
Linux (glibc 2.17 and newer) x86-64, arm64
Linux (musl, such as Alpine) x86-64, arm64
macOS 11 and newer Apple silicon, Intel
Windows 10 and newer x86-64

Python 3.8 or newer. There is nothing to compile and no build step, so the install is a download and an unpack.

If pip install runinfra-cli reports that no matching distribution was found, your platform is not published yet. Tell us which one you need at https://runinfra.ai/contact.

If the runinfra command is not found after a successful install, your environment's scripts directory is not on PATH. python -m runinfra_cli does the same thing and always works.


What the CLI never does

  • It never sees your password. Sign in happens in your browser, in your existing session. The CLI only ever holds an authorization code and, after the exchange, the key that code bought.
  • It never asks you to paste an API key. Approving in the browser mints one, the CLI writes it to a file only you can read, and revoking it in Settings kills it.
  • It never prints the key. whoami and logout show a redacted form.
  • The key it holds cannot spend money. It opens exactly one door, downloading a package your workspace already owns.

Credentials are stored in $XDG_CONFIG_HOME/runinfra/credentials.json on Linux and macOS, and under %LOCALAPPDATA%\runinfra\ on Windows. Set RUNINFRA_CONFIG_DIR to put them somewhere else.

You can revoke this machine's access at any time from Settings, API keys on runinfra.ai.


Licence and support

Licensed for use with the RunInfra service. The full text ships in the package and is reproduced on the product pages. The packages this CLI downloads are covered by their own licences, stated on each package's page and included in each kit.

Questions, or a platform you need: https://runinfra.ai/contact

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

runinfra_cli-0.2.5-py3-none-win_amd64.whl (41.1 MB view details)

Uploaded Python 3Windows x86-64

runinfra_cli-0.2.5-py3-none-musllinux_1_2_x86_64.whl (37.1 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

runinfra_cli-0.2.5-py3-none-musllinux_1_2_aarch64.whl (35.8 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

runinfra_cli-0.2.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (39.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

runinfra_cli-0.2.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (37.8 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

runinfra_cli-0.2.5-py3-none-macosx_11_0_arm64.whl (22.2 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

runinfra_cli-0.2.5-py3-none-macosx_10_12_x86_64.whl (24.7 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file runinfra_cli-0.2.5-py3-none-win_amd64.whl.

File metadata

  • Download URL: runinfra_cli-0.2.5-py3-none-win_amd64.whl
  • Upload date:
  • Size: 41.1 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for runinfra_cli-0.2.5-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 2576e1bcbbda0c691ec063026a5a44bc5187ac2ac949dcaf72c250a38e3c41fd
MD5 ed99ec6c50cecd2bbe14c56cbaa616b2
BLAKE2b-256 7a01476429bf42f4b6b6ea0e710bda0b8b4c6ae0ba1b2278ee4af8fdffbf4ebe

See more details on using hashes here.

Provenance

The following attestation bundles were made for runinfra_cli-0.2.5-py3-none-win_amd64.whl:

Publisher: cli-release.yml on RightNow-AI/RunInfra-Landing

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file runinfra_cli-0.2.5-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for runinfra_cli-0.2.5-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ac2bea8c352e6458c142675f0cbecd234baf7654a013c3c03f00f099688aeb9b
MD5 6839d704ac03cf1fb9fba82b97ddaebb
BLAKE2b-256 e685692d4d33a04e6366bb45583b8f865cfc03468949fb1a7ebf0663e803821a

See more details on using hashes here.

Provenance

The following attestation bundles were made for runinfra_cli-0.2.5-py3-none-musllinux_1_2_x86_64.whl:

Publisher: cli-release.yml on RightNow-AI/RunInfra-Landing

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file runinfra_cli-0.2.5-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for runinfra_cli-0.2.5-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 b4c4034ca4033218d810fb1fd1edfa5068b9ef1374788105e028869a0018dae5
MD5 a8eeb13e988802b0093e982e7335fb79
BLAKE2b-256 04fdcbdc15c8753921d4352bb1069658aa21b543a551ffa5fffc48e18b7c3fdc

See more details on using hashes here.

Provenance

The following attestation bundles were made for runinfra_cli-0.2.5-py3-none-musllinux_1_2_aarch64.whl:

Publisher: cli-release.yml on RightNow-AI/RunInfra-Landing

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file runinfra_cli-0.2.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for runinfra_cli-0.2.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0b2bf00eeb1de29315a783a64fd73dab208707da30e80951d2df9c4f435d3ffd
MD5 8278615eb4e547d0d0d5adf36dc746fa
BLAKE2b-256 4c6869461a9b5f36b3218a70be0683175377e0948412d23f4a98d1c66f9a3e3d

See more details on using hashes here.

Provenance

The following attestation bundles were made for runinfra_cli-0.2.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: cli-release.yml on RightNow-AI/RunInfra-Landing

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file runinfra_cli-0.2.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for runinfra_cli-0.2.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f8b8d002dfbb62cdc8fb766918319901e30d554eeb06d3de6efe3d7152d19396
MD5 a615dcc7a82f43abe9d02aabf891df13
BLAKE2b-256 27ad15e76b1ec6061c5801c555dd15d2a50c2b6aed39dd8371171673e1b8241f

See more details on using hashes here.

Provenance

The following attestation bundles were made for runinfra_cli-0.2.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: cli-release.yml on RightNow-AI/RunInfra-Landing

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file runinfra_cli-0.2.5-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for runinfra_cli-0.2.5-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6e203889b4283fb538a8ba33caede48969fb3a89c103b26f4ee91c1bb3cff21
MD5 1d97dfaf0cdb61491bae5f35db866215
BLAKE2b-256 28aed522856b8c62c55fdce94e157721d1d7652388b3fb545569ced3f063c195

See more details on using hashes here.

Provenance

The following attestation bundles were made for runinfra_cli-0.2.5-py3-none-macosx_11_0_arm64.whl:

Publisher: cli-release.yml on RightNow-AI/RunInfra-Landing

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file runinfra_cli-0.2.5-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for runinfra_cli-0.2.5-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e9c9ebf0bbfb780ae52460cb190a527058768130dc6a342c27df1d43fca82623
MD5 8d75fe42e54d42328b2d9efa630ac0bc
BLAKE2b-256 768bc767b715f89b23a6e9006186b4031db5acf3eca25da81056233a1413f6f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for runinfra_cli-0.2.5-py3-none-macosx_10_12_x86_64.whl:

Publisher: cli-release.yml on RightNow-AI/RunInfra-Landing

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page