gpu4agents 0.6.0__tar.gz → 0.7.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. gpu4agents-0.7.0/.claude-plugin/marketplace.json +18 -0
  2. gpu4agents-0.7.0/.claude-plugin/plugin.json +14 -0
  3. gpu4agents-0.7.0/.cursor-plugin/plugin.json +12 -0
  4. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/CHANGELOG.md +14 -0
  5. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/CONTRIBUTING.md +1 -1
  6. gpu4agents-0.7.0/INSTALL.md +56 -0
  7. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/PKG-INFO +72 -21
  8. gpu4agents-0.7.0/PROVIDERS.md +85 -0
  9. gpu4agents-0.7.0/README.md +180 -0
  10. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/docs/ACCEPTANCE.md +5 -5
  11. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/docs/ADDING_A_PROVIDER.md +52 -13
  12. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/docs/AGENTS.md +24 -12
  13. gpu4agents-0.7.0/docs/CHOOSING_A_MODEL.md +193 -0
  14. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/docs/CONFIG.md +47 -68
  15. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/docs/INTEGRATION.md +10 -10
  16. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/docs/LIFECYCLE.md +4 -4
  17. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/docs/USAGE.md +6 -6
  18. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/__init__.py +1 -1
  19. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/agent/install.py +1 -1
  20. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/agent/mcp.py +6 -4
  21. gpu4agents-0.7.0/gpu4agents/agent/skill/SKILL.md +133 -0
  22. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/cli/account.py +83 -52
  23. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/cli/main.py +1 -1
  24. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/cli/providers.py +76 -3
  25. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/cli/setup.py +28 -3
  26. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/core/config.py +4 -0
  27. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/providers/base.py +14 -0
  28. gpu4agents-0.7.0/gpu4agents/providers/registry.py +146 -0
  29. gpu4agents-0.7.0/gpu4agents/providers/scaffold.py +258 -0
  30. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/providers/vast/config.py +1 -0
  31. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/providers/vast/provider.py +18 -2
  32. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/install.sh +9 -8
  33. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/pyproject.toml +1 -1
  34. gpu4agents-0.7.0/skills/gpu4agents/SKILL.md +133 -0
  35. gpu4agents-0.7.0/skills/gpu4agents/agents/openai.yaml +4 -0
  36. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/tests/test_agent.py +15 -1
  37. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/tests/test_cli.py +171 -10
  38. gpu4agents-0.6.0/INSTALL.md +0 -53
  39. gpu4agents-0.6.0/README.md +0 -129
  40. gpu4agents-0.6.0/docs/CHOOSING_A_MODEL.md +0 -198
  41. gpu4agents-0.6.0/gpu4agents/agent/skill/SKILL.md +0 -117
  42. gpu4agents-0.6.0/gpu4agents/providers/registry.py +0 -63
  43. gpu4agents-0.6.0/skills/gpu4agents/SKILL.md +0 -117
  44. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/.env.example +0 -0
  45. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  46. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  47. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  48. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/.github/dependabot.yml +0 -0
  49. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/.github/pull_request_template.md +0 -0
  50. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/.github/workflows/ci.yml +0 -0
  51. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/.github/workflows/release.yml +0 -0
  52. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/.gitignore +0 -0
  53. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/CODE_OF_CONDUCT.md +0 -0
  54. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/LICENSE +0 -0
  55. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/SECURITY.md +0 -0
  56. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/docs/assets/banner.png +0 -0
  57. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/docs/assets/jambu-logo.jpg +0 -0
  58. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/examples/experiment.py +0 -0
  59. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/examples/jambu.yaml +0 -0
  60. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/examples/mastra-agent/README.md +0 -0
  61. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/examples/mastra-agent/package-lock.json +0 -0
  62. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/examples/mastra-agent/package.json +0 -0
  63. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/examples/mastra-agent/src/agent.ts +0 -0
  64. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/examples/mastra-agent/src/index.ts +0 -0
  65. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/examples/mastra-agent/src/tools/weather-tool.ts +0 -0
  66. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/examples/mastra-agent/tsconfig.json +0 -0
  67. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/examples/typescript-client/README.md +0 -0
  68. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/examples/typescript-client/package-lock.json +0 -0
  69. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/examples/typescript-client/package.json +0 -0
  70. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/examples/typescript-client/src/gpu.ts +0 -0
  71. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/examples/typescript-client/src/index.ts +0 -0
  72. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/examples/typescript-client/tsconfig.json +0 -0
  73. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/__main__.py +0 -0
  74. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/agent/__init__.py +0 -0
  75. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/agent/jobs.py +0 -0
  76. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/cli/__init__.py +0 -0
  77. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/cli/_common.py +0 -0
  78. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/cli/agent.py +0 -0
  79. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/cli/inspect.py +0 -0
  80. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/cli/lifecycle.py +0 -0
  81. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/cli/run.py +0 -0
  82. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/cli/status.py +0 -0
  83. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/cli/timer.py +0 -0
  84. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/cli/validate.py +0 -0
  85. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/core/__init__.py +0 -0
  86. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/core/beacon.py +0 -0
  87. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/core/credentials.py +0 -0
  88. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/core/durations.py +0 -0
  89. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/core/engine.py +0 -0
  90. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/core/errors.py +0 -0
  91. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/core/events.py +0 -0
  92. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/core/execution.py +0 -0
  93. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/core/health.py +0 -0
  94. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/core/hosts.py +0 -0
  95. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/core/model_inspect.py +0 -0
  96. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/core/models.py +0 -0
  97. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/core/paths.py +0 -0
  98. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/core/policy.py +0 -0
  99. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/core/state.py +0 -0
  100. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/core/sweep.py +0 -0
  101. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/core/tool_parsers.py +0 -0
  102. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/providers/__init__.py +0 -0
  103. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/providers/vast/__init__.py +0 -0
  104. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/providers/vast/client.py +0 -0
  105. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/providers/vast/mapper.py +0 -0
  106. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/runtime/__init__.py +0 -0
  107. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/runtime/base.py +0 -0
  108. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/runtime/vllm.py +0 -0
  109. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/watchdog/__init__.py +0 -0
  110. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/watchdog/agent_body.py +0 -0
  111. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/gpu4agents/watchdog/builder.py +0 -0
  112. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/jambu.example.yaml +0 -0
  113. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/jambu.models.yaml +0 -0
  114. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/jambu.yaml +0 -0
  115. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/jambu_gpu/__init__.py +0 -0
  116. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/jambu_gpu/__main__.py +0 -0
  117. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/tests/conftest.py +0 -0
  118. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/tests/fakes.py +0 -0
  119. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/tests/test_config.py +0 -0
  120. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/tests/test_engine.py +0 -0
  121. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/tests/test_engine_sessions.py +0 -0
  122. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/tests/test_integration.py +0 -0
  123. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/tests/test_model_inspect.py +0 -0
  124. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/tests/test_paths.py +0 -0
  125. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/tests/test_policy.py +0 -0
  126. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/tests/test_runtime_vllm.py +0 -0
  127. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/tests/test_state.py +0 -0
  128. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/tests/test_sweep.py +0 -0
  129. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/tests/test_vast_mapper.py +0 -0
  130. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/tests/test_vast_provider.py +0 -0
  131. {gpu4agents-0.6.0 → gpu4agents-0.7.0}/tests/test_watchdog.py +0 -0
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/claude-code-marketplace.json",
3
+ "name": "gpu4agents",
4
+ "owner": {
5
+ "name": "Jambu.ai",
6
+ "url": "https://github.com/jambuai"
7
+ },
8
+ "description": "Install GPU for Agents as a Claude Code plugin.",
9
+ "plugins": [
10
+ {
11
+ "name": "gpu4agents",
12
+ "source": "./",
13
+ "description": "Your agent rents the GPU it needs, serves a model on it and runs the experiment. You pay only while it works.",
14
+ "license": "MIT",
15
+ "keywords": ["gpu", "llm", "vllm", "mcp", "experiments", "cloud"]
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "gpu4agents",
3
+ "description": "Your agent rents the GPU it needs, serves a model on it and runs the experiment. You pay only while it works.",
4
+ "version": "0.7.0",
5
+ "author": {
6
+ "name": "João Gabriel Lima",
7
+ "url": "https://www.linkedin.com/in/joaogabriellima"
8
+ },
9
+ "homepage": "https://gpu4agents.jambu.ai",
10
+ "repository": "https://github.com/jambuai/gpu4agents",
11
+ "license": "MIT",
12
+ "keywords": ["gpu", "llm", "vllm", "mcp", "experiments", "cloud"],
13
+ "skills": ["./skills/"]
14
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "gpu4agents",
3
+ "description": "Your agent rents the GPU it needs, serves a model on it and runs the experiment. You pay only while it works.",
4
+ "version": "0.7.0",
5
+ "author": {
6
+ "name": "João Gabriel Lima"
7
+ },
8
+ "homepage": "https://gpu4agents.jambu.ai",
9
+ "repository": "https://github.com/jambuai/gpu4agents",
10
+ "license": "MIT",
11
+ "keywords": ["gpu", "llm", "vllm", "mcp", "experiments", "cloud"]
12
+ }
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses [Semantic Versioning](https://semver.org/).
4
4
 
5
+ ## [0.7.0] - 2026-11-02
6
+
7
+ ### Added
8
+ - Any GPU provider. An adapter can live in the project (`provider.plugin: ./gpu_providers/acme.py:AcmeProvider` in `jambu.yaml`) or in an installed package that declares a `gpu4agents.providers` entry point. Neither needs a change to gpu4agents. Vast.ai stays built in.
9
+ - `gpu providers new NAME` writes an adapter skeleton with every method that needs the provider's API marked. `gpu init --provider NAME` writes a `jambu.yaml` that loads it.
10
+ - [`PROVIDERS.md`](PROVIDERS.md), served at `gpu4agents.jambu.ai/providers.md`: the steps an agent follows to add a provider, from the skeleton to one test rental with the user's approval.
11
+ - The provider contract has `credentials_url` and `verify_credentials()`, which `gpu login` uses for every provider.
12
+ - Plugin manifests in the style of [Humanizer](https://github.com/blader/humanizer): a Claude Code marketplace (`/plugin marketplace add jambuai/gpu4agents`), a Cursor plugin, and Codex metadata in `skills/gpu4agents/agents/openai.yaml`. Each release attaches `gpu4agents-skill.zip` for Claude.ai and Claude Desktop.
13
+
14
+ ### Changed
15
+ - `gpu login` works with any provider: `--provider NAME` picks it (default: the project's, else `GPU_PROVIDER`, else Vast.ai), it prompts for each credential the adapter declares, and it saves `GPU_PROVIDER` so account-wide commands outside a project use that provider. `--json` output now includes `provider`.
16
+ - The skill, `INSTALL.md`, the MCP server's instructions and the installer no longer assume Vast.ai. When no account is connected, the agent asks which provider the user wants.
17
+ - Docs and the website were edited for plain language.
18
+
5
19
  ## [0.6.0] - 2026-11-02
6
20
 
7
21
  ### Added
@@ -54,7 +54,7 @@ with the right reason.
54
54
 
55
55
  The core must not branch on a provider name. Branch on `provider.capabilities`.
56
56
  If a provider feature requires an `if provider == "..."` in `core/`, the contract
57
- is wrong — extend the contract instead.
57
+ is wrong. Extend the contract instead.
58
58
 
59
59
  Out of scope: multi-instance scheduling, multi-GPU
60
60
  orchestration, Kubernetes, distributed inference, automatic provider selection,
@@ -0,0 +1,56 @@
1
+ # Install GPU for Agents (instructions for the agent)
2
+
3
+ You are a coding agent (Claude Code, Codex, Gemini CLI, Cursor, or another) and the user asked you to set up GPU for Agents. It gives you a `gpu` command, a skill and MCP tools to rent a cloud GPU, serve a model on it and run experiments. A watchdog on the machine shuts it down when idle, so the user pays only while it works. Vast.ai is the built-in GPU provider, and any other provider can be added with an adapter.
4
+
5
+ Follow these steps in order. Run the commands yourself, and tell the user briefly what each step did.
6
+
7
+ ## 1. Install the `gpu` command and give it to this agent
8
+
9
+ Pick the name of the runtime you are running in: `claude` (Claude Code), `codex` (Codex), `gemini` (Gemini CLI) or `cursor` (Cursor). If you are none of these, use `auto`.
10
+
11
+ ```bash
12
+ curl -fsSL https://gpu4agents.jambu.ai/install.sh | sh -s -- --agent <runtime>
13
+ ```
14
+
15
+ If that address does not resolve, use the copy in the repository:
16
+
17
+ ```bash
18
+ curl -fsSL https://raw.githubusercontent.com/jambuai/gpu4agents/main/install.sh | sh -s -- --agent <runtime>
19
+ ```
20
+
21
+ The script needs only `curl` (Linux or macOS; on Windows, run it inside WSL). It installs [uv](https://docs.astral.sh/uv/) if missing, uses it to install the `gpu4agents` package with a Python it downloads by itself, and then installs the skill and registers the `gpu` MCP server for your runtime. It does not ask for or read any key.
22
+
23
+ Check: `~/.local/bin/gpu --version` prints 0.7.0 or later. Use `~/.local/bin/gpu` for the rest of this session if plain `gpu` is not found.
24
+
25
+ ## 2. Connect a GPU provider account
26
+
27
+ Run `gpu login --check`.
28
+
29
+ - Exit code 0: an account is connected. Go to step 3.
30
+ - Exit code 5: no working key yet. Ask the user which GPU provider they want to use.
31
+ - Vast.ai, or no preference: tell the user, in these words or close:
32
+
33
+ > Create an API key at https://cloud.vast.ai/manage-keys/ and add a few dollars of credit. Then open your own terminal, run `gpu login`, and paste the key into the hidden prompt.
34
+
35
+ - Another provider (RunPod, Lambda, their company's cluster, ...): `gpu` needs an adapter for it first. Tell the user you can write one, and do it after this installation by following https://gpu4agents.jambu.ai/providers.md. The user then runs `gpu login --provider <name>`.
36
+
37
+ Wait until the user says it is done, then run `gpu login --check` again. If the user wants to connect later, go on to step 3.
38
+
39
+ Never ask the user to paste a key into this conversation, never read `~/.gpu/credentials` or `.env` files, and never print a key.
40
+
41
+ ## 3. Learn how to use it
42
+
43
+ Run `gpu agent skill` and read the output. It is the skill you just installed: the rules (ask before renting, wait out a slow setup, clean up), the commands, monitoring, adding a provider, and error codes. Follow it for the rest of this session.
44
+
45
+ The MCP tools (`gpu_setup`, `gpu_status`, ...) appear after the user restarts the agent. Until then, the CLI does everything: `gpu --json <command>`.
46
+
47
+ ## 4. Tell the user it is ready
48
+
49
+ Summarize in a few lines:
50
+
51
+ - what was installed (the `gpu` command, the skill, the MCP server for this runtime);
52
+ - whether a provider account is connected, or what they still need to do (`gpu login`, or an adapter for their provider);
53
+ - that they should restart the agent to get the tools;
54
+ - an example request: "Compare Qwen 7B and Llama 8B on 50 prompts", and that you will show the price and ask before renting anything.
55
+
56
+ Do not rent a GPU as part of the installation.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: gpu4agents
3
- Version: 0.6.0
3
+ Version: 0.7.0
4
4
  Summary: GPU for Agents: your coding agent rents the GPU it needs, on its own. You pay only while it works.
5
5
  Project-URL: Homepage, https://gpu4agents.jambu.ai
6
6
  Project-URL: Documentation, https://github.com/jambuai/gpu4agents/tree/main/docs
@@ -65,38 +65,91 @@ Description-Content-Type: text/markdown
65
65
  **Your agent rents the GPU it needs, on its own.**
66
66
  **You pay only while it works: we watch every machine and shut down the idle ones.**
67
67
 
68
- Ask Claude Code, Cursor or any MCP client to "compare Qwen 7B and Llama 8B on these 50 prompts". The agent finds a GPU under your budget, serves the model behind an OpenAI-compatible API with vLLM, and runs the experiment. A watchdog runs on the machine itself, so when nothing uses it for `idle_timeout` (15 minutes by default) it shuts down, even if the agent forgot, the chat closed or your laptop is asleep.
68
+ Ask Claude Code, Codex, Gemini CLI or Cursor to "compare Qwen 7B and Llama 8B on these 50 prompts". The agent finds a GPU under your budget, serves the model with vLLM behind an OpenAI-compatible API, and runs the experiment. A watchdog on the machine shuts it down after `idle_timeout` (15 minutes by default) with nothing using it, even if the agent forgot, the chat closed or your laptop is asleep.
69
69
 
70
- - **Self-service GPUs for agents.** Claude Code, Codex, Gemini CLI and Cursor install it themselves from one pasted line. A skill and local MCP tools (`gpu_offers`, `gpu_setup`, `gpu_run`, `gpu_status`, `gpu_destroy`, ...) give the agent the whole lifecycle. The skill tells it to show you the price and ask before renting.
71
- - **Billing that ends when the work does.** Idle timeout, maximum lifetime, hourly and session budgets, and a sweep that cleans up anything left behind.
72
- - **Any app, any language.** `gpu --json setup` returns `base_url`, `api_key` and `model` for any OpenAI SDK.
70
+ The agent installs it from one pasted line. A skill and local MCP tools (`gpu_offers`, `gpu_setup`, `gpu_run`, `gpu_status`, `gpu_destroy`, ...) cover the whole lifecycle, and the skill tells the agent to show you the price and ask before renting. Budgets, a maximum lifetime and an account-wide sweep catch anything left behind. Apps in any language get the endpoint from `gpu --json setup`.
73
71
 
74
- Vast.ai is the first provider; another provider is a new adapter, and the lifecycle rule stays the same.
72
+ Vast.ai is built in. Any other GPU provider takes one adapter file, and your agent can write it: see [Use any GPU provider](#use-any-gpu-provider).
75
73
 
76
- ## Quickstart: let your agent install it
74
+ ## Installation
77
75
 
78
- Paste this into Claude Code, Codex, Gemini CLI or Cursor (say which one you use):
76
+ The quickest way works in every agent. Paste this, naming the agent you use:
79
77
 
80
78
  ```text
81
79
  Set up GPU for Agents for me. I'm using Claude Code. Fetch https://gpu4agents.jambu.ai/install.md with curl and follow its steps.
82
80
  ```
83
81
 
84
- The agent installs the `gpu` command (with [uv](https://docs.astral.sh/uv/), which brings its own Python), the `gpu4agents` skill and the `gpu` MCP tools. Then you connect your GPU account in your own terminal, so the agent never sees the key:
82
+ The agent installs the `gpu` command (with [uv](https://docs.astral.sh/uv/), which brings its own Python), the `gpu4agents` skill and the `gpu` MCP tools. It rents nothing.
83
+
84
+ You can also install the skill the way your agent installs other skills. The skill installs the `gpu` command the first time it runs.
85
+
86
+ ### Claude Code
87
+
88
+ ```text
89
+ /plugin marketplace add jambuai/gpu4agents
90
+ /plugin install gpu4agents@gpu4agents
91
+ ```
92
+
93
+ On Claude Code 2.1.275 or newer, one line does both: `/plugin install gpu4agents --marketplace jambuai/gpu4agents`.
94
+
95
+ ### Codex
96
+
97
+ ```bash
98
+ npx skills add jambuai/gpu4agents --global --agent codex
99
+ ```
100
+
101
+ ### Gemini CLI, Cursor and other agents
102
+
103
+ ```bash
104
+ npx skills add jambuai/gpu4agents --global --agent '*'
105
+ ```
106
+
107
+ This installs the skill for every agent the [Skills CLI](https://skills.sh) supports. Leave off `--global` to install it only in the current project.
108
+
109
+ ### Claude.ai and Claude Desktop
110
+
111
+ Download [`gpu4agents-skill.zip`](https://github.com/jambuai/gpu4agents/releases/latest/download/gpu4agents-skill.zip) and upload it under Settings > Capabilities > Skills.
112
+
113
+ ### From a terminal
85
114
 
86
115
  ```bash
87
- gpu login # paste your Vast.ai key (https://cloud.vast.ai/manage-keys/) into the hidden prompt
116
+ curl -fsSL https://gpu4agents.jambu.ai/install.sh | sh # uv, Python and gpu, then every agent it finds
117
+ uv tool install gpu4agents && gpu agent install -t auto --global # the same, by hand
88
118
  ```
89
119
 
90
- Restart the agent and ask for an experiment. It shows the price and asks before renting anything. See [Letting a coding agent rent GPUs](docs/AGENTS.md).
120
+ ## Connect a GPU provider
91
121
 
92
- Prefer a terminal? These do the same:
122
+ Run this in your own terminal, so the agent never sees the key:
93
123
 
94
124
  ```bash
95
- curl -fsSL https://gpu4agents.jambu.ai/install.sh | sh # uv + Python + gpu, then every agent it finds
96
- npx skills add jambuai/gpu4agents # just the skill; it installs gpu on first use
97
- uv tool install gpu4agents && gpu agent install -t codex --global # by hand: claude | codex | gemini | cursor | auto
125
+ gpu login # Vast.ai: paste a key from https://cloud.vast.ai/manage-keys/
126
+ gpu login --provider runpod # a provider you added an adapter for
127
+ gpu login --check # which account gpu finds, and its balance
128
+ ```
129
+
130
+ `gpu login` checks the key with the provider, then saves it in `~/.gpu/credentials` (mode 600). Keys in the environment or a project `.env` work too. They never go in `jambu.yaml`.
131
+
132
+ Restart the agent and ask for an experiment. See [Letting a coding agent rent GPUs](docs/AGENTS.md).
133
+
134
+ ## Use any GPU provider
135
+
136
+ `gpu` talks to providers through a small contract: find offers, rent, report status, stop, destroy, and two calls the watchdog makes from the machine to shut itself down. Vast.ai ships with it. For anything else, such as RunPod, Lambda or your company's cluster, paste this into your agent:
137
+
138
+ ```text
139
+ Add <provider> to GPU for Agents. Fetch https://gpu4agents.jambu.ai/providers.md with curl and follow its steps.
140
+ ```
141
+
142
+ The agent runs `gpu providers new <name>`, fills in the adapter from the provider's API docs, checks it with `gpu validate` and `gpu offers`, and asks you before a test rental. The adapter is one file in your project, selected in `jambu.yaml`:
143
+
144
+ ```yaml
145
+ gpu_runtime:
146
+ provider:
147
+ name: runpod
148
+ plugin: ./gpu_providers/runpod.py:RunpodProvider
98
149
  ```
99
150
 
151
+ To reuse an adapter across projects, publish it as a package with a `gpu4agents.providers` entry point. The watchdog, budgets, CLI and MCP tools work the same with every provider. See [PROVIDERS.md](PROVIDERS.md) and [Adding a provider](docs/ADDING_A_PROVIDER.md).
152
+
100
153
  ## Quickstart: from a shell or an app
101
154
 
102
155
  ```bash
@@ -127,9 +180,7 @@ gpu_runtime:
127
180
  pull_stall_timeout: 10m # a host whose image pull stalls is replaced
128
181
  ```
129
182
 
130
- A full example is [`jambu.example.yaml`](jambu.example.yaml). As a last line of defense, `gpu ls` shows every machine billing in the account and `gpu sweep --install-timer` guards every project on the machine and cleans up orphans. See [Keeping the account clean](docs/USAGE.md#keeping-the-account-clean).
131
-
132
- `gpu login` saves the API key in `~/.gpu/credentials` (mode 600) after checking it; the environment and a project `.env` work too. It never goes in the manifest, and the agent never sees it.
183
+ A full example is [`jambu.example.yaml`](jambu.example.yaml). `gpu ls` shows every machine billing in the account, and `gpu sweep --install-timer` guards every project on the machine and cleans up orphans. See [Keeping the account clean](docs/USAGE.md#keeping-the-account-clean).
133
184
 
134
185
  ## Docs
135
186
 
@@ -139,11 +190,11 @@ A full example is [`jambu.example.yaml`](jambu.example.yaml). As a last line of
139
190
  - [Every config field](docs/CONFIG.md)
140
191
  - [Choosing a model](docs/CHOOSING_A_MODEL.md)
141
192
  - [How shutdown works](docs/LIFECYCLE.md)
142
- - [Adding a provider](docs/ADDING_A_PROVIDER.md)
193
+ - [Adding a provider](docs/ADDING_A_PROVIDER.md), and [the steps for an agent](PROVIDERS.md)
143
194
 
144
195
  ## Coming from `jambu-gpu`
145
196
 
146
- The package was called `jambu-gpu` until 0.4.1. Same code, same `gpu` command, same `jambu.yaml`, same machines:
197
+ The package was called `jambu-gpu` until 0.4.1. The code, the `gpu` command, `jambu.yaml` and the machines are the same:
147
198
 
148
199
  ```bash
149
200
  pipx uninstall jambu-gpu && pipx install gpu4agents
@@ -165,6 +216,6 @@ Created by [João Gabriel Lima](https://www.linkedin.com/in/joaogabriellima) at
165
216
 
166
217
  <p align="center">
167
218
  <a href="https://jambu.ai">
168
- <img src="docs/assets/jambu-logo.jpg" alt="Jambu.ai — Applied Intelligence Lab" width="240">
219
+ <img src="docs/assets/jambu-logo.jpg" alt="Jambu.ai, Applied Intelligence Lab" width="240">
169
220
  </a>
170
221
  </p>
@@ -0,0 +1,85 @@
1
+ # Add a GPU provider to GPU for Agents (instructions for the agent)
2
+
3
+ You are a coding agent, and the user wants GPU for Agents (`gpu`) to rent from a provider it does not ship with, such as RunPod, Lambda, Paperspace, a company cluster or their own servers. Vast.ai is built in. Any other provider is one Python file that implements the provider contract. The core, the watchdog that stops idle machines, the CLI and the MCP tools stay the same.
4
+
5
+ Follow these steps in the user's project directory. Do not rent anything until step 6, and ask first.
6
+
7
+ ## 1. Make sure `gpu` is installed
8
+
9
+ `gpu --version` must print 0.7.0 or later. If it does not, follow https://gpu4agents.jambu.ai/install.md first.
10
+
11
+ ## 2. Write the adapter skeleton
12
+
13
+ ```bash
14
+ gpu providers new <name> --display-name "<Provider name>"
15
+ gpu init --provider <name> --model <org/model> # skip if jambu.yaml exists
16
+ ```
17
+
18
+ The first command writes `gpu_providers/<name>.py`. The second writes a `jambu.yaml` that selects it:
19
+
20
+ ```yaml
21
+ gpu_runtime:
22
+ provider:
23
+ name: <name>
24
+ plugin: ./gpu_providers/<name>.py:<Name>Provider
25
+ ```
26
+
27
+ In an existing `jambu.yaml`, add those two lines under `gpu_runtime.provider` yourself.
28
+
29
+ ## 3. Read the provider's API docs, then fill in the file
30
+
31
+ Every `todo(...)` call marks a part that needs the provider's API; until you write it, that part fails with a clear error (exit 9). Read the contract in `gpu4agents/providers/base.py` (run `python -c "import gpu4agents.providers.base as b; print(b.__file__)"` to find it) and the guide at https://github.com/jambuai/gpu4agents/blob/main/docs/ADDING_A_PROVIDER.md. The Vast.ai adapter in `gpu4agents/providers/vast/` is a full working example.
32
+
33
+ What each part must do:
34
+
35
+ | Part | What it does |
36
+ | --- | --- |
37
+ | `capabilities` | Declare only what the API supports. Set `stop_eliminates_billing=False` if a stopped machine still bills for disk. |
38
+ | `verify_credentials` | Call an account endpoint with the key the user typed into `gpu login`. Return only safe fields, such as `{"balance_usd": 12.5}`. Never return an email, a name or the key. |
39
+ | `find_offers` | List GPUs for rent that fit `spec.gpu.min_vram_gb`, `spec.gpu.count`, `spec.disk_gb` and `spec.max_hourly_cost_usd`, cheapest first. |
40
+ | `setup` | Rent one machine: image `spec.image`, environment `spec.env`, label `spec.label`, every port in `spec.ports` published, and `spec.onstart` run at boot. That script starts the model server and the watchdog. |
41
+ | `status`, `_to_instance` | Map the provider's states onto `InstanceState` and its published ports onto `endpoints["model"]` and `endpoints["watchdog"]`. |
42
+ | `stop`, `destroy` | Succeed when the machine is already stopped or gone. |
43
+ | `list_instances` | Return only machines whose label starts with `jambu-`. Never touch anything else in the account. |
44
+ | `WATCHDOG_ACTIONS` | Python, stdlib only, that runs on the machine itself: `provider_stop(ctx)` and `provider_destroy(ctx)` call the provider's API so an idle machine stops even when no laptop is on. |
45
+
46
+ Raise only the errors in `gpu4agents.core.errors`: `AuthenticationError`, `CapacityUnavailableError`, `ProvisioningError`, `ProviderTimeoutError`, `ProviderError`. The CLI turns them into the usual exit codes.
47
+
48
+ If the provider has no API for something (no stop, no price list), set that capability to `False` and leave its `todo(...)` in place. Tell the user which features that turns off.
49
+
50
+ ## 4. Connect the account
51
+
52
+ Ask the user to run this in their own terminal and paste the key into the hidden prompt:
53
+
54
+ ```bash
55
+ gpu login --provider <name>
56
+ ```
57
+
58
+ Never ask for the key in the chat. `gpu login --check` then exits 0.
59
+
60
+ ## 5. Check without renting
61
+
62
+ ```bash
63
+ gpu --json validate
64
+ gpu --json offers
65
+ gpu providers
66
+ ```
67
+
68
+ `offers` must list real GPUs with real prices. Fix the adapter until it does.
69
+
70
+ ## 6. One real run, with the user's yes
71
+
72
+ Show the user the cheapest offer and ask before renting. Use a small model to keep it cheap (`Qwen/Qwen2.5-0.5B-Instruct` on a 16 to 24 GB GPU). Then:
73
+
74
+ ```bash
75
+ gpu --json setup # rent, boot, serve the model; can take 5 to 15 minutes
76
+ gpu --json status # state ready, endpoint up, watchdog reachable
77
+ gpu --json destroy --yes # with the user's yes
78
+ gpu --json ls # nothing of ours left running
79
+ ```
80
+
81
+ If `watchdog.reachable` is false in `status`, the watchdog port is not published: check `endpoints["watchdog"]` in `_to_instance`.
82
+
83
+ ## 7. Tell the user what changed
84
+
85
+ List the file you wrote, the capabilities you turned off and why, and the result of the test run. To share the adapter with other projects, package it and declare it under the `gpu4agents.providers` entry point group: every `gpu` on that machine then finds it without `plugin:`.
@@ -0,0 +1,180 @@
1
+ <p align="center">
2
+ <a href="https://gpu4agents.jambu.ai">
3
+ <img src="docs/assets/banner.png" alt="GPU for Agents: your agent rents the GPU it needs, on its own. You pay only while it works." width="100%">
4
+ </a>
5
+ </p>
6
+
7
+ <p align="center">
8
+ <a href="https://pypi.org/project/gpu4agents/"><img src="https://img.shields.io/pypi/v/gpu4agents?color=5CBF3A&label=pypi" alt="PyPI"></a>
9
+ <a href="https://pypi.org/project/gpu4agents/"><img src="https://img.shields.io/pypi/pyversions/gpu4agents?color=5CBF3A" alt="Python versions"></a>
10
+ <a href="https://github.com/jambuai/gpu4agents/actions/workflows/ci.yml"><img src="https://github.com/jambuai/gpu4agents/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
11
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-5CBF3A" alt="MIT license"></a>
12
+ </p>
13
+
14
+ <p align="center">
15
+ <a href="https://gpu4agents.jambu.ai">Website</a> ·
16
+ <a href="https://gpu4agents.jambu.ai/#video">1-minute video</a> ·
17
+ <a href="docs/AGENTS.md">Agents guide</a> ·
18
+ <a href="https://github.com/jambuai/gpu4agents/wiki">Wiki</a> ·
19
+ <a href="CHANGELOG.md">Changelog</a>
20
+ </p>
21
+
22
+ # GPU for Agents
23
+
24
+ **Your agent rents the GPU it needs, on its own.**
25
+ **You pay only while it works: we watch every machine and shut down the idle ones.**
26
+
27
+ Ask Claude Code, Codex, Gemini CLI or Cursor to "compare Qwen 7B and Llama 8B on these 50 prompts". The agent finds a GPU under your budget, serves the model with vLLM behind an OpenAI-compatible API, and runs the experiment. A watchdog on the machine shuts it down after `idle_timeout` (15 minutes by default) with nothing using it, even if the agent forgot, the chat closed or your laptop is asleep.
28
+
29
+ The agent installs it from one pasted line. A skill and local MCP tools (`gpu_offers`, `gpu_setup`, `gpu_run`, `gpu_status`, `gpu_destroy`, ...) cover the whole lifecycle, and the skill tells the agent to show you the price and ask before renting. Budgets, a maximum lifetime and an account-wide sweep catch anything left behind. Apps in any language get the endpoint from `gpu --json setup`.
30
+
31
+ Vast.ai is built in. Any other GPU provider takes one adapter file, and your agent can write it: see [Use any GPU provider](#use-any-gpu-provider).
32
+
33
+ ## Installation
34
+
35
+ The quickest way works in every agent. Paste this, naming the agent you use:
36
+
37
+ ```text
38
+ Set up GPU for Agents for me. I'm using Claude Code. Fetch https://gpu4agents.jambu.ai/install.md with curl and follow its steps.
39
+ ```
40
+
41
+ The agent installs the `gpu` command (with [uv](https://docs.astral.sh/uv/), which brings its own Python), the `gpu4agents` skill and the `gpu` MCP tools. It rents nothing.
42
+
43
+ You can also install the skill the way your agent installs other skills. The skill installs the `gpu` command the first time it runs.
44
+
45
+ ### Claude Code
46
+
47
+ ```text
48
+ /plugin marketplace add jambuai/gpu4agents
49
+ /plugin install gpu4agents@gpu4agents
50
+ ```
51
+
52
+ On Claude Code 2.1.275 or newer, one line does both: `/plugin install gpu4agents --marketplace jambuai/gpu4agents`.
53
+
54
+ ### Codex
55
+
56
+ ```bash
57
+ npx skills add jambuai/gpu4agents --global --agent codex
58
+ ```
59
+
60
+ ### Gemini CLI, Cursor and other agents
61
+
62
+ ```bash
63
+ npx skills add jambuai/gpu4agents --global --agent '*'
64
+ ```
65
+
66
+ This installs the skill for every agent the [Skills CLI](https://skills.sh) supports. Leave off `--global` to install it only in the current project.
67
+
68
+ ### Claude.ai and Claude Desktop
69
+
70
+ Download [`gpu4agents-skill.zip`](https://github.com/jambuai/gpu4agents/releases/latest/download/gpu4agents-skill.zip) and upload it under Settings > Capabilities > Skills.
71
+
72
+ ### From a terminal
73
+
74
+ ```bash
75
+ curl -fsSL https://gpu4agents.jambu.ai/install.sh | sh # uv, Python and gpu, then every agent it finds
76
+ uv tool install gpu4agents && gpu agent install -t auto --global # the same, by hand
77
+ ```
78
+
79
+ ## Connect a GPU provider
80
+
81
+ Run this in your own terminal, so the agent never sees the key:
82
+
83
+ ```bash
84
+ gpu login # Vast.ai: paste a key from https://cloud.vast.ai/manage-keys/
85
+ gpu login --provider runpod # a provider you added an adapter for
86
+ gpu login --check # which account gpu finds, and its balance
87
+ ```
88
+
89
+ `gpu login` checks the key with the provider, then saves it in `~/.gpu/credentials` (mode 600). Keys in the environment or a project `.env` work too. They never go in `jambu.yaml`.
90
+
91
+ Restart the agent and ask for an experiment. See [Letting a coding agent rent GPUs](docs/AGENTS.md).
92
+
93
+ ## Use any GPU provider
94
+
95
+ `gpu` talks to providers through a small contract: find offers, rent, report status, stop, destroy, and two calls the watchdog makes from the machine to shut itself down. Vast.ai ships with it. For anything else, such as RunPod, Lambda or your company's cluster, paste this into your agent:
96
+
97
+ ```text
98
+ Add <provider> to GPU for Agents. Fetch https://gpu4agents.jambu.ai/providers.md with curl and follow its steps.
99
+ ```
100
+
101
+ The agent runs `gpu providers new <name>`, fills in the adapter from the provider's API docs, checks it with `gpu validate` and `gpu offers`, and asks you before a test rental. The adapter is one file in your project, selected in `jambu.yaml`:
102
+
103
+ ```yaml
104
+ gpu_runtime:
105
+ provider:
106
+ name: runpod
107
+ plugin: ./gpu_providers/runpod.py:RunpodProvider
108
+ ```
109
+
110
+ To reuse an adapter across projects, publish it as a package with a `gpu4agents.providers` entry point. The watchdog, budgets, CLI and MCP tools work the same with every provider. See [PROVIDERS.md](PROVIDERS.md) and [Adding a provider](docs/ADDING_A_PROVIDER.md).
111
+
112
+ ## Quickstart: from a shell or an app
113
+
114
+ ```bash
115
+ gpu init --model Qwen/Qwen2.5-7B-Instruct
116
+ gpu validate
117
+ gpu offers # see prices, rent nothing
118
+ gpu setup # rent, boot vLLM, wait until the model answers
119
+ gpu run python experiment.py # OPENAI_BASE_URL / OPENAI_API_KEY are set for the job
120
+ gpu destroy # or walk away: the idle timeout does it
121
+ ```
122
+
123
+ From an application in any language, `gpu --json setup` prints the endpoint as JSON. See [Integrating into an application](docs/INTEGRATION.md), with a ready TypeScript client.
124
+
125
+ ## Declare the limits
126
+
127
+ ```yaml
128
+ # jambu.yaml (only the gpu_runtime key is read, so other Jambu tools can share the file)
129
+ gpu_runtime:
130
+ provider: {name: vast}
131
+ model_profile: qwythos-9b
132
+ lifecycle:
133
+ idle_timeout: 15m # the watchdog on the machine stops it
134
+ max_lifetime: 6h # a hard ceiling, busy or not
135
+ budget:
136
+ max_hourly_cost_usd: 0.60 # offers above this are never rented
137
+ max_session_cost_usd: 5.00
138
+ health:
139
+ pull_stall_timeout: 10m # a host whose image pull stalls is replaced
140
+ ```
141
+
142
+ A full example is [`jambu.example.yaml`](jambu.example.yaml). `gpu ls` shows every machine billing in the account, and `gpu sweep --install-timer` guards every project on the machine and cleans up orphans. See [Keeping the account clean](docs/USAGE.md#keeping-the-account-clean).
143
+
144
+ ## Docs
145
+
146
+ - [Letting a coding agent rent GPUs (Claude Code, Codex, Gemini CLI, Cursor, Claude Desktop)](docs/AGENTS.md)
147
+ - [Integrating into an application (any language)](docs/INTEGRATION.md)
148
+ - [Commands, workloads, and agents](docs/USAGE.md)
149
+ - [Every config field](docs/CONFIG.md)
150
+ - [Choosing a model](docs/CHOOSING_A_MODEL.md)
151
+ - [How shutdown works](docs/LIFECYCLE.md)
152
+ - [Adding a provider](docs/ADDING_A_PROVIDER.md), and [the steps for an agent](PROVIDERS.md)
153
+
154
+ ## Coming from `jambu-gpu`
155
+
156
+ The package was called `jambu-gpu` until 0.4.1. The code, the `gpu` command, `jambu.yaml` and the machines are the same:
157
+
158
+ ```bash
159
+ pipx uninstall jambu-gpu && pipx install gpu4agents
160
+ ```
161
+
162
+ Sweep timers installed by `jambu-gpu` keep working; `gpu sweep --install-timer` rewrites them for the new module.
163
+
164
+ ## Contributing
165
+
166
+ Issues and pull requests are welcome. Read [CONTRIBUTING.md](CONTRIBUTING.md) and the [Code of Conduct](CODE_OF_CONDUCT.md). Report security issues privately, as described in [SECURITY.md](SECURITY.md).
167
+
168
+ ## Author
169
+
170
+ Created by [João Gabriel Lima](https://www.linkedin.com/in/joaogabriellima) at [Jambu.ai](https://jambu.ai).
171
+
172
+ ## License
173
+
174
+ [MIT](LICENSE).
175
+
176
+ <p align="center">
177
+ <a href="https://jambu.ai">
178
+ <img src="docs/assets/jambu-logo.jpg" alt="Jambu.ai, Applied Intelligence Lab" width="240">
179
+ </a>
180
+ </p>
@@ -1,4 +1,4 @@
1
- # Acceptance criteria — where each one is implemented and tested
1
+ # Acceptance criteria: where each one is implemented and tested
2
2
 
3
3
  Eighteen guarantees, mapped to the code and the test that holds each one.
4
4
 
@@ -36,7 +36,7 @@ On 2026-10-24 the lifecycle ran end to end on Vast.ai (RTX 3090, Qwen2.5-0.5B, `
36
36
  | Failed setups leave nothing | An image built for a newer CUDA, a model server that died at import, a host whose network dropped the weights download, a 30-minute image pull, and a Ctrl-C each ended with the instance destroyed. |
37
37
  | Bad hosts are skipped | Hosts that could not pull the image were destroyed, excluded and replaced, with never two instances alive at once. |
38
38
 
39
- The run also found what unit tests could not, and each of these is fixed and covered by a test:
39
+ The run also found problems the unit tests had missed. Each is fixed and covered by a test:
40
40
  - the boot script was over Vast's 16 KB onstart limit;
41
41
  - `latest` had moved to CUDA 13;
42
42
  - the `-cu129` image variant could not load torchcodec;
@@ -70,7 +70,7 @@ On 2026-11-02 the self-install was checked the same way. In an empty home direct
70
70
  | Cancel | Over MCP (official Python SDK client), `gpu_destroy` during a setup interrupted it like Ctrl-C: the booting machine was destroyed and `gpu_ls` came back empty, 2.3 s after the call. |
71
71
  | Protocol | The official MCP Python SDK (2.3.0) client initializes, lists the 13 tools and calls them. |
72
72
 
73
- The first attempt found what the unit tests had not, each fixed and tested:
73
+ The first attempt found problems the unit tests had missed. Each is fixed and tested:
74
74
  - during a setup, `gpu status`, `gpu logs`, `gpu stop` and `gpu destroy` failed on the project lock (reported as "no instance"). Now `status` and `logs` report the last saved state with `busy: true`, the MCP `gpu_stop` / `gpu_destroy` cancel the setup first, and a held lock is its own exit code, 12;
75
75
  - the host that failed last when setup gave up was not remembered as bad, so the next setup rented it again;
76
76
  - on Vast, three hosts in a row stalled 30 minutes each pulling the 12 GB Docker Hub image, and setup gave up after 90 minutes with nothing left billing. Vast now defaults to `vastai/vllm:v0.32.0-cuda-13.0`, the same vLLM that Vast's hosts cache: in the cancel test the container was running within a minute.
@@ -79,8 +79,8 @@ The first attempt found what the unit tests had not, each fixed and tested:
79
79
 
80
80
  `jambu.yaml` schema, CLI, provider contract, provider registry, Vast.ai adapter,
81
81
  vLLM runtime, `setup`, `run`, `status`, `stop`, `destroy`, `lock`/`unlock`, idle
82
- timeout, max lifetime, remote watchdog, structured logs — all present. On top of
83
- it, `ls` and `sweep` for account-wide orphan control.
82
+ timeout, max lifetime, remote watchdog and structured logs are all present. On top
83
+ of that, `ls` and `sweep` handle orphan control across the account.
84
84
 
85
85
  Deliberately not implemented: multi-instance scheduling, multi-GPU
86
86
  orchestration, Kubernetes, distributed inference, provider optimization, automatic