Skip to main content
The Skill is a SKILL.md plus a shell helper. Its commands wrap the published CLI, so you install the CLI too — the Skill does not reimplement credential storage or payment signing. An account-balance rental is charged at the listed hourly price multiplied by the time the instance is ACTIVE, rounded down to the cent. Data transfer is included. Nothing accrues after termination. A rental that never delivers costs $0.00.
python3 and python run PyTorch. On the instance, python3, python, pip and pip3 all use the image’s PyTorch environment (torch 2.14.1 with CUDA 13), in an interactive shell and over non-interactive SSH alike: ssh host python3 -c "import torch; print(torch.cuda.is_available())" prints True. The interpreter itself is /venv/main/bin/python, also returned as pythonPath in the rental status. Do not build a new environment to get PyTorch, and do not call /usr/bin/python3 or /opt/miniforge3 directly: they have no torch.

1. Install

Install the CLI first. Requires Node.js 24 or newer.
Then download and verify the Skill archive — Skill version 1.3.0, the same version and SHA-256 shown in the archive’s SKILL.md and here:
On Linux without shasum, use sha256sum -c -. If verification fails, stop. Then add the extracted ukiyo-compute directory to your client’s Skill location.

2. Create an account and an agent key

Read the current Terms version — never infer it:
Read the Terms and Privacy notice, then:
The scoped agent key lands in ~/.ukiyo/credentials.json at 0600 and is shown once. No email, browser or Telegram. Never give an agent an owner token.

3. Fund with USDC on Base (x402)

Minimum $5.00, maximum $500.00.
This funds through the wallet configured in UKIYO_MACHINE_CONFIG, which must be a private local file. Never put wallet keys into tool arguments or chat. If funding reports pending, do not pay again — run ukiyo topup status --json. A human-paid alternative is ukiyo topup link --amount 5 --json, which returns a hosted checkout URL.

4. Choose a GPU type

Prices come back as pricePerHourMinor in minor units: for example, 84 would mean $0.84/hour. Divide by 100 before showing a price to a user. minimumCreditMinor is the balance needed to start — ten minutes at that price. Each row is a GPU type; you pick the type and Ukiyo picks the machine.

5. Rent by GPU type

Counts are 1, 2, 4 and 8. --wait returns when the rental is ACTIVE, usually 1 to 4 minutes and at most 15: Ukiyo tries up to three hosts. If none delivers within 15 minutes, Ukiyo fails the rental itself and charges $0.00 — keep polling; there is no need to cancel. Reuse the same idempotency key on a retry so you cannot rent twice. Never tell the user an instance is running until the status says ACTIVE. If the first host fails, Ukiyo tries up to two more of the same type, including hosts listed at up to 160% of your price; you still pay the listed price you were quoted.
Poll status until ACTIVE. status here is the deployment’s: PROVISIONING_FAILED means no host delivered and you were charged $0.00. When ACTIVE it carries ssh with host, port and username; the private key comes from credentials, save-key or exec. Every status value and the JSON each command returns are on Statuses and response shapes.

6. Get SSH access

scripts/ukiyo.sh credentials <deploymentId> returns a private SSH key. Each call is audited server-side.
  • Never print it into the transcript unless the user explicitly asks to see it.
  • Never write it to a file the user has not asked for, and never commit it.
  • Prefer telling the user it is available and asking where they want it.
  • Prefer ukiyo exec, which uses the key without printing it.

7. Confirm the GPU works

PyTorch lives in the image’s virtual environment. python3 works too; the full path is shown here:
Expect 2.14.1+cu130 13.0 True.

8. Terminate

scripts/ukiyo.sh terminate <deploymentId> does the same in Skill 1.3.0: with no UKIYO_API_TOKEN it hands off to the CLI with --yes --wait --json. Skill 1.2.0 did not pass --yes, so the CLI refused with CONFIRMATION_REQUIRED and the GPU kept billing; if SKILL.md says 1.2.0, download the archive again. The response carries status (TERMINATING or TERMINATED) and the final chargedMinor with chargeFinal: true. Irreversible. It destroys everything on the instance and forfeits remaining runtime. Always confirm with the user first, quoting the deployment id and the GPU name. Never terminate as a cleanup step the user did not ask for. Billing stops at termination and the figure you then see is final. An instance also stops on its own when its runtime ends; nothing renews. If the user’s work matters, remind them to copy it off before then.

How billing works

  • Unit: usage accrues continuously while the instance is ACTIVE (millisecond precision) at the listed hourly price. The charge is floor(hourly cents × active seconds ÷ 3600) — whole cents, always rounded down. Example only: 109 seconds at 92¢/h is 2.79¢, charged as 2¢.
  • Hold versus charge: starting a rental needs ten minutes of credit at that GPU’s price (minimumCreditMinor). That amount is held, not charged; the hold extends as you run and is released at termination. You pay only the charge above.
  • Final: the charge is fixed at termination (chargeFinal: true). Nothing accrues afterwards, data transfer is included, and a rental that never reaches ACTIVE costs $0.00.
  • On the x402 no-account path the payment is a cap you authorize; the unused remainder returns to the paying wallet in USDC automatically, usually 7 to 12 minutes after termination (allow up to 30).

What is preinstalled

The image is vastai/pytorch:cuda-13.0.3-auto. python3 and python run PyTorch; the interpreter is /venv/main/bin/python. It ships CUDA 13, PyTorch 2.14.1+cu130, torchvision, numpy, pillow, requests and Jupyter. Run /venv/main/bin/pip list for the exact set. For model work, install what you need first:

Copying files off the machine

Use the same host and port as your SSH session, before you terminate:

GPU names

Use the spaced form in requests: RTX 4090, RTX 6000 Ada, A100 PCIe, A100 SXM4. The catalogue also echoes a compact gpuModel such as RTX4090 — that is a display value, not an input.

Where the price is

The rental create response carries it: data.deployment.unitPriceMinor is the hourly rate in cents for the machine you were given (84 = $0.84/h). GET /api/v1/rentals/<rentalId> returns the same field, and chargedMinor with chargeFinal: true once the rental ends. Other connectors: x402 with no account · HTTP API · MCP · CLI