The client works for people and independently chosen Agents. A cluster login already provides the native environment; a personal device uses normal Identity authorization and Portal APIs. A dedicated user VM follows the same device path. Pilot is not required.
Use the existing sqm, sqa, gpu, cpu and quota aliases. These local reads
need no browser login. sai tui offers focused selection and refresh; q returns
to the shell. For scripts and Agents, discover the corresponding batch commands:
sai describe jobs local
sai jobs localThe result is the current Unix user's native view. Use sai when you need the
SAI account summary; its business facts require your normal SAI login separately.
For a job returned by the local queue, read its allocation and available hardware connections using its exact job ID (including an array task suffix):
sai jobs local --job-id JOB_ID --with-interconnectReplace JOB_ID with the returned value. This exact read takes no queue filters.
JSON includes the job's Slurm allocation and separately recorded hardware;
sai describe jobs local explains their identifier spaces and unknown values.
On a remote device, use the independently authorized jobs allocation operation
with the configured site gateway and the selected job's scope. Neither path
reports measured utilization or promises communication performance.
Python 3.11 or newer is required; independent-client validation currently covers
Linux. Windows and macOS are not yet qualified. Download the reviewed wheel and
SHA-256 checksum from the matching GitHub release.
This source guide uses the 0.2.0a3 wheel filename. Use the
matching filename and guide when installing a published a1 or a2 wheel.
Use the trusted service URL supplied by your operator. This alpha is distributed
through GitHub; do not assume a package with a similar registry name is this
client. Verify the published artifact checksum before installation.
In a directory you control, with the provided wheel present:
python3 -m venv .sai-env
. .sai-env/bin/activate
python -m pip install ./sai_cli-0.2.0a3-py3-none-any.whl
sai --version
sai describe --format tableUse the filename supplied for your version. The batch client needs no third-party
runtime packages, Slurm, Lustre mounts, shared cluster installation or hosted VM.
To add the optional TUI in this environment, install the same reviewed wheel
with its extra: python -m pip install './sai_cli-0.2.0a3-py3-none-any.whl[tui]'.
If you used pipx instead, use
pipx install --force './sai_cli-0.2.0a3-py3-none-any.whl[tui]' to add it to the
existing installation. Plain pipx install leaves an existing base installation
unchanged. These commands preserve user configuration and credentials.
The interface needs an interactive terminal; local views require Slurm or Lustre
on that host. See terminal scope.
Use the service URL supplied by your operator. The command verifies its public connection settings and Identity discovery, then saves a new user configuration. It never overwrites existing profiles or credentials. A site is not required.
sai configure https://portal.example.org --format table
sai auth login
sai sites --format tableUse your actual trusted URL in place of the example. configure requires the
paired server's public CLI configuration endpoint. An older server reports a
configuration error; it does not guess an Identity address. Existing reviewed
profiles continue to work; see the configuration reference.
To connect a second independent service, use --config PATH and keep that option
on subsequent commands. A repeated configure verifies the same connection while
preserving custom settings. The shared cluster installation is already configured.
Open the URL printed by login in your browser and confirm the device code. Keep
the terminal command running until confirmation completes. The CLI stores a
protected renewable device credential; passwords and tokens are never copied
into commands. If a valid session already exists, reuse it. For an Agent that
cannot keep the login command running, use --no-wait and later --resume.
Use the printed resume command when a config path or profile was selected; it
keeps that connection. Login and permission-recovery hints retain the same
selectors, including paths containing spaces.
Choose your site from the returned names. For example, after selecting the
returned site-a ID:
sai resources catalog --site site-a --format table
sai account defaults --site site-a --format tableThe first command shows published specifications and prices. The second shows your computing account choices and existing site application receipts. Neither changes your default. A published site may still require access authorization; listing it does not grant access or prove spare capacity.
With the paired site-connection service, remote native reads also use your site choice to obtain its cluster and published gateway address:
sai jobs list --site site-a
sai jobs allocation JOB_ID --site site-a --with-interconnectUse the exact job ID from the returned queue. The current client resolves missing connection fields without editing the profile; deployment configuration owns the addresses. Native quota uses the same connection metadata and its independent storage permission. An unavailable or unpublished endpoint is an explicit error. This requires the paired client/server version; the initial tagged alpha predates site-connection discovery. Complete existing profiles continue to work.
The paired site directory and shared client are deployed; the delivery map records the validation scope. An older deployment may not provide discovery. Report that mismatch instead of treating an error as an empty directory or guessing IDs. Site choice remains explicit.
sai skill --format markdownThis prints the complete SKILL.md shipped with your installed CLI, without
network access or login. Save it as sai-cli/SKILL.md in your Agent host's
supported skill location, or supply its contents through that host's instruction
mechanism. Check before replacing an existing customized skill. The command
does not install into or reconfigure an Agent host. Refresh the copy when you
upgrade the CLI.
For automation, sai skill returns cli.skill/v1 JSON with client_version,
name and content. sai describe remains the operation/argument authority.
These offline commands run even without a configured service.
Try a useful read: "Show the published resources and my available computing accounts at the site I selected." The Agent should discover names and IDs, explain the answer, and preserve your selection. Then an explicitly requested management task can use the existing default-account workflow. It needs separate write authorization and reports central acceptance separately from site application. When permission is missing, authorize that operation:
sai auth login --for account set-defaultConfirm in your browser, then continue the requested task. The command includes
the permission needed to read its result, keeps current granted permissions and
does not perform the account change. It updates your protected device login;
the connection profile stays unchanged. For an Agent, add --no-wait and later
use sai auth login --resume without repeating the target. A command group such
as --for invitations requests the group's published permissions. Server-side
roles and site access still apply. The shared client and invitation optional scopes are deployed. A user must still
approve any newly requested permission; publication does not expand an existing
login or perform the task.
Version a3 also includes projects enable-compute and invitation v2.
Both preview before --apply. Use sai describe projects enable-compute or
sai describe invitations accept for their permissions and task readback.
They use the existing paired Portal contracts described in
the management reference.
A missing session calls for sai auth login; a permission denial requires the
relevant account/site authorization, not a broader native query. An unavailable
service is different from having no resources. Keep the bounded error code and
request ID for support, without exporting credentials or raw logs.
If the local connection is missing, repeat sai configure with your trusted
service URL. If a file already points elsewhere, retain it and use a separate
--config PATH; do not copy credentials or remove an existing login to repair it.
If configuration reports a connection environment conflict, unset only the
listed old SAI_* variables and retry. Matching overrides are accepted; a saved
profile must not silently lose to an old service address in the Shell.
Install a reviewed newer wheel with the same environment's python -m pip install
and --upgrade. Keep the earlier wheel for --force-reinstall rollback. Updating
the program does not alter your saved profile or grant new scopes. Afterward,
check sai --version, export the matching skill and repeat the same first read.
Record which artifact was exercised; one successful Linux installation does not
establish every platform or a live deployment's compatibility.