Install the CLI
View MarkdownThe nodus CLI is one self-contained binary for macOS, Linux and Windows on x86-64 and ARM64. Pick one way to
install it.
pip install nodus-computeThe Python package (Python 3.10 or newer) includes the CLI, so nodus is on your PATH wherever the package
is installed. Use this if you also want the Python SDK.
brew install --cask nodus-compute/tap/noduscurl -fsSL https://nodus-compute.ai/install | shThe script installs to ~/.local/bin and checks the archive against the release’s checksums.txt first.
NODUS_VERSION=1.2.3 pins a release and NODUS_INSTALL_DIR picks another directory.
irm https://nodus-compute.ai/install.ps1 | iexCheck that it works:
$ nodus versionnodus v1.0.0Sign in
Section titled “Sign in”nodus loginYour browser opens to confirm the sign-in. If you belong to several orgs, pick the ones this machine should use:
the CLI stores one API key per org in the OS keychain and creates one context per org. Switch between them
with nodus config use-context <org>, or pass --org <org> to a single command.
| Where you are | Command |
|---|---|
| A laptop with a browser | nodus login |
| An SSH session or a machine without a browser | nodus login --device, then approve the code from any device |
| CI, with a key in a secret | echo "$NODUS_API_KEY" | nodus login --with-token, or just set NODUS_API_KEY |
nodus whoami shows who you are signed in as, your role, the current project and your available credit.
nodus logout revokes this machine’s key and removes the context.
Shell completion
Section titled “Shell completion”nodus completion zsh > "${fpath[1]}/_nodus" # zshnodus completion bash > /etc/bash_completion.d/nodus # bash (or ~/.local/share/bash-completion/completions/nodus)nodus completion fish > ~/.config/fish/completions/nodus.fishCompletion covers every command and flag.
Verify a download
Section titled “Verify a download”Every release publishes checksums.txt, a keyless cosign signature over it, and an SBOM per archive. To verify
an archive you downloaded yourself:
cosign verify-blob checksums.txt \ --signature checksums.txt.sig --certificate checksums.txt.pem \ --certificate-identity-regexp '^https://github.com/nodus-compute/nodus-platform/' \ --certificate-oidc-issuer https://token.actions.githubusercontent.comshasum -a 256 --ignore-missing -c checksums.txtWhere the CLI keeps things
Section titled “Where the CLI keeps things”| Path | What it holds |
|---|---|
~/.nodus/config |
Contexts: API server, org and project. It is a kubeconfig, so KUBECONFIG=~/.nodus/config kubectl get jobs.nodus.dev works too |
OS keychain (~/.nodus/credentials, mode 0600, where there is none) |
One API key per context |
~/.nodus/cache/ |
The cached list of resource kinds; nodus api-resources refreshes it |
If you used Nodus before 1.0, its ~/.nodus/config.toml is renamed to config.0x.bak the first time the new CLI
runs; sign in again with nodus login. A 0.x nodus.toml converts into a manifest you can review and apply:
nodus convert nodus.toml > job.yaml # fields that do not carry over are listed on stderrnodus apply -f job.yaml --dry-run=server -o estimateUpgrade and uninstall
Section titled “Upgrade and uninstall”Upgrade the same way you installed (pip install -U nodus-compute, brew upgrade --cask nodus, or run the
install script again). To uninstall, run nodus logout, remove the binary, and delete ~/.nodus.
Next steps
Section titled “Next steps”- Quickstart: run your own code on a GPU and download its results.
- Nodus for kubectl users: the verbs you already know.
- CLI reference: every command and flag.