Metadata-Version: 2.5
Name: gpubox-cli
Version: 0.1.0
Summary: Agent-driven ML deploys into your own AWS account
Project-URL: Homepage, https://github.com/hung-phan/gpubox-cli
Project-URL: Repository, https://github.com/hung-phan/gpubox-cli
Project-URL: Issues, https://github.com/hung-phan/gpubox-cli/issues
License-Expression: Apache-2.0
License-File: LICENSE
Requires-Python: >=3.10
Requires-Dist: boto3>=1.43.126
Requires-Dist: httpx2<3,>=2
Requires-Dist: httpx>=0.28
Requires-Dist: huggingface-hub>=2.2
Requires-Dist: jinja2>=3.1
Requires-Dist: jsonschema>=4.26
Requires-Dist: keyring>=25.7
Requires-Dist: packaging>=24
Requires-Dist: pyyaml>=6
Requires-Dist: rich>=15
Requires-Dist: starlette>=1.7
Requires-Dist: tomli-w>=1.2
Requires-Dist: tomli>=2.5; python_version < '3.11'
Requires-Dist: typer>=0.27
Requires-Dist: urllib3>=2.3
Requires-Dist: uv==0.12.13
Requires-Dist: uvicorn>=0.54
Description-Content-Type: text/markdown

<div align="center">

<img src="docs/logo.jpg" alt="gpubox logo" width="420">

**Your coding agent deploys a model into your own AWS account, privately. You approve the plan before gpubox creates anything.**

![Platform](https://img.shields.io/badge/platform-Linux%20%7C%20macOS-1a1b26?style=for-the-badge)
![Python](https://img.shields.io/badge/Python-3.10%2B-1a1b26?style=for-the-badge&logo=python)
![Targets](https://img.shields.io/badge/AWS-SageMaker%20%7C%20Bedrock%20%7C%20EKS-1a1b26?style=for-the-badge&logo=amazonwebservices)
![License](https://img.shields.io/badge/license-Apache--2.0-1a1b26?style=for-the-badge)

[What it does](#what-it-does) · [First deploy](#first-deploy) · [EKS and HyperPod](#eks-and-hyperpod) · [The CLI](#using-the-cli-yourself) · [Consent](#what-consent-is) · [Skill](skills/gpubox-deploy/SKILL.md) · [Docs](docs/README.md)

https://github.com/user-attachments/assets/1f206c2a-f13b-442e-8c3e-594ddd070fe6

**30 seconds, and gpubox made it**: a video model on one p4d.24xlarge in a private EKS cluster, from this logo and
five prompts. The story and the scripts are in [`examples/ai-video-pipeline`](examples/ai-video-pipeline), and the
file is [`demo/gpubox-promo.mp4`](examples/ai-video-pipeline/demo/gpubox-promo.mp4) if the player above does not
load.

</div>

gpubox is a CLI. It deploys a Hugging Face model, your own model files, your own code or your own container image
into **your own AWS account**, privately. It also ships an Agent Skill, `gpubox-deploy`. Your coding agent (Claude
Code, Codex) reads that skill and drives the CLI.

SageMaker is the default target. For EKS and HyperPod, read [EKS and HyperPod](#eks-and-hyperpod).

The agent plans the deploy. You approve the plan. gpubox then creates the endpoint, serves it privately, and scales
it to zero copies when it is idle. `gpubox down` deletes everything gpubox made and prints what it cost. A training
run's outputs stay until you run `gpubox down --purge`.

**Security at a glance.**
- Your agent runs with your credentials. It can do anything you can do. Consent is a check the agent agrees to
  respect, not a lock. Read [What consent is](#what-consent-is).
- The default stack allows every SageMaker instance type (`ml.*`). Ask your admin to narrow `AllowedInstanceTypes`
  and `TrainInstanceTypes` with a pattern such as `ml.g6.*`.
- A model repo's own Python runs only when you pass `--trust-remote-code`. It then runs in your account.
- Nothing gets a public URL.
- Any principal that can invoke a vLLM endpoint also reaches vLLM's extra routes. Two examples are
  `/scale_elastic_ep` and `/v2/embed`. The plan lists every such route.

## What it does

**Deploy any of these.** Each one takes the same plan and the same approval.

| What | How you start it |
|---|---|
| A Hugging Face model: public, gated or private | `gpubox init org/model` |
| Your own model files, in the Hugging Face layout | `gpubox init ./my-model` |
| Your own model files in S3 | `gpubox init s3://bucket/prefix` |
| Your own Ray code | `gpubox init org/model --custom`, then write `app/deployment.py` |
| Your own container image | `gpubox init --image <ecr-uri>` |
| A Bedrock model, called instead of hosted | `gpubox init --on bedrock <model-id>` |
| A fine-tune of your own, from your own data | `gpubox train run` |

**The rest, in short.**

- **Private only.** Nothing gets a public URL. Calls are signed with SigV4 and go through your account's `gpubox`
  role. Call it with `gpubox invoke`, or open the local dashboard with `gpubox ui`.
- **Consent.** `deploy`, `stop`, `start` and `down` never prompt. Each files a plan and exits with
  `needs-approval`. You run `gpubox approve`. **Consent is a check your coding agent agrees to respect, not a lock.**
  Read [What consent is](#what-consent-is).
- **Scale to zero.** The copy goes 15 minutes after the last call, and billing stops 30 minutes after it. The plan's
  `idle tail` line gives each deployment's own figures.
- **Warm window.** With the default `wake = "start"`, a deployment also scales in when its warm window ends, whatever
  the traffic. The window is 4 hours unless you choose another length. Only an approved `gpubox start` brings it
  back.
- **Availability is yours to set.** The default is one copy on one instance, which costs least. `[scale] preset =
  "auto"` with `[scale] min = 2` keeps two instances and updates one copy at a time, so the deployment keeps serving
  through an update. At one copy, an update has downtime and no rollback, and the plan says so.
- **Several models on one endpoint.** `[models.<name>]` adds a model to the same endpoint.
- **Observability is on.** `[metrics] detailed` defaults to true, which turns on SageMaker's enhanced metrics and
  detailed observability. Read it with `gpubox status`, `gpubox events`, `gpubox logs` or `gpubox ui`.
  `[logs] retention_days` sets how long a log group keeps lines.
- **The task picks the API and the engine.** vLLM serves LLMs on a GPU. TEI serves encoder embeddings, rerankers and
  classifiers, on CPU by default. gpubox's Ray runtime serves every other task, and your own code with
  `task = "custom"`. Each task has one contract of standard routes, such as OpenAI's `/v1/...`, Cohere's
  `/v1/rerank`, TEI's `/embed`, or `/predict` for your own code.
- **A model that brings its own code** needs your opt-in: `--trust-remote-code`. That code then runs in your
  account, inside the deployment's own container. vLLM and TEI never run it, so the opt-in serves the model on a Ray
  app.
- **Where it runs.** A private SageMaker endpoint, on the cheapest instance type that holds the model and that your
  stack and quotas allow. Name any type yourself with `instance_type`. A multi-GPU type is billed whole. The
  endpoint has no egress by default, and `network = "open"` turns egress on. gpubox is tested in us-east-1 and
  us-west-2. For EKS and HyperPod, read [EKS and HyperPod](#eks-and-hyperpod).
- **Measure it.** `gpubox recommend --benchmark` drives a deployment while it serves and prints what it measured.

Each option, what it bills, and an example: [`skills/gpubox-deploy/`](skills/gpubox-deploy/). One worked project for
each setup: [examples/](examples/), which includes
[a local model](examples/sagemaker-local-model/) and
[two models that bring their own code](examples/sagemaker-nemotron-retrieval/).

## What touches your account

| What | Made by | Bills at rest | Removed by |
|---|---|---|---|
| The `gpubox` stack: a private S3 bucket and three IAM roles | your admin, from `gpubox bootstrap print` | S3 storage for staged weights, bundles and run outputs. The roles are free. | see step 3 below |
| A SageMaker deployment: an endpoint, an inference component, a scaling target and its policies. AWS makes their CloudWatch alarms and deletes them with the policies. gpubox adds alarms of its own only with `wake = "traffic"`, with `idle_after`, or with several copies on one instance. | `gpubox deploy` | $0 at 0 copies, which is 30 minutes after the last call. The plan gives this deployment's own figure. Alarms and logs cost cents a month. | `gpubox down` |
| A training run: a SageMaker training job and its outputs, at `runs/<id>/` in the bucket | `gpubox train run` | S3 storage for the outputs | `gpubox down --purge` |
| An EKS deployment: a RayService in your namespace | `gpubox deploy` | the head's node while the deployment is up, and each worker's node while it runs | `gpubox down` |
| A cluster: EKS Auto Mode, a NAT gateway for each AZ, a Valkey cache and nodes | `gpubox cluster create` | about $0.45/h in us-east-1 before any worker. Nodes bill at their EC2 or HyperPod rate. | `gpubox cluster delete` |

gpubox itself charges nothing.

## First deploy

You need these:
- Python 3.10 or later.
- [uv](https://docs.astral.sh/uv/).
- Node.js 22.18 or later, for `npx`, and for `gpubox cluster create`.
- The AWS CLI v2. You and your admin run the commands that gpubox prints.
- AWS credentials for an account where an admin can apply one CloudFormation stack.
- A Hugging Face login for gated or private models (`hf auth login`, or `HF_TOKEN`).

1. Install gpubox: `uv tool install gpubox-cli`. The command is `gpubox`. The package is `gpubox-cli`, because
   another project holds `gpubox` on PyPI. From a clone, `uv tool install <path-to-clone>` instead.
2. Tell gpubox which AWS profile and region to use. This step is optional. Without it, gpubox uses the default
   credential chain. Do it before step 3, because `gpubox bootstrap print` reads it.

   ```
   gpubox config set aws.profile my-profile   # a profile in your ~/.aws/config; unset it to use the default chain
   gpubox config set aws.region us-east-1     # each region has its own stack (gpubox bootstrap print --region)
   gpubox config set aws.stack gpubox         # the default
   gpubox config show                         # every value, and whether it comes from the file or the default
   ```

   These write `~/.gpubox/config.toml`, which also holds `eks.context`. `gpubox config unset <key>` removes one
   value. The file never holds a key or a token. A rewrite drops any comment that you wrote in it.

   gpubox never prompts for a one-time code. If your profile asks for one, gpubox stops. Its fix is this, in
   gpubox's own words: run `gpubox config set aws.profile <profile>` with a profile that asks for no code (IAM
   Identity Center, a credential_process, or stored session credentials); or run `gpubox config unset aws.profile`,
   pass no --profile, and export the profile's session credentials before you start gpubox or your agent (aws
   configure export-credentials --profile <your profile> --format env prints them).
3. Run `gpubox bootstrap print` yourself, with the identity that you will deploy and approve with. That identity
   becomes the stack's `DeployPrincipals`. gpubox refuses the account root. Give the printed lines to your admin.

   The stack command uses a template file on your machine. Its path is `template` in the `--json` output. Send that
   file to your admin too. Your admin can also use `src/gpubox/cfn/bootstrap.yaml` from a clone of the same commit.

   Your admin runs two things. The first is the stack command for the region's `gpubox` stack. The stack holds a
   private bucket and the `gpubox`, `gpubox-runtime` and `gpubox-train` roles. Outside us-east-1, each role name ends
   in `-<region>`. The second is the endpoint-quota requests. A new AWS account starts with a quota of 0 endpoint
   instances of most types, and approval can take days. gpubox prints the requests for ml.c6i.xlarge and
   ml.g6.xlarge. `--instance-type <type>` prints them for the types that you will use, and you can repeat the flag.
   gpubox never applies the stack itself. The `[profile gpubox]` block that it prints is optional, for your own
   scripts.

   The stack carries its own version, which `gpubox bootstrap status` prints. That version is separate from the
   package's version, which `gpubox --version` prints.

   Then run `gpubox doctor`. It checks your config, the region, your credentials, the stack, the role and the UI
   port.

   To remove gpubox later, do this. Run `gpubox down` for every deployment. Run `gpubox cluster delete` for every
   cluster. Empty the stack's bucket, which `gpubox bootstrap status` names. Then run
   `aws cloudformation delete-stack --stack-name gpubox --region <region>` in each region.
4. Install the skill into your project. gpubox installs nothing into your agent by itself.

   ```
   npx skills add https://github.com/hung-phan/gpubox-cli --skill gpubox-deploy -a claude-code   # or -a codex, or both
   ```

   With `-a claude-code -a codex`, the installer copies the skill into the project's
   `.agents/skills/gpubox-deploy/`, where Codex reads it. It links `.claude/skills/gpubox-deploy` to that copy for
   Claude Code. It records the source in `skills-lock.json`. The flag `-g` installs into your home (~/.claude/skills/,
   ~/.agents/skills/) for every project, instead of into this one. To update, run the same
   `npx skills add` line again: it reads the repository again and overwrites the installed copy. From a clone, pass the path to it instead of the
   URL.
5. Start the agent in the project and ask it to deploy a model. Before the first plan, the agent asks you one
   question: "Will others call this?". Answer no to keep gpubox's default. With the default, only an approved
   `gpubox start` wakes the deployment from zero, and a warm window scales it in. The window is 4 hours unless you
   choose another length. Answer yes to let anyone who can invoke the deployment wake it with a direct call. Each
   wake bills, and the plan that you approve states the most that this can cost.
6. The agent relays `needs-approval`. Run the `gpubox approve` line that it gives you, in your own terminal, or
   approve the plan in `gpubox ui`. Both show the plan that gpubox rendered, with the cost and the deletes first. In
   `gpubox approve`, type `yes` to apply the plan or `no` to refuse it. On the page, press Approve or Refuse.

## EKS and HyperPod

- **Your own EKS cluster.** `gpubox init <model-id> --on eks --context <ctx> -n <namespace>` deploys the app as a
  RayService in your namespace. It needs KubeRay 1.6 or later. It uses your own kube access and your own `kubectl`.
- **HyperPod.** If that EKS cluster is run by SageMaker HyperPod, gpubox finds it and places the worker on a HyperPod
  group. You set nothing.
- **Your own endpoint for the service.** `gpubox expose` prints a manifest that puts an EKS deployment behind a load
  balancer. It prints the manifest and never applies it, so you read it first and apply it yourself with `kubectl`.
  The default is an internal Network Load Balancer, which stays inside your VPC. `--alb` asks for an Application
  Load Balancer instead. `--internet-facing` makes the load balancer reachable from the internet, and you own that
  decision: nothing gpubox applies is ever internet-facing. The command refuses a SageMaker or Bedrock deployment
  and says why. A SageMaker endpoint is reached by IAM-signed `InvokeEndpoint`, and a Bedrock model by IAM-signed
  `Converse` or `InvokeModel`. Neither has a load balancer.
- **A new private cluster.** `gpubox cluster create` makes an EKS Auto Mode cluster in your account.
  `--hyperpod TYPE:COUNT` adds HyperPod groups. The command needs `kubectl`, `helm`, the AWS CLI, the Session Manager
  plugin, and Node.js 22.18 or later with npm. `--hyperpod` also needs git. Run the command with admin credentials,
  not with the `gpubox` role. The cluster bills until you run `gpubox cluster delete`, which is a different command
  from `gpubox down`. The bill covers the EKS control plane, a NAT gateway in each of 3 AZs, a small Valkey cache,
  KubeRay's node, and any HyperPod node-hours.

For the details, the options and the costs, read
[`skills/gpubox-deploy/references/eks.md`](skills/gpubox-deploy/references/eks.md).

## Using the CLI yourself

[examples/](examples/) has one folder for each common setup, which are SageMaker, Bedrock and EKS. It also has two
train-then-serve projects and every setting of `gpubox.toml`. `gpubox init` made each folder.

```bash
gpubox init org/model                   # writes ./org--model/: gpubox.toml, examples/ and, for a Ray task, app/
gpubox init ./my-model                  # your own files instead of a Hub repo (or s3://bucket/prefix)
cd org--model
# For vLLM and TEI you write nothing. A Ray task's app/ works as written.
# For task = "custom", write load and predict in app/deployment.py, and write examples/request.json, the deploy's
# check. requirements.txt goes beside gpubox.toml. app/code/requirements.txt is refused.
gpubox plan                             # task, engine, routes, instance type, $/h, quota checks and warnings
                                        # it writes nothing to AWS (a v3 Ray app also writes gpubox.lock)
gpubox deploy                           # files the plan and exits 3 (needs-approval)
gpubox approve                          # shows the plan again: type yes to apply it (about 10 minutes)
gpubox invoke --file examples/<name>    # the request for [invoke]'s route; add --route <path> for another route
gpubox status
gpubox down                             # files the teardown plan; approve it the same way
```

`[invoke]` in `gpubox.toml` says how the app is called. It holds the content type, the accept header,
`CustomAttributes` and the example request. `gpubox invoke`, `gpubox ui` and the deploy's smoke request all read it.

`gpubox ui` opens the local dashboard. It shows the plans that wait for your approval first, and each one links to
its card. Below them it shows your deployments. Each deployment shows its status, its cost so far, its events and its
logs. Each one also has a playground that calls it. The playground gives you boto3, AWS CLI and SageMaker SDK code to
copy into your own scripts. It also gives you OpenAI SDK and HTTP code, for each route that has them.

While `gpubox ui` runs, your scripts and SDKs can call a deployment on its standard paths. They go through the local
`/r/<deployment>/<route>` surface. The bearer token is the key in `~/.gpubox/proxy-key`, and `gpubox ui --rotate-key`
replaces that key. An OpenAI SDK takes `base_url="http://127.0.0.1:8000/r/<deployment>/v1"` and that key as its API
key. `GET /r/<deployment>/` lists the routes, their limits, and whether they stream. The surface answers this machine
only. At 0 copies with the default `wake = "start"`, a call wakes nothing. With `wake = "traffic"`, a call wakes one
billed instance and its copies. `gpubox invoke --stream` prints a vLLM route's tokens as they arrive.

Every command takes `--json`. Every error is `{class, code, cause, fix}`, and each class has one exit code.

## What consent is

**Consent is a check your coding agent agrees to respect, not a lock.** Your agent runs as you, with your AWS
credentials. It could approve its own plan. To do that it could drive `gpubox approve` through a terminal of its
own, or read the consent page's token and post to the page. It could call AWS directly with the rights that gpubox
has. It could also change gpubox's own install, your PATH or your shell files, so that the gpubox you run is not the
gpubox you installed.

Nothing gpubox does is a lock against an agent that wants to go around it. gpubox adds no check that would pretend
otherwise. The skill asks the agent not to do any of this, and a cooperating agent does not. Your agent's own sandbox
decides what a process running as you may read, write or reach. That sandbox is Claude Code's or Codex's, and whether
to use one is your choice. gpubox neither starts nor configures it.

These limits still hold for an apply:
- On gpubox's own path, the plan you approve comes from the approving process, which renders it itself. That
  process is `gpubox approve` or the `gpubox ui` server, and it renders from AWS, from the Hub and from `app/`. From the record that the agent wrote
  it takes only five things. Those are the agent's identity, the app directory, the region, the instance type, and
  whether the agent took a quality risk. The card shows each of them. A render that differs from the plan on file is
  `plan-changed`. The apply then runs only that plan, so an edit after the approval fails with `plan-changed`.
- On gpubox's own path, each apply's session is narrowed. It is narrowed to the deployment's own names, to the one
  instance type that you approved, and to the plan's account and region. The instance-type limit covers every
  request field that IAM's `sagemaker:InstanceTypes` key covers. Whether that key covers instance pools, shadow
  variants and training instance groups is unverified. `down` deletes only the deployment's names. An approved deploy
  or start with a warm window goes back to 0 copies when that window ends.
- A pending plan expires after 30 minutes, so a stale approval cannot apply. A page that showed an older plan can't approve a newer one.
- The `gpubox` operator role has two limits, whoever uses it, and that includes your agent's direct calls. It takes
  no instance type outside the stack's `AllowedInstanceTypes` and `TrainInstanceTypes`. The default for both is
  `ml.*`, which is every type, and the same unverified fields apply. It writes only on gpubox's own names and tag,
  with one accepted and documented broadening. `AutoScalingCallerCheck` grants three writes on every resource: it can
  put any CloudWatch alarm, delete any CloudWatch alarm, and set any inference component's copy count.
  `ScalingCreateTagged` leaves a residual, which is that a request can set a foreign SageMaker scaling target's
  minimum and maximum capacity.
- A session with no session policy can bill. `plan`, `status`, `logs`, `gpubox invoke`, the UI proxy and `doctor` all
  assume the role with no session policy. So does anything that uses the printed `[profile gpubox]`, and that
  includes your agent's direct calls. Such a session can create billable endpoints, and training jobs of up to
  `TrainMaxRuntimeSeconds`, of any type that the stack's caps allow. On a default stack that is any `ml.*` type, and
  it is not only endpoint configs. Your per-type quotas limit how many instances run at once, not the total cost.
  Those quotas are the endpoint, training and spot training quotas, in each allowed region. Each one is 0 for most
  types until you ask for more. An endpoint made this way bills until someone deletes it. To limit this in IAM, ask
  your admin to narrow `AllowedInstanceTypes` and `TrainInstanceTypes` with a pattern such as `ml.g6.*`. Narrowing
  does not touch an endpoint config made before it. `CreateEndpoint` has no instance-type key, so such a session can
  still start an endpoint from an older gpubox config.
- An update keeps your stack's caps. The printed command is `aws cloudformation deploy`, and it keeps the current
  value of every parameter that it does not name. A stack whose version is older than 0.14.0-draft therefore keeps
  its old two-type lists instead of `ml.*`. `gpubox bootstrap status` prints that version. To open the lists, add
  `AllowedInstanceTypes=ml.* TrainInstanceTypes=ml.*` to the `--parameter-overrides`. An update that does not reuse
  the stack's values resets a narrowed cap to `ml.*`. Two such updates are `update-stack` without `UsePreviousValue`,
  and a console update that takes the defaults.

Anything else that your own credentials allow, your agent can do directly.

**A project that you clone can ship its own skill or its own agent instructions.** Those are a `.claude/skills/` or
`.agents/skills/` folder, an `AGENTS.md`, or a `CLAUDE.md`. They can tell your agent to do otherwise, and gpubox
cannot tell. Read them before you start an agent in a project that you did not write. An agent permission rule that
denies `gpubox approve` or `gpubox ui` is a speed bump, not a lock. `sh -c`, `script -qc` and `curl` go around it.

## Running under your agent's sandbox

A sandbox cannot protect `~/.gpubox` or `~/.aws` while your agent's gpubox runs inside it. Whatever lets gpubox work
lets the agent do the same. If you run your agent in Claude Code's or Codex's sandbox, the sandbox must allow gpubox
three things. For Codex, the mode is `workspace-write`.
- Writes to the gpubox home, `~/.gpubox/`. It holds the pending plans, the events, the deployments index and its lock
  files.
- Reads of your AWS config. Those files are `~/.aws/config` and `~/.aws/credentials`, or the files that
  `AWS_CONFIG_FILE` and `AWS_SHARED_CREDENTIALS_FILE` name. gpubox also reads the SSO and `aws login` caches under
  `~/.aws/`, and your profile's `credential_process` if it has one.
- Network to AWS and to the Hugging Face Hub. The AWS services are STS, CloudFormation, SageMaker, Application Auto
  Scaling, CloudWatch and its logs, S3, Service Quotas and the tagging API. The Hub host is `huggingface.co`. The Hub
  client reads your Hugging Face login, which is `HF_TOKEN` or `~/.cache/huggingface/token`. Gated and private repos
  need that login. gpubox never stores, passes or prints it.

An agent's permission check can also stop `gpubox deploy`, `gpubox train run`, `gpubox stop`, `gpubox start`,
`gpubox idle` or `gpubox down`, as if they changed your account. They do not change it. Each one only files a plan
and exits 3, and nothing happens until you run `gpubox approve` yourself. It is safe to allow those commands for your
agent. Never allow it `gpubox approve`.

In Claude Code, add them to the `permissions.allow` list of your project's `.claude/settings.json`, or of your own
`~/.claude/settings.json`. Leave `gpubox approve` out of the list.

```json
{
  "permissions": {
    "allow": [
      "Bash(gpubox request:*)",
      "Bash(gpubox deploy:*)",
      "Bash(gpubox train run:*)",
      "Bash(gpubox stop:*)",
      "Bash(gpubox start:*)",
      "Bash(gpubox idle:*)",
      "Bash(gpubox down:*)",
      "Bash(gpubox cluster create:*)",
      "Bash(gpubox cluster delete:*)"
    ]
  }
}
```

`gpubox request <command>` runs the same command under a name that says it only files a plan, for example
`gpubox request deploy --dir <dir>`. That is the one rule an agent needs. A rule matches a command that runs on its
own. Your agent may still be asked about a command that is chained after `cd` or `source` with `&&`.

This list comes from what gpubox reads, writes and calls. A run of `gpubox doctor` and `gpubox plan` under each
sandbox, to confirm the list, is still to come.

## Development

You need [uv](https://docs.astral.sh/uv/). It fetches the Python in `.python-version`, which is 3.14, if you do not
have it.

```bash
make            # setup, lint, the offline tests, then build the wheel into dist/
source venv     # activate .venv (the same environment make and uv run use)
gpubox --help
make test       # the commit gate: unit + integration/local, offline
make lint       # ruff format check, ruff, pyrefly, the account-info guard
make build      # dist/*.whl and dist/*.tar.gz
make help       # every target, including the real-AWS ones
```

`make setup` creates `.venv` with every dependency group. It turns on the pre-commit hook, which runs `make lint`. It
copies `.env.example` to a git-ignored `.env`. With [mise](https://mise.jdx.dev), `.mise.toml` activates `.venv`
whenever you enter the repo. Run `mise trust` once to allow that. The real-AWS and Hub tests need a filled-in `.env`:
read [`docs/verification.md`](docs/verification.md).

## Docs

[`docs/README.md`](docs/README.md) indexes the design spec, the interfaces doc, the testing guide and the progress
log. The interfaces doc covers the CLI, `--json`, the events, the files and the names.
[`skills/gpubox-deploy/SKILL.md`](skills/gpubox-deploy/SKILL.md) is the skill that your agent follows.

## Star history

If `gpubox` saves you time, a star helps other people find it.

<a href="https://star-history.com/#hung-phan/gpubox&Date">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=hung-phan/gpubox&type=Date&theme=dark">
    <img alt="Star history for hung-phan/gpubox" src="https://api.star-history.com/svg?repos=hung-phan/gpubox&type=Date">
  </picture>
</a>

## License

Apache-2.0: read [LICENSE](LICENSE).
