Skip to main content

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
export PETABYTE_API_KEY=pk_...                        # your account key — sign in on the web (Google),
                                                     # create an 'account'-scoped key; no passwords
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_COLOR is set — safe for scripts and CI. The buyer petabyte client uses its own small inline colour helpers (no dependency beyond httpx); it does not import cli_ui.py.
  • PETABYTE_API_URL (or --api) selects the API; PETABYTE_CONFIG=/path/cli.json isolates the saved token/API (handy in CI or tests).

Note: a stable --json/PETABYTE_JSON machine-readable mode and a doctor health-gate command exist in the seller agent CLI (lumaris_agent/agent_cli.py), not in this buyer client. The shared cli_ui.py presentation layer is likewise used by the agent and desktop app, not by petabyte.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.2.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 petabyte-client 0.2.0
File Size Uploaded
petabyte_client-0.2.0.tar.gz 43.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for petabyte-client 0.2.0
File Interpreter ABI Platform
petabyte_client-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 91.9 kB

Release files / petabyte_client-0.2.0.tar.gz

Download URL petabyte_client-0.2.0.tar.gz
Size 43.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8074e2b2d528901b732a7852db705d8d54051b4f9165ac7cee1df09c037503a7
BLAKE2b-256 checksum
How to use checksums
99b9c8ac44c800a8a2b0f7041a36fd77c906c58f8fa00759a9cd34d0dafd2a68
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.2.0-py3-none-any.whl

Download URL petabyte_client-0.2.0-py3-none-any.whl
Size 48.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8654f1e228f377c780988bcd2af7eb08d16126153616b372a5625060a963ec98
BLAKE2b-256 checksum
How to use checksums
50888d61b0a588ab17ae98c3181190c88b516e1302ef8b5ab60c259594c84c80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

This release

0.2.0 This release

2 release files

0.1.0

2 release files

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