Skip to main content

gpyou

Command-line client for GPYou: prepaid GPUs for fine-tuning and serving open models.

uv tool install gpyou     # or: pipx install gpyou
gpyou signup              # or: gpyou login
gpyou                     # interactive menu

The sign-in session is kept in the OS keychain. On systems without one (headless Linux, WSL) it is kept in ~/.config/gpyou/sessions.json, readable only by you; gpyou logout ends it.

Any public Hugging Face model that fits one GPU can be fine-tuned and served (--model Qwen/Qwen3-8B). Qwen/Qwen2.5-1.5B-Instruct and Qwen/Qwen2.5-7B-Instruct are pinned and train on every assistant turn; any other model trains with its own chat template on the final assistant turn. Fine-tuning uses one fixed recipe: 1 epoch, learning rate 2e-4, LoRA r 16 / alpha 32 on all linear layers, 8 conversations per step per GPU, conversations up to 2,048 tokens (longer ones are rejected, not truncated), and loss on every assistant turn only. gpyou finetune validate prints it with your dataset.

Coding models

Run an open coding model on a GPU for aider, OpenCode, Cline, Continue or Codex CLI. Endpoints are addressed by name.

gpyou code models                                   # models, size, context and the cheapest $/hour
gpyou code start qwen3.8-27b --name my-agent        # waits until ready, then prints the base URL and key
gpyou code status [my-agent]                        # state, $/hour and today's spend
gpyou code setup my-agent --tool opencode           # aider, opencode, cline, continue or codex; key is a placeholder
gpyou code pause my-agent                           # release the GPU, stop billing, keep the address and key
gpyou code continue my-agent                        # start again at the same address
gpyou code key my-agent                             # new key; the old one stops working
gpyou code stop my-agent                            # delete it; asks you to type the name (--confirm NAME in scripts)

start also takes --gpu "RTX 5090", --region europe, --idle 15|60|never (pause after that many idle minutes) and --cap USD (a monthly spend cap). The key is shown once, by start and key only; the CLI never stores it. Ctrl-C while start waits pauses the endpoint so no GPU keeps billing. In a pipe or with --json, start prints the API's JSON (including the key) and does not wait.

Running your own image

gpyou launch IMAGE MAX_HOURLY_USD --command 'python run.py --n 3' --env MODEL=Qwen/Qwen3-8B --env BATCH=64 runs IMAGE with that command in place of its CMD (its ENTRYPOINT stays) and those environment variables (-e for short, repeatable). Names starting with GPYOU_ are reserved. Values are stored encrypted and never shown back, but anyone who can run code in the container can read them. A container that exits or crashes does not end the rental: the provider may restart it, and the GPU keeps billing. Add --release-on-exit to release the GPU and stop billing once the container stops, whether it finished or crashed. GPYou notices within about a minute, and a restarted container may run until then. Only Runpod and Verda can report the stop, so Vast is not offered with it. Otherwise set --max-duration SECONDS and run gpyou terminate OPERATION_ID when the work is done.

GPU availability without an account

gpyou gpus works signed out, and with an expired sign-in: it lists the cheapest GPU of each model in stock now (--country US narrows it), without naming the provider. Sign in to choose a provider or rent one.

Assistants can ask the same through MCP. Add https://app.gpyou.ai/mcp as a remote MCP server (Streamable HTTP, no sign-in); its one tool, find_gpus, takes gpu, region, country and max_price (USD per hour per machine), and lists single-GPU machines. Beside them, other_clouds lists GPUs in stock at other GPU clouds, by provider and at that provider's own list price; those are rented there, not through GPYou. For example, in Claude Code: claude mcp add --transport http gpyou https://app.gpyou.ai/mcp. The plain JSON is at https://app.gpyou.ai/v1/public/gpus with the same filters as query parameters.

Waiting for a GPU

Signed in, add your own provider key, then set a watch:

gpyou provider-keys add runpod          # asks for the key; shown later by its last four characters only
gpyou watches add H100 --max-price 2.50 --region europe                   # one email when it is in stock
gpyou watches add H100 --max-price 2.50 --action reserve                  # rent it at once on your own account
gpyou watches list

--max-price is what you pay the provider per hour. A reserving watch rents on your Runpod or Vast.ai account, which bills you until you delete the machine there; GPYou charges nothing for it, and asks before setting one up (--yes skips that); the price is checked again just before renting. Verda watches only email for now, and a provider reserves only where GPYou has enabled it. A watch fires once and waits at most --days (default 7).

Buckets inside a job

A container reaches only the buckets its launch grants: gpyou launch IMAGE MAX_PRICE --grant BUCKET_ID=write (or "grants": {"BUCKET_ID": "write"} in a --spec file), repeatable, at most eight. read lets the job list and download that bucket (GET /v1/runtime/buckets/BUCKET_ID/objects, GET /v1/runtime/objects/OBJECT_ID/download); write lets it only upload, and every key lands under jobs/RESOURCE_ID/ so a job cannot overwrite your other files. The job authenticates with GPYOU_API_URL and GPYOU_RUNTIME_TOKEN, which the platform sets in its environment; the token stops working when the job ends. Do not print or log it. This standard-library script uploads one file from inside the job (python upload.py BUCKET_ID out/model.safetensors model.safetensors); afterwards gpyou storage list BUCKET_ID shows it:

import hashlib, json, os, sys, urllib.request


def runtime(path, body):
    request = urllib.request.Request(os.environ["GPYOU_API_URL"] + "/v1/runtime/" + path, json.dumps(body).encode(),
                                     {"Authorization": "Bearer " + os.environ["GPYOU_RUNTIME_TOKEN"],
                                      "Content-Type": "application/json"})
    with urllib.request.urlopen(request) as response:
        return json.load(response)


def upload(bucket_id, path, key):
    digest, size = hashlib.sha256(), os.path.getsize(path)
    with open(path, "rb") as file:
        for chunk in iter(lambda: file.read(1 << 20), b""):
            digest.update(chunk)
    started = runtime(f"buckets/{bucket_id}/uploads", {"key": key, "size": size, "sha256": digest.hexdigest()})
    with open(path, "rb") as file:
        for part in range(1, -(-size // started["part_size"]) + 1):
            signed = runtime(f"uploads/{started['id']}/parts/{part}", {})
            data = file.read(started["part_size"])
            urllib.request.urlopen(urllib.request.Request(signed["url"], data, signed["headers"], method="PUT")).close()
    return runtime(f"uploads/{started['id']}/complete", {})


if __name__ == "__main__":
    print(upload(*sys.argv[1:4]))

The CLI talks to https://app.gpyou.ai. Set GPYOU_API_URL to use another GPYou service, such as a development server.

Support

app.gpyou.ai/support has the support email, what to include in a report and the in-job storage API.

Metadata

Release files for gpyou 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gpyou 0.5.0
File Size Uploaded Provenance Actions
gpyou-0.5.0.tar.gz 36.4 kB With provenance Details for gpyou-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gpyou 0.5.0
File Interpreter ABI Platform Actions
gpyou-0.5.0-py3-none-any.whl Python 3 none any Details for gpyou-0.5.0-py3-none-any.whl

Total release size: 80.2 kB

Release files / gpyou-0.5.0.tar.gz

Download URL gpyou-0.5.0.tar.gz
Size 36.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8591a25de3e3d3f70ecd98e1d86e867757678f0e3d2a8119b271f285e2ac4ea4
BLAKE2b-256 checksum
How to use checksums
ed6ad91724a189d537ed54ab0bd556f540adc4e30f95dac7e136bb86073612a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / gpyou-0.5.0-py3-none-any.whl

Download URL gpyou-0.5.0-py3-none-any.whl
Size 43.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd57fc53a87989b8ee8376a5a54a6e31637c0f6bfa9af856d8036d5cc06d166e
BLAKE2b-256 checksum
How to use checksums
a6ee118af4eb172426111fbfcc887b430657b61b1b06f5f766f720af1c872424
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for gpyou 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gpyou-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page