Command-line interface
Inspect services, adjust resources, and protect a subprocess.
Install the Python package from source. It provides the oiy command.
Check the installation
oiy --version
oiy doctorThe current source preview is 0.3.0. Doctor uses read-only catalog and identity requests and omits credential/identity values from its report. Exit code 1 can mean a missing account key even when public catalog access works.
Read account state
oiy services
oiy balance
oiy billing
oiy metrics SERVICE_ID --minutes 15
oiy storage listSet OIY_API_KEY in your environment. Do not put secrets in command arguments.
Manage a service
oiy create service.json --request-id my-create-request-001
oiy pause SERVICE_ID --request-id my-pause-request-001
oiy wake SERVICE_ID --request-id my-wake-request-001
oiy restart SERVICE_ID --request-id my-restart-request-001
oiy resize SERVICE_ID --gpu 1 --gpu-model h200 --gpu-memory 141 --cpu 8 --memory 32 --request-id my-resize-request-001Use the service API schema for service.json. Replace SERVICE_ID with a real service UUID. Whenever --gpu is greater than zero, supply a supported --gpu-memory for the selected model.
Protect a process
oiy run --service SERVICE_ID -- python train.pyThe CLI runs python train.py where you invoke the CLI and protects the specified Oiy service with activity tracking. It is not a remote execution or code-upload command. Run it inside the managed instance when the subprocess should execute there.
Independent storage
oiy storage create --name models --size 100 --region economy --geography oceania --request-id models-create-001
oiy storage get VOLUME_ID
oiy storage rename VOLUME_ID --revision 1 --name checkpoints --request-id models-rename-001
oiy storage resize VOLUME_ID --revision 2 --size 200 --request-id models-expand-001Read the current revision before each update; the numbers above are illustrative. Pause an attached service before expansion. Storage cannot shrink.
Destructive commands
oiy delete SERVICE_ID --yes deletes a service and its service-owned workspace. Independent volumes are retained. oiy storage delete VOLUME_ID --yes removes an unattached independent volume. Verify the exact resource and maintain backups before running either command.
Use a unique request ID per intent and the same ID only for an identical retry.
Billing reports
oiy billing --from 2026-09-01 --to 2026-09-29 reads a full-window summary. Add --view ledger --limit 30 for a page, then repeat the same dates and filters with --cursor for continuation. --service selects compute, --volume selects storage, and --kind selects a posting type. Dates are inclusive UTC dates; these reads do not initiate payment.
Reuse settings
oiy rename SERVICE_ID "Training" --expected-name "Old name" --request-id rename-service-001
oiy draft SERVICE_ID
oiy template-from SERVICE_ID --revision 3 --name "Training starter" --request-id capture-template-001Read the actual current name or revision before mutating. The draft command prints an envelope; review spec and provide the listed requiredEnvironment before creating a new service. It does not clone a disk, copy secrets, or start compute. Service reuse guide.
On mutation failure, the CLI prints the retained request ID to stderr. Inspect the resource before retrying an uncertain operation; keep the same ID only for an identical request.