Rent a GPU end to end from the command line. Install from npm, fund with USDC on Base, run work, terminate. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).
Everything below is copy-paste. The CLI talks to https://pay.u-kiyo.ai and prints JSON.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
Current version 0.3.2, MIT licensed. Requires Node.js 24 or newer, plus native OpenSSH for exec.
No email, browser or Telegram. The scoped agent key is written to ~/.ukiyo/credentials.json with 0600 permissions and is shown once. Never copy an owner token into an agent’s environment.To attach to an existing human-owned account instead, run ukiyo connect and have its owner approve the printed URL.
ukiyo me --jsonukiyo balance --json
3. Fund with USDC on Base (x402)
Minimum $5.00, maximum $500.00.
ukiyo topup rails --amount 5 --json
This authorizes the current Terms and funds through your configured wallet. Set UKIYO_MACHINE_CONFIG to a private local file holding the origin, method, network, asset, recipient, perPaymentMinor, totalMinor, an absolute wallet-key path and an absolute state directory. Never put wallet keys in command arguments or chat.To inspect the challenge without paying, add --plain: the CLI prints the advertised rails and the Base 402 challenge and stops, so another signer can complete it.
ukiyo topup status --json # pending means do not pay againukiyo balance --json
Prefer a card? ukiyo topup link --amount 5 --json returns a hosted checkout URL for a human to open. The rails path needs no human.
4. Choose a GPU type
ukiyo offers --json
Each row is a GPU type, not a machine: gpuModel, gpuCount, pricePerHourMinor (cents per hour; for example, 84 would mean $0.84/h), minimumCreditMinor (the balance needed to start — ten minutes at that price) and availableOffers. You pick the type; Ukiyo picks the machine.
--wait waits up to 900 seconds by default, the same as the server’s 15-minute limit (CLI 0.3.1 waited 600; upgrade if ukiyo --version shows it). --wait blocks until 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. ACTIVE means the GPU is verified working and SSH is authenticated, not merely that a machine was allocated. Supported counts are 1, 2, 4 and 8.Add --max-hourly-price to cap the rate, and --idempotency-key so a retry cannot rent twice:
Keep the printed rentalId and deploymentId. Check either later with:
ukiyo rental <rentalId> --jsonukiyo list --json
If a rental fails you were charged nothing — rent again. 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.
6. Get SSH access
Prefer exec: it uses the private key without printing it, and pins the host key locally on first use.
ukiyo exec <deploymentId> -- nvidia-smi
If you genuinely need the key material, ukiyo credentials <deploymentId> returns it. The response contains a private key, every reveal is audited server-side, and CLI output redacts the key unless you ask for raw JSON. Never redirect it into a file or transcript the user did not ask for.
7. Confirm the GPU works
PyTorch lives in the image’s virtual environment. python3 works too; the full path is shown here:
--yes is required: termination is irreversible and destroys everything on the instance. Copy your work off first. Billing stops at termination and the figure you then see is final.
Output shape, and when --wait times out
ukiyo balance --json --ledger-limit <0 to 100> sets how many ledger entries are returned (default 20).Poll status on ukiyo rental <rentalId> --json: PROVISIONING, then ACTIVE; FAILED and TERMINATED are final. When ACTIVE, ukiyo status and ukiyo rental print ssh with host, port and username; for the key use ukiyo credentials <deploymentId> --save-key <path> (or exec). quote.totalMinor is 0 because billing is per second; the rate is quote.hourlyPriceMinor. The JSON each command prints is on Statuses and response shapes.The REST API wraps results as {"data": {...}}; the CLI prints the contents of data at the top level. So REST’s data.deployment.unitPriceMinor is deployment.unitPriceMinor in CLI output, and data.rentalId is just rentalId.If --wait hits its timeout while the rental is still PROVISIONING, the CLI exits 3 — but the rental keeps going server-side. Do not rent again with a new key. Either keep waiting on the same rental, or cancel it:
ukiyo rental <rentalId> --wait --timeout 900 --json # resume waitingukiyo terminate <deploymentId> --yes --json # or give up; a rental that never went ACTIVE costs $0.00
Re-running ukiyo rent with the same--idempotency-key is also safe: it returns the original rental.
Exit codes
0 success · 1 error · 2 usage error, invalid budget, or a missing confirmation · 3--wait timed out. Every command accepts --json; errors print a JSON object with code, message and requestId.Set UKIYO_API_URL to target another environment, and UKIYO_API_TOKEN to override the stored credential.
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:
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 · Agent Skill
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Ukiyo","description":"Rent GPU compute with a prepaid budget.","colors":{"primary":"#2563eb","light":"#60a5fa","dark":"#1d4ed8"},"logo":{"light":"https://mintcdn.com/ukiyo/2UwC3N4jbR7moicK/logo/ukiyo-logo.png?fit=max\u0026auto=format\u0026n=2UwC3N4jbR7moicK\u0026q=85\u0026s=22a870b07419c67f12f5c647735c58f4","dark":"https://mintcdn.com/ukiyo/2UwC3N4jbR7moicK/logo/ukiyo-logo.png?fit=max\u0026auto=format\u0026n=2UwC3N4jbR7moicK\u0026q=85\u0026s=22a870b07419c67f12f5c647735c58f4","href":"https://u-kiyo.ai"},"favicon":"https://mintcdn.com/ukiyo/Ck2-bRAHJw3Q3R22/favicon.png?fit=max\u0026auto=format\u0026n=Ck2-bRAHJw3Q3R22\u0026q=85\u0026s=390db0720dcc7dba3953239ac0d1273a","navbar":{"links":[{"href":"mailto:support@u-kiyo.ai","label":"Support"}],"primary":{"type":"button","label":"Launch Telegram","href":"https://t.me/UkiyoComputeBot"}},"footer":{"socials":{"github":"https://github.com/ukiyocompute","x":"https://x.com/ukiyocompute","telegram":"https://t.me/+zM445tmt5EAyNTNh","linkedin":"https://www.linkedin.com/company/ukiyo-compute","website":"https://u-kiyo.ai"},"links":[{"header":"Community","items":[{"label":"GitHub","href":"https://github.com/ukiyocompute"},{"label":"Hugging Face","href":"https://huggingface.co/UkiyoCompute"},{"label":"ModelScope","href":"https://www.modelscope.cn/organization/UkiyoCompute"},{"label":"X","href":"https://x.com/ukiyocompute"},{"label":"Telegram","href":"https://t.me/+zM445tmt5EAyNTNh"},{"label":"Substack","href":"https://ukiyocompute.substack.com/"},{"label":"LinkedIn","href":"https://www.linkedin.com/company/ukiyo-compute"}]},{"header":"For AI agents","items":[{"label":"llms-full.txt","href":"https://u-kiyo.ai/llms-full.txt"},{"label":"llms.txt","href":"https://u-kiyo.ai/llms.txt"}]},{"header":"Ukiyo","items":[{"label":"Website","href":"https://u-kiyo.ai"},{"label":"Terms","href":"https://pay.u-kiyo.ai/terms"},{"label":"Privacy","href":"https://pay.u-kiyo.ai/privacy"}]}]},"seo":{"indexing":"all"},"contextual":{"options":["copy","view","assistant","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://u-kiyo.ai"},{"anchor":"GitHub","icon":"github","href":"https://github.com/ukiyocompute"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ukiyo","hasAudioNarration":false,"actualSubdomain":"ukiyo","customDomains":["docs.u-kiyo.ai"],"gitSource":{"type":"github","owner":"ukiyocompute","repo":"ukiyo-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6afcac86f065bd8dc07258f0","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Documentation","count":22},{"language":"default","tag":"Agents","count":10},{"language":"default","tag":"Renting","count":5},{"language":"default","tag":"Getting Started","count":4},{"language":"default","tag":"Guides","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"connect/cli","slug":"/connect/cli","pageMetadata":{"title":"CLI","description":"Rent a GPU end to end from the command line. Install from npm, fund with USDC on Base, run work, terminate. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).","href":"/connect/cli"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Rent a GPU end to end from the command line. Install from npm, fund with USDC on Base, run work, terminate. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Everything below is copy-paste. The CLI talks to `,_jsx(_components.code,{children:`https://pay.u-kiyo.ai`}),` and prints JSON.`]}),`\n`,_jsxs(_components.p,{children:[`An account-balance rental is charged at the `,_jsx(_components.strong,{children:`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 `,_jsx(_components.strong,{children:`$0.00`}),`.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`python3`}),` and `,_jsx(_components.code,{children:`python`}),` run PyTorch.`]}),` On the instance, `,_jsx(_components.code,{children:`python3`}),`, `,_jsx(_components.code,{children:`python`}),`, `,_jsx(_components.code,{children:`pip`}),` and `,_jsx(_components.code,{children:`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: `,_jsx(_components.code,{children:`ssh host python3 -c \"import torch; print(torch.cuda.is_available())\"`}),` prints `,_jsx(_components.code,{children:`True`}),`. The interpreter itself is `,_jsx(_components.code,{children:`/venv/main/bin/python`}),`, also returned as `,_jsx(_components.code,{children:`pythonPath`}),` in the rental status. Do not build a new environment to get PyTorch, and do not call `,_jsx(_components.code,{children:`/usr/bin/python3`}),` or `,_jsx(_components.code,{children:`/opt/miniforge3`}),` directly: they have no torch.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`1-install`,children:`1. Install`}),`\n`,_jsxs(_components.p,{children:[`Current version `,_jsx(_components.strong,{children:`0.3.2`}),`, MIT licensed. Requires `,_jsx(_components.strong,{children:`Node.js 24 or newer`}),`, plus native OpenSSH for `,_jsx(_components.code,{children:`exec`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -g`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @ukiyocompute/cli`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ukiyo`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --version`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # expect 0.3.2`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`No install at all — run it straight from the registry:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -y`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @ukiyocompute/cli`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` offers`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Not root, or `,_jsx(_components.code,{children:`npm install -g`}),` fails with `,_jsx(_components.code,{children:`EACCES`}),`?`]}),` Use a user-owned prefix instead of `,_jsx(_components.code,{children:`sudo`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` config`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` set`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` prefix`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ~/.npm-global`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PATH`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$HOME`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/.npm-global/bin:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PATH`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # add to ~/.bashrc or ~/.zshrc`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -g`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @ukiyocompute/cli`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ukiyo`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --version`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Listing inventory needs no account at all:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ukiyo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` offers`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`2-create-an-account-and-an-agent-key`,children:`2. Create an account and an agent key`}),`\n`,_jsx(_components.p,{children:`Read the current Terms version first — the CLI will not infer it:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TERMS_VERSION`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`$(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://pay.u-kiyo.ai/api/v1/terms`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` python3`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"import sys,json;print(json.load(sys.stdin)['data']['version'])\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`echo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TERMS_VERSION`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Read `,_jsx(_components.a,{href:`https://u-kiyo.ai/terms/`,children:`the Terms`}),` and `,_jsx(_components.a,{href:`https://u-kiyo.ai/privacy/`,children:`Privacy notice`}),`, then sign up with that exact version:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ukiyo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` signup`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --accept-terms`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TERMS_VERSION`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --max-per-rental`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 5`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --budget`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 500`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --max-concurrent`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`No email, browser or Telegram. The scoped agent key is written to `,_jsx(_components.code,{children:`~/.ukiyo/credentials.json`}),` with `,_jsx(_components.code,{children:`0600`}),` permissions and is `,_jsx(_components.strong,{children:`shown once`}),`. Never copy an owner token into an agent’s environment.`]}),`\n`,_jsxs(_components.p,{children:[`To attach to an existing human-owned account instead, run `,_jsx(_components.code,{children:`ukiyo connect`}),` and have its owner approve the printed URL.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ukiyo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` me`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ukiyo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` balance`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`3-fund-with-usdc-on-base-x402`,children:`3. Fund with USDC on Base (x402)`}),`\n`,_jsxs(_components.p,{children:[`Minimum `,`$5.00, maximum $`,`500.00.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ukiyo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` topup`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rails`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --amount`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 5`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`This authorizes the current Terms and funds through your configured wallet. Set `,_jsx(_components.code,{children:`UKIYO_MACHINE_CONFIG`}),` to a `,_jsx(_components.strong,{children:`private local`}),` file holding the origin, method, network, asset, recipient, `,_jsx(_components.code,{children:`perPaymentMinor`}),`, `,_jsx(_components.code,{children:`totalMinor`}),`, an absolute wallet-key path and an absolute state directory. Never put wallet keys in command arguments or chat.`]}),`\n`,_jsxs(_components.p,{children:[`To inspect the challenge without paying, add `,_jsx(_components.code,{children:`--plain`}),`: the CLI prints the advertised rails and the Base 402 challenge and stops, so another signer can complete it.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ukiyo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` topup`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` status`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # pending means do not pay again`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ukiyo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` balance`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Prefer a card? `,_jsx(_components.code,{children:`ukiyo topup link --amount 5 --json`}),` returns a hosted checkout URL for a human to open. The `,_jsx(_components.code,{children:`rails`}),` path needs no human.`]}),`\n`,_jsx(Heading,{level:`2`,id:`4-choose-a-gpu-type`,children:`4. Choose a GPU type`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ukiyo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` offers`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Each row is a GPU `,_jsx(_components.strong,{children:`type`}),`, not a machine: `,_jsx(_components.code,{children:`gpuModel`}),`, `,_jsx(_components.code,{children:`gpuCount`}),`, `,_jsx(_components.code,{children:`pricePerHourMinor`}),` (cents per hour; for example, 84 would mean $0.84/h), `,_jsx(_components.code,{children:`minimumCreditMinor`}),` (the balance needed to start — ten minutes at that price) and `,_jsx(_components.code,{children:`availableOffers`}),`. You pick the type; Ukiyo picks the machine.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ukiyo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` offers`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --gpu`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"RTX 4090\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --count`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`5-rent-by-gpu-type`,children:`5. Rent by GPU type`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ukiyo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rent`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --gpu`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"RTX 4090\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --count`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --wait`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --timeout`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 900`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`--wait`}),` waits up to 900 seconds by default, the same as the server’s 15-minute limit (CLI 0.3.1 waited 600; upgrade if `,_jsx(_components.code,{children:`ukiyo --version`}),` shows it). `,_jsx(_components.code,{children:`--wait`}),` blocks until `,_jsx(_components.code,{children:`ACTIVE`}),`, usually `,_jsx(_components.strong,{children:`1 to 4 minutes`}),` and at most `,_jsx(_components.strong,{children:`15`}),`: Ukiyo tries up to three hosts. If none delivers within 15 minutes, Ukiyo fails the rental itself and charges `,_jsx(_components.strong,{children:`$0.00`}),` — keep polling; there is no need to cancel. `,_jsx(_components.code,{children:`ACTIVE`}),` means the GPU is verified working and SSH is authenticated, not merely that a machine was allocated. Supported counts are 1, 2, 4 and 8.`]}),`\n`,_jsxs(_components.p,{children:[`Add `,_jsx(_components.code,{children:`--max-hourly-price`}),` to cap the rate, and `,_jsx(_components.code,{children:`--idempotency-key`}),` so a retry cannot rent twice:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ukiyo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rent`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --gpu`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"RTX 4090\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --idempotency-key`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rent-001`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --max-hourly-price`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1.50`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --wait`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Keep the printed `,_jsx(_components.code,{children:`rentalId`}),` and `,_jsx(_components.code,{children:`deploymentId`}),`. Check either later with:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ukiyo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rental`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`rentalI`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ukiyo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` list`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`If a rental fails you were charged nothing — rent again. 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; `,_jsx(_components.strong,{children:`you still pay the listed price you were quoted`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`6-get-ssh-access`,children:`6. Get SSH access`}),`\n`,_jsxs(_components.p,{children:[`Prefer `,_jsx(_components.code,{children:`exec`}),`: it uses the private key without printing it, and pins the host key locally on first use.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ukiyo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` exec`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`deploymentI`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` nvidia-smi`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`If you genuinely need the key material, `,_jsx(_components.code,{children:`ukiyo credentials \u003cdeploymentId>`}),` returns it. The response contains a `,_jsx(_components.strong,{children:`private key`}),`, every reveal is audited server-side, and CLI output redacts the key unless you ask for raw JSON. Never redirect it into a file or transcript the user did not ask for.`]}),`\n`,_jsx(Heading,{level:`2`,id:`7-confirm-the-gpu-works`,children:`7. Confirm the GPU works`}),`\n`,_jsxs(_components.p,{children:[`PyTorch lives in the image’s virtual environment. `,_jsx(_components.code,{children:`python3`}),` works too; the full path is shown here:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ukiyo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` exec`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`deploymentI`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /venv/main/bin/python`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"import torch; print(torch.__version__, torch.version.cuda, torch.cuda.is_available())\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Expect `,_jsx(_components.code,{children:`2.14.1+cu130 13.0 True`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`8-terminate`,children:`8. Terminate`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ukiyo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` terminate`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`deploymentI`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --yes`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --wait`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`--yes`}),` is required: termination is irreversible and destroys everything on the instance. Copy your work off first. Billing stops at termination and the figure you then see is final.`]}),`\n`,_jsxs(Heading,{level:`2`,id:`output-shape-and-when-wait-times-out`,children:[`Output shape, and when `,_jsx(_components.code,{children:`--wait`}),` times out`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`ukiyo balance --json --ledger-limit \u003c0 to 100>`}),` sets how many ledger entries are returned (default 20).`]}),`\n`,_jsxs(_components.p,{children:[`Poll `,_jsx(_components.code,{children:`status`}),` on `,_jsx(_components.code,{children:`ukiyo rental \u003crentalId> --json`}),`: `,_jsx(_components.code,{children:`PROVISIONING`}),`, then `,_jsx(_components.code,{children:`ACTIVE`}),`; `,_jsx(_components.code,{children:`FAILED`}),` and `,_jsx(_components.code,{children:`TERMINATED`}),` are final. When `,_jsx(_components.code,{children:`ACTIVE`}),`, `,_jsx(_components.code,{children:`ukiyo status`}),` and `,_jsx(_components.code,{children:`ukiyo rental`}),` print `,_jsx(_components.code,{children:`ssh`}),` with `,_jsx(_components.code,{children:`host`}),`, `,_jsx(_components.code,{children:`port`}),` and `,_jsx(_components.code,{children:`username`}),`; for the key use `,_jsx(_components.code,{children:`ukiyo credentials \u003cdeploymentId> --save-key \u003cpath>`}),` (or `,_jsx(_components.code,{children:`exec`}),`). `,_jsx(_components.code,{children:`quote.totalMinor`}),` is `,_jsx(_components.code,{children:`0`}),` because billing is per second; the rate is `,_jsx(_components.code,{children:`quote.hourlyPriceMinor`}),`. The JSON each command prints is on `,_jsx(_components.a,{href:`/essentials/statuses`,children:`Statuses and response shapes`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`The REST API wraps results as `,_jsx(_components.code,{children:`{\"data\": {...}}`}),`; `,_jsxs(_components.strong,{children:[`the CLI prints the contents of `,_jsx(_components.code,{children:`data`}),` at the top level`]}),`. So REST’s `,_jsx(_components.code,{children:`data.deployment.unitPriceMinor`}),` is `,_jsx(_components.code,{children:`deployment.unitPriceMinor`}),` in CLI output, and `,_jsx(_components.code,{children:`data.rentalId`}),` is just `,_jsx(_components.code,{children:`rentalId`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`If `,_jsx(_components.code,{children:`--wait`}),` hits its timeout while the rental is still `,_jsx(_components.code,{children:`PROVISIONING`}),`, the CLI exits `,_jsx(_components.strong,{children:`3`}),` — but the rental keeps going server-side. Do `,_jsx(_components.strong,{children:`not`}),` rent again with a new key. Either keep waiting on the same rental, or cancel it:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ukiyo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rental`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`rentalI`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --wait`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --timeout`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 900`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # resume waiting`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ukiyo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` terminate`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`deploymentI`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --yes`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # or give up; a rental that never went ACTIVE costs $0.00`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Re-running `,_jsx(_components.code,{children:`ukiyo rent`}),` with the `,_jsx(_components.strong,{children:`same`}),` `,_jsx(_components.code,{children:`--idempotency-key`}),` is also safe: it returns the original rental.`]}),`\n`,_jsx(Heading,{level:`2`,id:`exit-codes`,children:`Exit codes`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`0`}),` success · `,_jsx(_components.code,{children:`1`}),` error · `,_jsx(_components.code,{children:`2`}),` usage error, invalid budget, or a missing confirmation · `,_jsx(_components.code,{children:`3`}),` `,_jsx(_components.code,{children:`--wait`}),` timed out. Every command accepts `,_jsx(_components.code,{children:`--json`}),`; errors print a JSON object with `,_jsx(_components.code,{children:`code`}),`, `,_jsx(_components.code,{children:`message`}),` and `,_jsx(_components.code,{children:`requestId`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`UKIYO_API_URL`}),` to target another environment, and `,_jsx(_components.code,{children:`UKIYO_API_TOKEN`}),` to override the stored credential.`]}),`\n`,_jsx(Heading,{level:`2`,id:`how-billing-works`,children:`How billing works`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Unit:`}),` usage accrues continuously while the instance is `,_jsx(_components.code,{children:`ACTIVE`}),` (millisecond precision) at the listed hourly price. The charge is `,_jsx(_components.code,{children:`floor(hourly cents × active seconds ÷ 3600)`}),` — whole cents, `,_jsx(_components.strong,{children:`always rounded down`}),`. Example only: 109 seconds at 92¢/h is 2.79¢, charged as 2¢.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Hold versus charge:`}),` starting a rental needs ten minutes of credit at that GPU’s price (`,_jsx(_components.code,{children:`minimumCreditMinor`}),`). That amount is `,_jsx(_components.strong,{children:`held, not charged`}),`; the hold extends as you run and is released at termination. You pay only the charge above.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Final:`}),` the charge is fixed at termination (`,_jsx(_components.code,{children:`chargeFinal: true`}),`). Nothing accrues afterwards, data transfer is included, and a rental that never reaches `,_jsx(_components.code,{children:`ACTIVE`}),` costs $0.00.`]}),`\n`,_jsx(_components.li,{children:`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).`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-is-preinstalled`,children:`What is preinstalled`}),`\n`,_jsxs(_components.p,{children:[`The image is `,_jsx(_components.code,{children:`vastai/pytorch:cuda-13.0.3-auto`}),`. `,_jsx(_components.code,{children:`python3`}),` and `,_jsx(_components.code,{children:`python`}),` run PyTorch; the interpreter is `,_jsx(_components.code,{children:`/venv/main/bin/python`}),`. It ships CUDA 13, PyTorch 2.14.1+cu130, torchvision, numpy, pillow, requests and Jupyter. Run `,_jsx(_components.code,{children:`/venv/main/bin/pip list`}),` for the exact set.`]}),`\n`,_jsx(_components.p,{children:`For model work, install what you need first:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`/venv/main/bin/pip`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` transformers`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` accelerate`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` diffusers`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`copying-files-off-the-machine`,children:`Copying files off the machine`}),`\n`,_jsx(_components.p,{children:`Use the same host and port as your SSH session, before you terminate:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`scp`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ukiyo-key.pem`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -P`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`por`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`t`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` root@`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`hos`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`t`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:/root/out.pt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ./out.pt`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rsync`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -av`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -e`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ssh -i ukiyo-key.pem -p \u003cport>\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` root@`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`hos`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`t`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:/root/`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ./root-copy/`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`gpu-names`,children:`GPU names`}),`\n`,_jsxs(_components.p,{children:[`Use the spaced form in requests: `,_jsx(_components.code,{children:`RTX 4090`}),`, `,_jsx(_components.code,{children:`RTX 6000 Ada`}),`, `,_jsx(_components.code,{children:`A100 PCIe`}),`, `,_jsx(_components.code,{children:`A100 SXM4`}),`. The catalogue also echoes a compact `,_jsx(_components.code,{children:`gpuModel`}),` such as `,_jsx(_components.code,{children:`RTX4090`}),` — that is a display value, not an input.`]}),`\n`,_jsx(Heading,{level:`2`,id:`where-the-price-is`,children:`Where the price is`}),`\n`,_jsxs(_components.p,{children:[`The rental create response carries it: `,_jsx(_components.code,{children:`data.deployment.unitPriceMinor`}),` is the hourly rate in cents for the machine you were given (84 = $0.84/h). `,_jsx(_components.code,{children:`GET /api/v1/rentals/\u003crentalId>`}),` returns the same field, and `,_jsx(_components.code,{children:`chargedMinor`}),` with `,_jsx(_components.code,{children:`chargeFinal: true`}),` once the rental ends.`]}),`\n`,_jsxs(_components.p,{children:[`Other connectors: `,_jsx(_components.a,{href:`/connect/machine-payments`,children:`x402 with no account`}),` · `,_jsx(_components.a,{href:`/connect/api`,children:`HTTP API`}),` · `,_jsx(_components.a,{href:`/connect/mcp`,children:`MCP`}),` · `,_jsx(_components.a,{href:`/connect/skill`,children:`Agent Skill`})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"CLI","description":"Rent a GPU end to end from the command line. Install from npm, fund with USDC on Base, run work, terminate. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).","href":"/connect/cli"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"1. Install","slug":"1-install","depth":2,"children":[]},{"title":"2. Create an account and an agent key","slug":"2-create-an-account-and-an-agent-key","depth":2,"children":[]},{"title":"3. Fund with USDC on Base (x402)","slug":"3-fund-with-usdc-on-base-x402","depth":2,"children":[]},{"title":"4. Choose a GPU type","slug":"4-choose-a-gpu-type","depth":2,"children":[]},{"title":"5. Rent by GPU type","slug":"5-rent-by-gpu-type","depth":2,"children":[]},{"title":"6. Get SSH access","slug":"6-get-ssh-access","depth":2,"children":[]},{"title":"7. Confirm the GPU works","slug":"7-confirm-the-gpu-works","depth":2,"children":[]},{"title":"8. Terminate","slug":"8-terminate","depth":2,"children":[]},{"title":"Output shape, and when --wait times out","slug":"output-shape-and-when-wait-times-out","depth":2,"children":[]},{"title":"Exit codes","slug":"exit-codes","depth":2,"children":[]},{"title":"How billing works","slug":"how-billing-works","depth":2,"children":[]},{"title":"What is preinstalled","slug":"what-is-preinstalled","depth":2,"children":[]},{"title":"Copying files off the machine","slug":"copying-files-off-the-machine","depth":2,"children":[]},{"title":"GPU names","slug":"gpu-names","depth":2,"children":[]},{"title":"Where the price is","slug":"where-the-price-is","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"ukiyo","siteName":"Ukiyo","title":"CLI - Ukiyo","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-17T19:35:36.800Z","originalFileLocation":"connect/cli.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Rent a GPU end to end from the command line. Install from npm, fund with USDC on Base, run work, terminate. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).\">\u003cmeta data-mint-head name=\"application-name\" content=\"Ukiyo\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ukiyo/TL4cPZm3P_cmr9od/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/ukiyo/TL4cPZm3P_cmr9od/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ukiyo/TL4cPZm3P_cmr9od/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ukiyo/TL4cPZm3P_cmr9od/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ukiyo/TL4cPZm3P_cmr9od/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ukiyo/TL4cPZm3P_cmr9od/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ukiyo/TL4cPZm3P_cmr9od/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ukiyo/TL4cPZm3P_cmr9od/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ukiyo/TL4cPZm3P_cmr9od/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"CLI - Ukiyo\">\u003cmeta data-mint-head property=\"og:description\" content=\"Rent a GPU end to end from the command line. Install from npm, fund with USDC on Base, run work, terminate. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Ukiyo\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.u-kiyo.ai/connect/cli\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ukiyo.mintlify.site/_mintlify/api/og/v2?division=Agents\u0026amp;title=CLI\u0026amp;description=Rent+a+GPU+end+to+end+from+the+command+line.+Install+from+npm%2C+fund+with+USDC+on+Base%2C+run+work%2C+terminate.+On+the+instance%2C+python3+runs+PyTorch+%28interpreter%3A+\u0026amp;theme=4016f9d9fc63c71066ae1e3c\u0026amp;signature=4d6814899354a4ec43706c8e17869536afd7d2906cd8c88b6a46b24314d2bf7e\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"CLI - Ukiyo\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Rent a GPU end to end from the command line. Install from npm, fund with USDC on Base, run work, terminate. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ukiyo.mintlify.site/_mintlify/api/og/v2?division=Agents\u0026amp;title=CLI\u0026amp;description=Rent+a+GPU+end+to+end+from+the+command+line.+Install+from+npm%2C+fund+with+USDC+on+Base%2C+run+work%2C+terminate.+On+the+instance%2C+python3+runs+PyTorch+%28interpreter%3A+\u0026amp;theme=4016f9d9fc63c71066ae1e3c\u0026amp;signature=4d6814899354a4ec43706c8e17869536afd7d2906cd8c88b6a46b24314d2bf7e\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/ukiyo/TL4cPZm3P_cmr9od/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Ukiyo\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563eb\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.u-kiyo.ai/connect/cli\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/connect/cli.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.u-kiyo.ai/#organization\",\"name\":\"Ukiyo\",\"url\":\"https://docs.u-kiyo.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ukiyo/2UwC3N4jbR7moicK/logo/ukiyo-logo.png?fit=max\u0026auto=format\u0026n=2UwC3N4jbR7moicK\u0026q=85\u0026s=22a870b07419c67f12f5c647735c58f4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.u-kiyo.ai#website\",\"name\":\"Ukiyo\",\"url\":\"https://docs.u-kiyo.ai\",\"publisher\":{\"@id\":\"https://docs.u-kiyo.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.u-kiyo.ai/connect/cli#webpage\",\"url\":\"https://docs.u-kiyo.ai/connect/cli\",\"name\":\"CLI\",\"description\":\"Rent a GPU end to end from the command line. Install from npm, fund with USDC on Base, run work, terminate. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).\",\"dateModified\":\"2026-11-17T19:35:36.800Z\",\"isPartOf\":{\"@id\":\"https://docs.u-kiyo.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.u-kiyo.ai/connect/cli#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.u-kiyo.ai/connect/cli#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agents\",\"item\":\"https://docs.u-kiyo.ai/connect/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CLI\",\"item\":\"https://docs.u-kiyo.ai/connect/cli\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.u-kiyo.ai/connect/cli#article\",\"headline\":\"CLI\",\"name\":\"CLI\",\"description\":\"Rent a GPU end to end from the command line. Install from npm, fund with USDC on Base, run work, terminate. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).\",\"url\":\"https://docs.u-kiyo.ai/connect/cli\",\"mainEntityOfPage\":{\"@id\":\"https://docs.u-kiyo.ai/connect/cli#webpage\"},\"dateModified\":\"2026-11-17T19:35:36.800Z\",\"publisher\":{\"@id\":\"https://docs.u-kiyo.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.u-kiyo.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Ukiyo\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Ukiyo\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/connect/cli.md","siteName":"Ukiyo","nav":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://u-kiyo.ai"},{"anchor":"GitHub","icon":"github","href":"https://github.com/ukiyocompute"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Getting Started","pages":[{"title":"Overview","href":"/get-started/introduction"},{"title":"Quickstart","href":"/get-started/quickstart"},{"title":"Pricing","href":"/get-started/pricing"},{"title":"Choosing a GPU","href":"/guides/choosing-a-gpu"}]},{"group":"Renting","pages":[{"title":"Telegram","href":"/connect/telegram"},{"title":"Billing","href":"/guides/billing"},{"title":"Instance lifecycle","href":"/guides/lifecycle"},{"title":"Credentials","href":"/guides/credentials"},{"title":"SSH","href":"/guides/ssh"},{"title":"Jupyter","href":"/guides/jupyter"}]},{"group":"Agents","pages":[{"title":"Five ways in","href":"/connect/overview"},{"title":"x402 — pay with USDC, no account","href":"/connect/machine-payments"},{"title":"HTTP API","href":"/connect/api"},{"title":"MCP","description":"Run the Ukiyo MCP server locally and rent a GPU through tool calls. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).","href":"/connect/mcp"},{"title":"CLI","href":"/connect/cli"},{"title":"Agent Skill","description":"Install the Ukiyo compute Skill and rent a GPU through it. On the instance, python3 runs PyTorch (interpreter: /venv/main/bin/python).","href":"/connect/skill"},{"title":"Statuses and response shapes","href":"/essentials/statuses"},{"title":"Account funding","href":"/connect/account-funding"},{"title":"Telegram","href":"/connect/telegram"},{"title":"OpenAPI","href":"/connect/openapi"}]},{"group":"Guides","pages":[{"title":"FAQ","href":"/essentials/faq"},{"title":"Common errors","href":"/essentials/errors"},{"title":"Support","href":"/essentials/support"}]}]}]},"basePath":"","title":"CLI - Ukiyo","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}