Skip to content

Documentation

Kracht documentation

How to rent a GPU by the second, how to lend one, and the CLI, API and money rules under both. Everything here is read from the code that runs; where a surface is still being built, it says so.

Billing
Per second, in USD
Provider split
85 / 15, exact
API
/v1, bearer key
Payments
Stripe test mode

01Overview

Overview

Kracht is a two-sided marketplace for GPU compute. Renters launch a GPU and pay per second while it runs; providers list idle hardware and keep 85% of what it earns. Both sides talk to one control plane over a REST API under /v1, from the console, the CLI or raw HTTP. What follows is what the platform does today, section by section, with the parts that are not finished named as such.

Proven
Launch, meter and settle on real hardware; a renter SSH login to a GPU rental with one card scoped in; snapshot and restore; the provider bootstrap on an untended Ubuntu box. exercised against the live stack
Not yet
Payments run in Stripe test mode, so no real money has moved. Studio runs are new and not yet proven end to end. Autopilot flags idle cards; its other actions are planned. test mode autopilot
Where it runs
The site on kracht.ai; the control plane at cp.kracht.ai, in AWS US East (Virginia); one Postgres database behind both. Rentals run on providers' hosts, in US East today.

02Rent a GPU

Rent a GPU

Six steps from nothing to a shell on a GPU, and one to stop paying. Rentals launch from the CLI today. The console at /app/launch builds the line for you.

  1. 01

    Sign up

    Create an account at /sign-up. Sign-up creates the account, the profile and the owner membership in one go, and asks your country and what you will run. Before the first rental, confirm your email from the link Kracht sends; an account made with Google or GitHub adds its country and use case on Account. Payments run in Stripe test mode: top up from Billing, and no real card is charged. Credit can also be granted on request. Ask for it once you are in.
  2. 02

    Create an API key

    At /app/settings/keys. Keys are stored only as a hash and are never echoed back, so copy it when it is shown.
  3. 03

    Sign the CLI in

    kracht login, then paste the key. kracht whoami confirms who you are and shows your balance.
  4. 04

    Launch

    kracht launch --gpu 1 --ssh rents a machine and opens a shell once it is ready. Two keys are involved, not one: your SSH key is the login and your WireGuard key is the route in, because providers sit behind NAT. Both keypairs are generated on your machine and only the public halves are sent. A launch missing either is refused.
  5. 05

    Connect

    kracht ssh <instance> for a shell, or kracht connect <instance> for the details. Inside you are root on Ubuntu 24.04 with a read-only root filesystem; /workspace is your writable scratch.
  6. 06

    Stop

    kracht stop <instance>, or DELETE /v1/instances/:id. The meter stops with it. Stop with a snapshot from the console to keep /workspace for a later rental; otherwise it is wiped. Or set an idle stop on the rental's page, or with kracht idle-stop.

The whole path, in the CLI

kracht login
kracht launch --gpu 1 --ssh
kracht ls
kracht stop <instance>

01Sign in

One key, saved once.

Paste an API key from the console. Everything after this call is scoped to the account that key belongs to; the account never comes from a parameter.

kracht login
kracht whoami

02Launch

A card, matched and metered.

The request names what it needs, never where to go. The rate is frozen at match and the meter starts when the container does.

kracht launch --gpu 1 --ssh

03Stop

Stopping is giving the card back.

The meter stops with the rental, the hold is released, and the split is appended to the ledger once. A settled rental does not come back.

kracht stop <instance>

Bring your own image

Pass --image REF with any image the host can pull. A custom image usually needs --command too: most base images run a default entrypoint that exits at once, and a container that exits ends the rental you just paid for. The default image exists because it ships an sshd, which stock framework images do not.

Instance
A rental: you rent the host, and only the cards you ask for are passed into your container. Billed by the second. It moves through requested, provisioning, running, stopping and settled. A rental whose host vanished is closed as interrupted rather than left open, and a job that ends on its own as completed.
Storage
Each rental gets scratch space at /workspace that is destroyed when the rental ends. There is no automatic checkpointing and no persistent storage: move results off before you stop, or take a snapshot. Snapshot and restore are opt-in, not automatic.
Networking
Your SSH key is the login; your WireGuard key is the route in. Without the tunnel nothing is published on any address. Traffic between services is TLS. Rentals reach the public internet. The provider's LAN, the host, its sshd and outbound mail are blocked.
What you pay
The frozen rate for the card, per second. For example, a card listed at $1.60 per hour bills $0.000444 per second, and the meter runs from the moment the instance is running to the moment you stop it.

In the base image

  • Ubuntu 24.04the base image
  • Python 3python3, pip
  • OpenSSHyour key, root shell
  • /workspacescratch, snapshottable
  • one card/dev/kfd, renderD128
  • WireGuardthe route in

In your image, if you bring it

  • PyTorchvia your image
  • TensorFlowvia your image
  • JAXvia your image
  • Jupytervia your image
  • vLLMvia your image
  • Dockerany image the host can pull

from a shell inside the rental

/
  • dev
    • kfdopenable, read-writemeasured: observed once, at a stated time, as of 2026-08-03, source #199
    • dri
      • card1the one card scoped inmeasured: observed once, at a stated time, as of 2026-08-03, source #199
      • renderD128its render nodemeasured: observed once, at a stated time, as of 2026-08-03, source #199
      • card0the host's iGPU, not visiblemeasured: observed once, at a stated time, as of 2026-07-27, source docs/AUDIT.md
  • workspace
    • markerwritten by the first rental, served back by the restoremeasured: observed once, at a stated time, as of 2026-08-03, source #186
  • root/.ssh
    • authorized_keysthe renter's key; the login, and nothing elsemeasured: observed once, at a stated time, as of 2026-08-03, source #199

03Provide hardware

Provide hardware

Lending a machine is one command on Ubuntu or Debian. The agent runs as an unprivileged system user, isolates each rental in its own container and session network, and reports capacity so the marketplace can match it. Register first: the installer needs a token that only registration issues.

  1. 01

    Register the machine

    Add a host at /app/machines, or POST /v1/me/hosts. You get an agent token, shown once, bound to that machine from the moment it exists.
  2. 02

    Run the installer

    One line. It runs on Ubuntu 22.04 or later, or Debian 12 or later, with systemd, as root, and is tested on Ubuntu 24.04. Other Linux distributions, Windows (WSL included) and macOS are not supported yet, and are coming soon. Idempotent: re-running it upgrades the agent. It installs Docker, creates the kracht-agent user, installs the systemd unit, sets up the isolated session network and builds the rentable instance image on your box.
  3. 03

    Set your price

    PUT /v1/me/hosts/:id/listing, or the controls on the host in the console. Changing the price never touches a rental already running: the rate was frozen onto it at match time.
  4. 04

    It appears in your fleet

    The agent registers itself and heartbeats every 15 seconds. sudo systemctl status kracht-node-agent on the box says whether it is up; GET /v1/me/hosts says whether Kracht can see it.
Install the agentUbuntu or Debian · sudo
curl -fsSL https://cp.kracht.ai/install.sh | sudo bash -s -- \
  --control-plane-url https://cp.kracht.ai \
  --enrollment-token <YOUR_TOKEN> \
  --harden-ssh --userns-remap --firewall

<YOUR_TOKEN> is issued when you register a machine, and shown once. It is bound to that machine from the moment it exists, so a leaked token cannot enroll someone else's box as a host.

What this script does to your machine
  • Installs prerequisites with apt, including Docker.
  • Creates an unprivileged system user, kracht-agent. Nothing runs as root after setup.
  • Installs the node agent as a systemd service so it survives a reboot.
  • Sets up an isolated session network, reapplied at every boot.
  • Optionally hardens SSH to key-only with no root login (--harden-ssh).
  • Optionally configures an nftables firewall, default-deny inbound (--firewall).
  • Optionally enables Docker user-namespace remapping, so a renter's container cannot map to root on your host.

Install not working? On Machines, the card for a machine that has not reported shows one command that sends its agent log to support, with tokens removed.

Installer flags

Installer flags
FlagWhat it does
--control-plane-url URLWhere the agent reports to. https://cp.kracht.ai in production.
--agent-token TOKENThis host's long-lived credential, issued once when the host is registered and shown only that once. --enrollment-token is accepted as the same flag.
--source DIRInstall from a local checkout instead of downloading the agent source from the control plane.
--agent-user NAMEThe unprivileged system user the agent runs as. Default kracht-agent.
--harden-sshKey-only SSH, no root login.
--userns-remapDocker user-namespace remapping, so a renter's container cannot map to root on your host.
--firewallAn nftables host firewall, default-deny inbound.
Install dir
/opt/kracht-node-agent
State
/var/lib/kracht-node-agent
Config
/etc/kracht-node-agent
Service
kracht-node-agent
WireGuard port
51820/udp
Instance image
kracht/instance-base:latest, built on your box by the installer

What you earn

Share
85% of what the card makes, credited to your account's ledger as each usage tick settles. The remaining 15% is the take rate.
Earnings
GET /v1/me/earnings returns total, paid out and available, in USD, derived from the ledger. GET /v1/me/payouts is the payout history.
Payouts
Payouts are scheduled weekly, on Mondays, from $25 after a 7-day hold. Stripe is in test mode, so none has been paid yet. Only earned money is payable: the lower of your earnings less payouts already taken and your account's actual balance, so earnings you spent renting cannot also be withdrawn.
Today
Payments and payouts run in Stripe test mode: no real card is charged and no real money has moved. The split is applied and proven in the ledger. test mode
Your disk
A renter is capped at the lower of what they asked for and your max_disk_gb. A request larger than your cap is rejected outright, and an unspecified request never means unlimited.

04CLI

CLI

One binary. The published v0.3.1 has 34 of the 42 commands below; the rest are coming in the next release. kracht launch starts billing per second and kracht stop ends it; kracht ls is the honest answer to whether you are still being charged. Homebrew on macOS, or one shell line on macOS and Linux; Windows builds are downloadable from the install page.

macOS

brew trust kracht-ai/tap
brew tap Kracht-AI/tap
brew install --cask kracht
CLI commands
CommandWhat it does
kracht login [--key -]Save an API key from kracht.ai/app/settings/keys, pasted at the prompt. In the next release, --key - reads it from stdin
kracht whoamiWho you are signed in as, and your balance
kracht lsYour rentals, with what each has cost so far
kracht launch [flags]Rent a machine
kracht rename <instance> <name>Name a rental, or off to clear it. Its name works anywhere an id does
kracht tag <instance> <tags>Tag a rental with its project, or off to clear them. The console splits spend by tag
kracht stop <instance>Stop a rental and stop paying for it
kracht stop-at <instance> <when>Stop it later: 2h, 90m, 18:00, +1h, or off
kracht idle-stop <instance> <minutes>Stop it once every card idles that long, or off
kracht cap <instance> <dollars>Stop it once it has cost that much, or off
kracht resume <instance> [launch flags]Rent again from the disk a stopped rental saved
kracht defaults [--idle M] [--cap USD] [--save-disk on|off]What new rentals stop at; off clears one
kracht alert <card> <dollars> [--region CODE]Tell me when that card is rentable at or under that price per hour
kracht alerts [rm <id>]Your price alerts, and where each stands
kracht ledger [--month 2026-09] [--earn] [--entries]A month as CSV for your accountant: charges, or with --earn earnings and payouts. One line per rental per day; --entries lists every one
kracht ssh-keys [add <name> [file] | rm <name>]Your saved SSH public keys, which Launch offers. add reads ~/.ssh/id_ed25519.pub by default
kracht watch [--interval 1m] [--no-notify]A system notification when a rental stops, sits idle, or your spend limit is near
kracht note <instance> <text>A note on a rental: what it was for, what came of it. off clears it
kracht budgets [set <tag> <dollars> | rm <tag>]Monthly budgets on project tags; at one, new launches with the tag are refused
kracht statement [--month 2026-09]A month of the account on one page (last month by default)
kracht scheduled [cancel <id>]Launches waiting to start (launch --at), and the last week's
kracht presets [launch <name> | rm <name>]Saved launches; launch takes launch's flags after the name
kracht webhooks [deliveries <id>]Where your events are sent, and the last 20 sends. Adding one needs a signed-in session, in Settings
kracht spend [--by rental|tag|person] [--daily]This month's spend by rental, tag or person (owners and admins), or the last 14 days
kracht timeline <instance>A rental's story: launched, changed, idle, stopped, and what it cost, in your local time
kracht statusWhether Kracht is up, and the last 30 days
kracht workflowsYour Studio workflows and how each last ran
kracht run <workflow> [--cap USD|off]Run a saved workflow now; it stops at the cap, $10 unless you say
kracht runs [<run> [approve | stop | again]]Runs, one step by step, and what to do next
kracht machinesThe machines you lend: status, price, earned
kracht pause <machine> <when>No new rentals on it until then: 1h, 18:00, tomorrow, monday (09:00), or off
kracht connect <instance>Connection details for a rental
kracht ssh <instance>Open a shell on a rental
kracht versionThe version you installed, and whether a newer one is out
kracht logs <instance> [--follow]What a rental printed lately, stdout and stderr; --follow keeps printing new linescoming in the next release
kracht stop-group <group>Stop every rental launched together with --machinescoming in the next release
kracht snapshots key [create | off]Encrypt every later snapshot to a key made on this machine. Kracht keeps only the public half and cannot open them; kracht resume restores them on the machine that holds the key file. Lose it and they cannot be restoredcoming in the next release
kracht storage [add NAME s3://BUCKET/FOLDER ... | ls | rm NAME]Your own bucket for rentals to write to with rclone: S3, Cloudflare R2, Backblaze B2, or anything that speaks S3, such as MinIO or a NAS. Kept on this computer, not by Kracht. With an AWS role, each launch gets a credential minted from your own AWS login, limited to the folder and write-only unless you add --readcoming in the next release
kracht jobs [run <shards> [flags] --command ... | tasks <job> | cancel <job>]One job split into shards, each a rental on its own machine. The command reads KRACHT_TASK_INDEX and KRACHT_TASK_COUNT to find its slice, and each shard is billed until it exits. Up to 100 shards unless --max-shards says more (1000 at most); more than 4 machines at once, or over $20/hr at --max-price, asks first, and --yes skips the question for scriptscoming in the next release
kracht forward <instance> <port> [--local N]A server in a rental, launched with --port, on 127.0.0.1 here through the tunnel: no root and no SSH in the image needed. The tunnel is encrypted to the provider's machine, and the provider can read what the server sends and receives therecoming in the next release
kracht open <instance> jupyter|vscode [--no-open]Jupyter in a rental on a local URL (port 8888 in the rental), or VS Code on it once ssh-config --write has run, through Remote-SSH, which needs only SSH. Jupyter is refused when the rental's image does not serve itcoming in the next release
kracht ssh-config [<instance>] [--write]A Host entry per running rental, for ssh and VS Code; --write keeps them in ~/.ssh/config, in its own marked block, agent never forwardedcoming in the next release

Launch flags

Launch flags
FlagWhat it does
--gpu NHow many cards (default 1)
--card CODEWhich card, by catalogue code: h100, a100, rtx4090. Without it the scheduler picks
--min-vram GBOnly cards with at least this much memory each
--image REFContainer image (default kracht/instance-base:latest)
--command ...What to run in it; everything after this flag is the command. A custom --image usually needs one: most base images run a default entrypoint that exits at once, and a container that exits ends the rental you just paid for.
--region CODERestrict to a region, e.g. us-east. Repeat it to allow several
--max-price USDRefuse anything dearer, per hour
--name NAMEWhat to call it, in place of its id
--tag TAGThe project it belongs to; repeat for more than one
--preset NAMEStart from a saved launch (Launch, Save this setup)
--like RENTALStart from that rental's image, cards and stops; any flag after it changes one thing
--at TIMEStart it then rather than now: 2026-10-08T09:00 (your time) or with a zone; nothing is held until it starts
--when-cheaper WAITStart once a card is at or under --max-price, waiting up to WAIT (24h, 3d, 7d at most)
--sshOpen a shell once it is ready
--machines NRent N separate machines together, 2 to 16. If one cannot start, none stay runningcoming in the next release
--upload DIRStart /workspace with this folder's files: packed, uploaded (5 GiB at most, packed) and kept as a saved disk, billed as storage until you delete it. Not with --like or resumecoming in the next release
--secret NAME=VALA file the rental reads at /run/kracht/secrets/NAME, held in memory only. Sealed on this computer to the machine it lands on, so Kracht never holds it readable and it is never written to the provider's disk, though a provider with root can read it while the rental runs. Repeat for more, 16 KiB together. Not with --at or --when-cheapercoming in the next release
--secret-file PATHThe same, from a file: NAME=PATH, or a bare PATH named after its file, such as ~/.config/rclone/rclone.conf. Text files onlycoming in the next release
--storage NAMEYour storage (kracht storage add) as the rclone remote NAME: in the rental, sealed to the machine like --secret. A role's credential lasts up to 12 hours; a key reaches the rental as it is, and its provider can read it while it runs. Repeat for morecoming in the next release
--networkGive the rental outbound internet even with no way to connect in, for a batch job that downloads its data or pushes resultscoming in the next release
--port NA port in the rental to reach from here, such as a model server on 8000. Repeat for more, up to 4; kracht forward serves it on this machinecoming in the next release
--env NAME=VALSet a variable in the rental; repeat for more. The machine's provider can read it and Kracht keeps it with the launch, so use short-lived, narrowly scoped credentials, never a root cloud keycoming in the next release

Stops and alerts

A rental can stop itself: when its cards sit idle, at a time, or at a spend cap. Add --save-disk and it keeps /workspace, so kracht resume picks up where it left off.

Stop flags
FlagWhat it does
--save-diskSnapshot /workspace before any automatic stop, so kracht resume can pick it up

kracht watch raises a system notification when a rental stops or sits idle, a price alert is met, your spend limit is near, or one of your machines is rented or goes offline.

Watch flags
FlagWhat it does
--interval 1mHow often it checks; at least 15s
--no-notifyPrint only, no system notification

Environment

CLI environment variables
VariableWhat it does
KRACHT_API_KEYUse this key instead of the saved one
KRACHT_APIPoint at a different control plane (default https://cp.kracht.ai)

A Python SDK is planned and not published. Until it is, the REST API below is the programmatic surface.

05API

API

Every endpoint sits under /v1 and takes a bearer key. kracht.ai/v1/* forwards to the control plane; the CLI talks to cp.kracht.ai directly. Money is returned as strings in USD so nothing is rounded in transit, and the account is always derived from your credential, never from a parameter.

curl -H "Authorization: Bearer $KRACHT_API_KEY" https://kracht.ai/v1/me
curl https://kracht.ai/v1/gpus        # 401 without a token: the healthy answer
Auth
Authorization: Bearer <api key>. Keys come from /app/settings/keys. The agent protocol uses the host's agent token in the same header.
Envelope
Success is { "data": ... }; failure is { "error": { "code", "message" } }, with the codes in the table below.
Limits
Per route, per caller IP, per minute, at the edge. The control plane has no limit of its own. Over the limit answers 429 with Retry-After.
Ownership
An id that is not yours answers 404, not 403, so the id space cannot be enumerated.
Health
GET https://cp.kracht.ai/healthz answers 200 when the control plane is up.

Renting

Renter endpoints
MethodPathWhat it doesPer min
GET/v1/meThe signed-in account and its balance, in USD.60
GET/v1/gpusBrowse available inventory: one row per active listing.120
GET/v1/listingsGPUs rentable right now. Filters: model, region, max_price_per_hour, limit.60
GET/v1/instancesYour own instances.60
POST/v1/instancesLaunch: request, match, instance. The paying account comes from your credential, never from the body.60
GET/v1/instances/:idStatus of one rental.120
DELETE/v1/instances/:idStop it. The meter stops with it.120
GET/v1/instances/:id/connectHow to reach a rental you are paying for. A structured tunnel document, never a filled-in config: Kracht has never held your private key.60
GET/v1/instances/:id/telemetryPer-card readings for one rental, oldest first.60
GET/v1/usageMetered spend, filterable by instance and time range.60
GET/v1/me/spend/by-rentalWhat each rental cost, summed over the whole ledger. since, until and limit pass through.60
GET/v1/me/ledgerThe append-only ledger: deposits, holds, usage charges, earnings, payouts. Newest first.60
GET/v1/me/snapshotsArchived workspaces, with state, size and when each was taken.60
DELETE/v1/me/snapshots/:idRemove an archived workspace and stop its storage charge.60
GET/v1/me/storageWhat you are storing and the monthly charge it implies.60
GET/v1/me/ssh-keysYour saved SSH public keys, with the fingerprint ssh-keygen prints.60
POST/v1/me/ssh-keysSave a public key: name and public_key. A private key is refused.60
DELETE/v1/me/ssh-keys/:idForget a saved key. Rentals already running keep it.60

Providing

Provider endpoints
MethodPathWhat it doesPer min
GET/v1/me/hostsThe machines this account lends to Kracht.20
POST/v1/me/hostsRegister a new one and receive its agent token, once.20
PUT/v1/me/hosts/:id/listingSet your own price and availability. Never touches a running rental.20
GET/v1/me/hosts/:id/telemetry/dailyWhat one machine's cards were doing, per UTC day. days passes through.60
GET/v1/me/earningstotal, paid_out and available, in USD, derived from the ledger; held, payout_minimum and next_payout_on for weekly payouts.60
GET/v1/me/payoutsSettlement history: amount, period, status, processor reference.60

Account and members

Account endpoints
MethodPathWhat it doesPer min
GET/v1/me/membersWho can act for this account, and in what role.30
POST/v1/me/membersAdd somebody who already has a Kracht account, by user id.30
PATCH/v1/me/members/:user_idChange what somebody may do.30
DELETE/v1/me/members/:user_idRemove them, or leave yourself. An account keeps at least one owner.30
GET/v1/me/invitationsWho has been asked to join and has not yet.20
POST/v1/me/invitationsInvite an email address onto this account.20
POST/v1/me/invitations/acceptJoin an account you were invited to. The token goes in the body, never the query string.10
DELETE/v1/me/invitations/:idWithdraw an invitation that has not been accepted.30

Webhooks

Kracht POSTs JSON to your URL when one of these happens, retrying for about a day if your server does not answer 2xx. Each body has an id; treat a repeat as the same event. Adding, testing or removing one needs a signed-in session: an API key holds read and launch only, and a webhook sends your account's activity somewhere else.

Webhook endpoints
MethodPathWhat it doesPer min
GET/v1/me/webhooksYour webhooks and how their last send went. Never the secret.60
POST/v1/me/webhooksAdd one: url (public https, port 443) and events. The signing secret is in this response only.10
DELETE/v1/me/webhooks/:idRemove it, and anything still queued for it.30
POST/v1/me/webhooks/:id/testQueue a signed ping.10
GET/v1/me/webhooks/:id/deliveriesThe last 20 sends: event, status, retries.60
Webhook events
EventWhen
rental.startedA rental reached running. data: id, name, image, price_per_hour, started_at.
rental.endedA rental ended, failed or was stopped. data adds state, reason (why it stopped) and exit_code.
credit.lowAt the running rate the balance lasts less than your warning. data: balance, per_hour, minutes_left. Once a day at most.
budget.nearA tag's spend this month reached 80% of its budget. data: tag, spent, budget, percent. Once per tag per month.
budget.spentA tag's budget is spent, so new launches with it are refused. Same data. Once per tag per month.
scheduled.startedA scheduled launch started. data: scheduled_id, start_at, instance_id, request.
scheduled.failedA scheduled launch did not start. data: scheduled_id, start_at, reason, request (what was asked for, never keys).
spend.unusualToday's spend is at least 3 times your usual day and $5 more. data: date, spent_today, usual_day, ratio. Once a day at most.
run.finishedA Studio run finished every step. data: run_id, workflow_id, workflow_name, spent, started_at, ended_at.
run.failedA Studio run stopped at a step. Same data, with reason: the step and why.
run.waitingA Studio run is waiting for a person to approve a step. Same data, with step. Once per step.
pingSent by Send a test.

Check every body before you trust it. The Kracht-Signature header is t (unix seconds) and v1, an HMAC-SHA256 of the timestamp, a dot and the raw body, keyed with the secret you were shown once:

t, v1 = (p.split("=", 1)[1] for p in request.headers["Kracht-Signature"].split(","))
expected = hmac.new(SECRET.encode(), f"{t}.".encode() + request.body, hashlib.sha256).hexdigest()
assert hmac.compare_digest(v1, expected) and abs(time.time() - int(t)) < 300

Agent protocol

Called by the node agent on a provider machine, never by a renter. Listed so the whole surface is in one place.

Agent protocol endpoints
MethodPathWhat it doesPer min
POST/v1/hostsHost-agent registration. Authenticated with the host's agent token, not a user API key.20
POST/v1/hosts/:id/heartbeatLiveness, telemetry, metering, and the agent's commands. One beat every 15s per host.120

Every endpoint

Every route under /v1/me on cp.kracht.ai, where the CLI talks, exported from the control plane's own code, so nothing here can be missing or out of date. Key is the least an API key must hold: read, launch, or admin, which only a signed-in session has. Some routes also check your role on the account. The same list is published as an OpenAPI 3 file for tools and agents: /openapi.json.

112 routes

Every /v1/me endpoint
MethodPathKeyWhat it does
GET/v1/mereadWho the token says you are, plus your balance.
GET/v1/me/account-profilereadThe account's country, use case, company and website, and what its first rental waits on.
PUT/v1/me/account-profilereadSave the account's country, use case, company and website.body: country, use_case, company, website
POST/v1/me/account/deletesessionDelete your Kracht account: stop what is running, close the accounts only you are on, and erase your personal data.body: confirm (required)
GET/v1/me/account/deletionsessionWhat deleting your Kracht account would close, leave and stop, and anything you must do first.
GET/v1/me/accountsreadEvery account you belong to, and which one you are acting as.
PUT/v1/me/active-accountreadAct as another account you belong to, from the next request on.body: account_id (required)
GET/v1/me/auditreadWho did what on this account, newest first.query: actor, before, limit, target
GET/v1/me/audit.csvreadA month of who did what, oldest first, for whoever keeps the records.query: month
GET/v1/me/billing-detailsreadThe company, address and VAT number the monthly statement is made out to.
PUT/v1/me/billing-detailsreadSave the company, address and VAT number for the statement.body: legal_name, billing_email, tax_id, address_line1, address_line2, city, state_region, postal_code, country
POST/v1/me/card/setupreadGet a link to the payment processor's form for saving a card.
GET/v1/me/earningsreadWhat this provider has earned, and what is still owed to them.
GET/v1/me/earnings/dailyreadProvider earnings by UTC day over the last days days, today included.query: days
GET/v1/me/exportsessionEverything Kracht holds about you, as one JSON file: profile, accounts, machines, rentals, ledger, audit and key names.
GET/v1/me/gpu-modelsreadThe card catalog, so a client names a card by its code rather than typing a model name.
GET/v1/me/hostsreadThe machines this account lends to Kracht.
POST/v1/me/hostsadminRegister a machine against the calling account and issue its agent token.body: name (required), region_code
GET/v1/me/hosts/{host_id}/demandread"Best hours to lend": when renters rent this machine's card, by weekday and hour.query: tz
POST/v1/me/hosts/{host_id}/install-commandadminA new agent token and install command for one of your machines that has never reported.
PUT/v1/me/hosts/{host_id}/listingadminCreate or amend the standing offer for one of your own machines.body: floor_price_per_hour, min_hours, active, availability
GET/v1/me/hosts/{host_id}/marketread"Is my price right?": the market for this machine's card, and where its price sits.
PUT/v1/me/hosts/{host_id}/pauseadminStop new rentals on one of your machines until until, or resume now with null.body: until (required)
GET/v1/me/hosts/{host_id}/rentalsreadWhen one of your machines was rented over the last days UTC days, today included.query: days
GET/v1/me/hosts/{host_id}/telemetry/dailyreadUtilisation per card per day for one of your own machines, oldest first.query: days
GET/v1/me/idle-stop-defaultreadThe account's default idle stop, in minutes; null is never.
PUT/v1/me/idle-stop-defaultlaunchSet the default idle stop, in minutes; null is never.body: minutes
POST/v1/me/instance-groupslaunchRent count machines at once, each an ordinary rental sharing one group_id.body: image (required), command, entrypoint, connect_methods, gpu_count, min_vram_gb, gpu_vendor, gpu_model_code, memory_mb, disk_gb, allow_networking, ssh_public_key, wg_user_public_key, restore_snapshot_id, restore_sealed_keys, sealed_secrets, regions, max_price_per_hour, renter_region, env, ports, use_hub, idle_stop_minutes, stop_at, spend_cap, auto_stop_snapshot, name, tags, workload_type, count (required), all_or_nothing
GET/v1/me/instance-groups/{group_id}readThe rentals launched together in this group, oldest first.
POST/v1/me/instance-groups/{group_id}/stoplaunchStop every member still running.
GET/v1/me/instancesreadEvery rental on the account, newest first, in any state.
POST/v1/me/instanceslaunchRent a host.body: image (required), command, entrypoint, connect_methods, gpu_count, min_vram_gb, gpu_vendor, gpu_model_code, memory_mb, disk_gb, allow_networking, ssh_public_key, wg_user_public_key, restore_snapshot_id, restore_sealed_keys, sealed_secrets, regions, max_price_per_hour, renter_region, env, ports, use_hub, idle_stop_minutes, stop_at, spend_cap, auto_stop_snapshot, name, tags, workload_type
GET/v1/me/instances/{instance_id}readOne rental, with the cards it ran on.
PATCH/v1/me/instances/{instance_id}launchChange when a live rental stops itself, or what it is called and tagged.body: idle_stop_minutes, stop_at, spend_cap, auto_stop_snapshot, name, tags, note
GET/v1/me/instances/{instance_id}/connectreadHow to reach a rental you are paying for.
GET/v1/me/instances/{instance_id}/launch-againreadWhat Launch and kracht launch --like start from to repeat one of your rentals.
GET/v1/me/instances/{instance_id}/logsreadThe last lines a rental printed, stdout and stderr together, newest at the end.
POST/v1/me/instances/{instance_id}/stoplaunchStop a rental.query: snapshot
GET/v1/me/instances/{instance_id}/telemetryreadThe readings for one rental, oldest first, so a client can draw them.query: limit
GET/v1/me/invitationsreadWho has been asked to join and has not yet.
POST/v1/me/invitationsreadInvite an email address onto this account.body: email (required), role
POST/v1/me/invitations/acceptreadJoin an account you were invited to.body: token (required)
DELETE/v1/me/invitations/{invitation_id}readWithdraw an invitation that has not been accepted.
GET/v1/me/jobsreadThe account's batch jobs, newest first.
POST/v1/me/jobslaunchSubmit a batch job, placed shard by shard like a rental.body: image (required), task_count (required), name, command, entrypoint, connect_methods, max_parallel, max_retries, gpu_count, min_vram_gb, gpu_vendor, gpu_model_code, max_price_per_hour, memory_mb, disk_gb, regions, allow_networking, snapshot_results, env
POST/v1/me/jobs/{job_id}/cancellaunchCancel a job; shards already running are stopped.
GET/v1/me/jobs/{job_id}/tasksreadThe shards of one job and where each ran.
GET/v1/me/launch-presetsreadSaved launches, by name.
POST/v1/me/launch-presetslaunchSave a launch under a name.body: name (required), request (required)
DELETE/v1/me/launch-presets/{preset_id}launchForget a saved launch.
GET/v1/me/ledgerreadThe account's ledger, newest first: deposits, holds, charges, earnings and payouts, as USD strings.query: limit, before
GET/v1/me/ledger.csvreadA month of the ledger as CSV, for an accountant.query: month, side, detail
GET/v1/me/listingsreadBrowse what is actually rentable right now.query: model, region, max_price_per_hour, limit
GET/v1/me/membersreadWho can act for this account.
POST/v1/me/membersreadAdd someone to this account.body: user_id (required), role
PATCH/v1/me/members/{user_id}readChange what someone may do.body: role (required)
DELETE/v1/me/members/{user_id}readRemove someone, or leave yourself.
PUT/v1/me/members/{user_id}/monthly-limitreadSet what one member may spend a month on rentals they start.body: spend_limit
GET/v1/me/payoutsreadThis provider's settlement history, newest first.query: limit
GET/v1/me/payouts/setupreadWhether this account can be paid, and what the payment processor still needs first.
POST/v1/me/payouts/setupreadStart or continue payout setup, and get a link to the payment processor's form.
POST/v1/me/placements/previewlaunchThe machines this launch would be placed on now, best first, each with its box key.body: image (required), command, entrypoint, connect_methods, gpu_count, min_vram_gb, gpu_vendor, gpu_model_code, memory_mb, disk_gb, allow_networking, ssh_public_key, wg_user_public_key, restore_snapshot_id, restore_sealed_keys, sealed_secrets, regions, max_price_per_hour, renter_region, env, ports, use_hub, idle_stop_minutes, stop_at, spend_cap, auto_stop_snapshot, name, tags, workload_type
GET/v1/me/price-alertsreadPrice alerts, and whether the market meets each one now.
POST/v1/me/price-alertsreadWatch for a card at or under a price.body: gpu_model_code (required), region_code, max_price_per_hour (required)
DELETE/v1/me/price-alerts/{alert_id}readRemove a price alert.
GET/v1/me/price-historyreadMarket-wide agreed prices on one card.query: gpu, days
GET/v1/me/price-history/by-hourreadMarket-wide agreed prices on one card by weekday and hour, in the caller's zone.query: gpu, tz
GET/v1/me/scheduled-launchesreadWaiting launches, soonest first, then the last week's started, failed and cancelled ones.
POST/v1/me/scheduled-launcheslaunchStart a launch at a set time, or as soon as the price allows before wait_until.body: start_at, wait_until, request (required)
DELETE/v1/me/scheduled-launches/{scheduled_id}launchWithdraw a launch that has not started.
GET/v1/me/setup-remindersreadWhether this account gets one email when a machine it added has not checked in.
PUT/v1/me/setup-remindersadminSwitch the setup reminder off or on.body: enabled (required)
GET/v1/me/snapshot-keyreadThe public key this account's new snapshots are sealed to, or null for none.
PUT/v1/me/snapshot-keyadminSeal this account's new snapshots to public_key; null stops sealing new ones.body: public_key
GET/v1/me/snapshotsreadSaved disks, newest first, with their state, size and the rental they came from.
POST/v1/me/snapshots/uploadslaunchStart putting files into /workspace: a pending upload and a presigned PUT for it.body: size_bytes (required)
DELETE/v1/me/snapshots/{snapshot_id}launchDelete one of this account's snapshots, and stop the storage charge with it.
POST/v1/me/snapshots/{snapshot_id}/completelaunchFinish an upload: storage is asked for the object's size, which must be the declared one.
GET/v1/me/spend-limitreadThis account's spending limit and its spend so far this UTC month.
GET/v1/me/spend/by-memberreadSpend per person for owners and admins, this month unless a window is given.query: since, until
GET/v1/me/spend/by-rentalreadSpend attributed per rental, computed over the whole ledger rather than a page of it.query: since, until, limit
GET/v1/me/spend/by-tagreadSpend per tag, summed in the database over the whole ledger, never a page of it.query: since, until
GET/v1/me/spend/dailyreadCharges by UTC day over the last days days, today included.query: days
GET/v1/me/ssh-keysreadThe account's saved public keys, oldest first.
POST/v1/me/ssh-keyslaunchSave a public key.body: name (required), public_key (required)
DELETE/v1/me/ssh-keys/{key_id}launchForget a saved key.
GET/v1/me/statementreadOne month of the account, for the printable statement.query: month
GET/v1/me/stop-defaultsreadThe account's defaults for a new rental's idle stop, spend cap and disk saving.
PUT/v1/me/stop-defaultslaunchSet the defaults a new rental starts with.body: idle_stop_minutes, spend_cap, auto_stop_snapshot, low_credit_warn_minutes
GET/v1/me/storagereadStorage held by this account, and the monthly charge it implies.
GET/v1/me/tag-budgetsreadEvery tag budget on the account, with what this month has spent against each.
PUT/v1/me/tag-budgets/{tag}readSet or change the monthly budget on a tag.body: monthly_limit (required)
DELETE/v1/me/tag-budgets/{tag}readRemove the monthly budget on a tag.
GET/v1/me/templatesreadThe template catalog.query: category
POST/v1/me/templates/{template_id}/launchlaunchOne-click rental from the catalog, charged to the caller.body: ssh_public_key, wg_user_public_key, restore_snapshot_id, gpu_count, min_vram_gb, gpu_vendor, gpu_model_code, memory_mb, disk_gb, max_price_per_hour, regions, workload_type, renter_region, env, use_hub, idle_stop_minutes, stop_at, spend_cap, auto_stop_snapshot, name, tags
GET/v1/me/topupsreadThe smallest and largest amount of credit that can be bought at once, and whether payments are live.
POST/v1/me/topupsreadBuy credit: get a link to the payment processor's checkout for an amount in cents.body: amount_cents (required)
GET/v1/me/usagereadMetered spend for this account: the detail behind a bill.query: instance_id, since, until, limit
GET/v1/me/webhooksreadThe account's webhooks and how their last send went.
POST/v1/me/webhooksadminAdd a webhook.body: url (required), events (required)
DELETE/v1/me/webhooks/{webhook_id}adminForget a webhook and everything still queued for it.
GET/v1/me/webhooks/{webhook_id}/deliveriesreadThe last 20 deliveries, newest first: what was sent, and what came back.
POST/v1/me/webhooks/{webhook_id}/testadminQueue a ping.
GET/v1/me/workflow-runsreadThe account's runs across every workflow, newest first.query: limitnew: Studio runs are not yet proven end to end
GET/v1/me/workflow-runs/{run_id}readOne run: every step, every rental it made, and what each cost.new: Studio runs are not yet proven end to end
POST/v1/me/workflow-runs/{run_id}/cancellaunchStop a run.new: Studio runs are not yet proven end to end
POST/v1/me/workflow-runs/{run_id}/resumelaunchRun again from where a failed or stopped run stopped, reusing the steps it finished.body: spend_capnew: Studio runs are not yet proven end to end
POST/v1/me/workflow-runs/{run_id}/steps/{step_key}/approvelaunchApprove a step that waits for a person.new: Studio runs are not yet proven end to end
GET/v1/me/workflowsreadThe account's workflows, most recently changed first, each with its newest run.
POST/v1/me/workflows/checkreadWould this graph run? Every step is checked the way Launch checks a launch.body: graph (required)
GET/v1/me/workflows/{workflow_id}/runsreadA workflow's last 20 runs, newest first.new: Studio runs are not yet proven end to end
POST/v1/me/workflows/{workflow_id}/runslaunchRun a saved workflow now.body: spend_capnew: Studio runs are not yet proven end to end

Errors

Error codes
StatusCodeMeaning
401unauthorizedNo bearer token, or a bad one. Without a token this is the healthy answer from every /v1 route.
402insufficient_fundsThe account cannot cover the launch.
403forbiddenYour role does not allow it.
404not_foundAlso the answer for an id that exists and is not yours: the id space is not enumerable.
409conflictPlacement found no host. The body carries the per-host rejection reasons.
429rate_limitedOver the per-minute limit for that route, per caller IP. Retry-After says when.
503unavailableThe control plane is unreachable from the web tier.
501not_implementedThe database is not configured. It should never appear in production now; if it does, that is a regression.

06Billing and money

Billing and money

Everything is metered per second, in dollars, from usage events, and drawn against a prepaid balance. The rules below are the ones the ledger enforces, not a pricing page: the prices themselves are on /pricing, and your own charges at /app/billing.

Unit
Per second, in dollars, from usage events, while the instance is running. No hourly minimum and no egress charge.
Precision
Amounts are numeric(16,6) in the database and travel as strings, so nothing is rounded in transit. Settlement is exact to the microdollar.
Split
The take rate is 15%. A provider keeps 85% of what a card earns, and the split is exact-integer so no cent leaks in the rounding.
Price
The matched rate is frozen onto the rental at match time. Billing uses it, never the live listing, so a provider re-pricing cannot change a running rental.
Balance
A sum over an append-only ledger, never a column. Deposits, holds, charges, earnings and payouts are all entries.
Retries
Usage is unique on (instance, seq) and every ledger entry carries an idempotency key, so a retried heartbeat cannot bill twice.
Launches
Send an Idempotency-Key header with POST /v1/instances. A retry with the same key answers with the rental the first request made, and takes no second hold.
Holds
Credit is held before compute runs and released in full when the rental ends. A session that fails at startup takes a hold, releases it, and produces no charge.
Ending
Terminal states are one-way. A late heartbeat describing an already-settled rental cannot reopen it and start billing again.
Snapshots
An archived workspace is charged per GB-month while it is ready. The rate comes from GET /v1/me/storage, and deleting the snapshot stops the charge.
Withdrawals
Only earned money is payable to a bank account, by a weekly run scheduled for Mondays, from $25, once it is 7 days old (30 days when the renter is new). None has been paid yet. Topped-up credit is spendable on compute and is not withdrawable. What is payable is the lower of earnings less payouts and the account's actual balance.
Payments
Payments run in Stripe test mode. Top up from Billing with Stripe's test checkout; no real card is charged and no real money has moved. Credit can also be granted on request.

07Security and isolation

Security and isolation

A rental is single-tenant for its whole life: no time-slicing, no partition shared with a stranger. If the provider uses the card during your rental, that is detected and you are refunded from that moment. The machine's owner has root on their own hardware, so they could still read a running rental; what is blocked is your way to their SSH and LAN. The container and its scratch are destroyed at teardown. The table is what was verified on the test provider box; the security page covers encryption, disclosure and what is not covered yet.

Verified isolation properties
PropertyResult
SSH login with your keyRoot shell on Ubuntu 24.04, including on a GPU rental on a userns-remapped box.
Wrong SSH keyPermission denied (publickey).
Without the WireGuard tunnelUnreachable. Private by construction.
Root filesystemRead-only inside the instance. Install into /workspace, or bring an image.
/workspace scratchWritable, and wiped on teardown.
The provider's LAN, from insideBlocked.
The host and its sshd, from insideBlocked.
The public internet, from insideReachable from a rental you can connect to, or one launched with allow_networking (kracht launch --network). A rental with neither has no network at all, so pip and model downloads fail. Outbound mail on ports 25, 465 and 587 is dropped.
The rental's diskNot encrypted.
Capabilitiescap-drop ALL. An SSH-enabled session adds back only SYS_CHROOT, SETUID, SETGID, CHOWN, DAC_OVERRIDE and AUDIT_WRITE, which sshd's privilege separation needs.
DiskCapped at the lower of your request and the provider's max_disk_gb. A hard quota where the storage driver supports it; the agent measures and stops the session everywhere else.
Private keysYou generate both keypairs locally and send only the public halves. Kracht never handles a private key.
Base image
Ubuntu 24.04 with OpenSSH, python3 and venv, git, curl, vim and htop. Key-only sshd, no passwords, no X11 forwarding. Your public key is injected at start; host keys persist for the life of the rental.
Encrypted
TLS on every call, the database encrypted at rest by its provider, and every credential stored only as a hash. Rental disks are not encrypted.
Auditable
Every dollar and every state change lands in an append-only ledger, exact to six decimals.

08Status and limits

Status and limits

What the platform observes about itself today, what it does not, and the limits a renter meets first. Uptime is probed once a minute from inside our network and charted on the status page. It is not measured from outside, and there is no SLA.

What is observed and what is not
SignalStateDetail
Host heartbeatsobservedEvery provider machine reports in on a schedule. When one goes silent the worker marks it offline and rescues the rentals stranded on it.
Metered settlementobservedUsage is metered per second and settled to the microdollar, with the split applied at exact integers.
Spend limitsobservedA rental stops when its credit runs out. A spending limit stops new rentals. To stop a running one, set an idle stop, a stop time or a per-rental cap.
A once-a-minute probeobservedThe worker checks the control plane's /healthz, its own passes and the host fleet about once a minute, and keeps per-day totals. The status page charts them.
Uptime from outside our networknot measuredUptime from outside our network. The probe runs from inside it, so it cannot see a network path to us failing. There is no SLA.
Latencynot measuredLatency, per region or otherwise.
Regional healthnot measuredRegional health.
Incident historynot measuredIncident history.

Known limits

Known limits
LimitDetail
Read-only root filesystemapt install does not work inside a rental. Install into /workspace (venvs, conda, source builds) or bring a custom image.
Write to /workspace/workspace is the only large writable place, sized to the disk you asked for. /tmp is 256 MB held in memory. Caches already go to /workspace/.cache: pip, Hugging Face and vLLM through XDG_CACHE_HOME, and Triton and torch.compile through TRITON_CACHE_DIR and TORCHINDUCTOR_CACHE_DIR. Each is only set when you have not set it yourself.
No compiler unless the image has oneNothing can be installed into the root filesystem, so an image without a C compiler cannot run torch.compile or Triton kernels. vLLM fails to start on pytorch/pytorch runtime images for this reason; vllm/vllm-openai and the -devel images work.
No persistence by default/workspace is wiped on teardown. Stop with a snapshot to keep it, and restore into a later rental.
SSH only, in the base imageJupyter and VS Code have ports allocated but no server in the base image yet.
First connect can lagA freshly launched session's relay can time out on its first requests and then work. Poll until it answers.
Renters behind NATBoth sides behind residential NAT cannot peer directly and go through the public relay.

09FAQ

FAQ

Commands on this page

One command per section: the thing each part of this page is about, ready to copy.

curl -fsSL https://kracht.ai/install | sh
kracht login
kracht whoami