Petabyte CLI & Dashboard
CLI
Installed from PyPI, the petabyte command is a thin client (only needs httpx — it just talks
to the API over HTTPS, so it never pulls in the server):
pip install petabyte-client # the command it installs is `petabyte`
export PETABYTE_API_URL=https://petabyte.market # default; or pass --api / omit for localhost
petabyte register -u alice -p secret
petabyte login -u alice -p secret
petabyte deposit 100
petabyte specs # a readable, cheapest-first GPU table
petabyte launch ollama --hours 2 # one-click app: cheapest verified GPU, started
petabyte run hello.ipynb --gpu H100 --hours 1 # run a notebook/.py on a rented GPU
petabyte ask "explain attention" --model llama3.2 # pay-per-token Inference API (OpenAI-compatible)
petabyte wallet
petabyte ask uses an inference-scoped API key — pass --key, set PETABYTE_API_KEY, or
save it as api_key in your CLI config; the answer prints to stdout (the token/cost line to stderr).
Model management is included — petabyte pull <publisher/model>, petabyte model list/inspect/remove,
and petabyte run <model-id> work straight from the pip install (the model hub is pure standard
library, so it adds no dependency beyond httpx):
petabyte pull Qwen/Qwen3-8B # verified, resumable download into ~/.petabyte
petabyte model list # what's in your local cache
petabyte run Qwen/Qwen3-8B # start a model runtime
The package is built from the repo-root pyproject.toml (name = "petabyte-client"; the command
stays petabyte), which bundles this
CLI module plus the modelhub package. From a source checkout you can also run it directly with
python cli/petabyte.py <cmd>, or pip install . from the repo root.
run books the cheapest matching GPU, escrows funds, dispatches the notebook,
polls, and prints the result. .ipynb (code cells) and .py files are supported.
Output & config
- Human output: semantic colour (green=ok, yellow=pending, red=error, cyan=info) with
aligned tables. Colour turns off automatically when stdout is not a TTY or
NO_COLORis set — safe for scripts and CI. The buyerpetabyteclient uses its own small inline colour helpers (no dependency beyondhttpx); it does not importcli_ui.py. PETABYTE_API_URL(or--api) selects the API;PETABYTE_CONFIG=/path/cli.jsonisolates the saved token/API (handy in CI or tests).
Note: a stable
--json/PETABYTE_JSONmachine-readable mode and adoctorhealth-gate command exist in the seller agent CLI (lumaris_agent/agent_cli.py), not in this buyer client. The sharedcli_ui.pypresentation layer is likewise used by the agent and desktop app, not bypetabyte.py.
Dashboard
Served by the API at / (same-origin, no CORS setup). Start the API and open
http://localhost:8000/ — live nodes/jobs/GMV stats, wallet + deposit, the GPU
inventory with a live $/hr-vs-AWS savings column, and one-click job runs.
Both need an attested, online seller node (run the agent) to actually execute jobs.
Release files for petabyte-client 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| petabyte_client-0.1.0.tar.gz | 39.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| petabyte_client-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 84.6 kB
Release files / petabyte_client-0.1.0.tar.gz
| Download URL | petabyte_client-0.1.0.tar.gz |
|---|---|
| Size | 39.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec65d4cd5884a81b6f0563185a7d62841429d6b7a4a022ed81ed7247936df9ff
|
|
BLAKE2b-256 checksum How to use checksums |
0f042f4b97b1549958da5a1331c96da47b77d8e23d1f192cf3c3e39996990efa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / petabyte_client-0.1.0-py3-none-any.whl
| Download URL | petabyte_client-0.1.0-py3-none-any.whl |
|---|---|
| Size | 44.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
738e8c8a736d67dd77b066c492a494981e7c7def0cd0c4d9bbcbb4158712e5a4
|
|
BLAKE2b-256 checksum How to use checksums |
706b723d7b77fe5a0bcf043a1ba0685e6335c21a3b2753dbb2c025f9e998e9a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|