# Obsidian Peaks: rent a GPU (guide for AI agents and scripts)

This console rents NVIDIA GPU machines by the hour: our own RTX 5090s in the Stockholm region,
Sweden, and community hosts' machines in the EU. Prices are in SEK ex VAT and follow the open
market; a term is 7 days, billed per metered hour. Base URL: https://client.obsidianpeaks.com
Every guide: https://client.obsidianpeaks.com/agents.md (hosting a machine here: https://client.obsidianpeaks.com/host/agents.md).

Two things need a human: the e-mail verification link, and the card (an agent cannot pay).
Starting an instance charges the card, so in this phase a human presses Start in the console.

## 0. What you need
- An e-mail address and a password of 12 characters or more.
- An SSH public key (ed25519 or RSA): the instance's sshd takes it.
- A card: added in the console through our payment provider; nothing is charged for adding it.
  The minimum deposit of 50 SEK is charged when an instance starts.
- Terms: https://client.obsidianpeaks.com/terms (version 2026-11-30); accepted at sign-up.

## 1. Open the account (needs a human for the e-mail link)
POST https://client.obsidianpeaks.com/api/rent/v1/signup
  {"email": "...", "password": "...", "name": "Full name", "kind": "company"|"individual",
   "company": "Company AB (companies)", "country": "SE", "orgnr": "", "vat": "",
   "accept_terms": true}
-> 201 {"client": "...", "api_key": "oprk_...", "email_verification": "...", "next": "..."}
The api_key is shown ONCE: keep it. It answers 401 until the human has opened the link in the
verification mail and entered the account's password (the one sent here), and so does everything
below. If the human chooses a new password with "Forgot your password?" instead, this key is
revoked: make a new one under My details. SSH keys are not taken at sign-up: add them in
step 3 once the address is confirmed. 403 while sign-up is closed; 409 when the address has an
account already (then sign in to the console and make a key under My details, or POST https://client.obsidianpeaks.com/api/rent/v1/keys
with that browser session).

## 2. Authenticate
Every call below: header `Authorization: Bearer oprk_...` (a signed-in browser session works too).
Errors are `{"error": "plain text"}` with a 4xx status.

GET https://client.obsidianpeaks.com/api/rent/v1/me -> email_verified, terms_current, card (brand and last4, or null), ssh_keys, balance_sek, rent_open

## 3. SSH keys
GET  https://client.obsidianpeaks.com/api/rent/v1/ssh-keys -> {"keys": [...]}
POST https://client.obsidianpeaks.com/api/rent/v1/ssh-keys {"keys": ["ssh-ed25519 AAAA... name"]} -> {"added": n, "skipped": n, "total": n}
Idempotent: a key already there is skipped. Every instance started from now on gets every key.

## 4. Prices and boxes (no key needed)
GET https://client.obsidianpeaks.com/api/public/offers -> on_demand.boxes[]: name, status ("available" means free now), where,
gpus (the box's GPU count: a box is let whole), gpu_hour_sek (the box's hour in SEK ex VAT, per GPU
times gpus), gpu_hour_sek_incl_vat; fx.USD / fx.EUR are SEK per unit; vat is the rate. The GPU price
follows the open market and is locked for the 7-day term at start. Dollars: gpu_hour_sek / fx.USD.

## 5. The card (needs a human)
POST https://client.obsidianpeaks.com/api/rent/v1/card -> {"url": "...", "note": "..."}
Give the url to the human: it opens our payment provider's page in a browser; nothing is charged for
adding the card. 403 while renting is closed for this account.

## 6. Renting
Starting an instance is done in the console at https://client.obsidianpeaks.com/rent: it charges the card, so a human presses
Start. Tell the human which box and which image (pytorch, cuda, vllm, comfyui) you recommend and why.
POST https://client.obsidianpeaks.com/api/rent/v1/instances answers 405 with this sentence.

## 7. Instances
GET  https://client.obsidianpeaks.com/api/rent/v1/instances -> {"instances": [...]} with status, the ssh line, the price, the term's end
GET  https://client.obsidianpeaks.com/api/rent/v1/instances/<id>
POST https://client.obsidianpeaks.com/api/rent/v1/instances/<id>/stop | start | destroy | renew -> {"instance": ...} or 4xx {"error": ...}

## Rules
- One account, one agent at a time: do not run two agents against the same account.
- Never paste the API key or the private SSH key anywhere; the key is shown once.
- Instance names are unique per account: use the name as your idempotency key.
- Terms: https://client.obsidianpeaks.com/terms. Questions: info@obsidianpeaks.com.
