@tangle-network/sandbox-cli 0.9.4-develop.20260629071229.145161 → 0.9.4-develop.20260701061438.a81baba

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.
package/README.md CHANGED
@@ -119,6 +119,15 @@ tangle agent task sbx_123 "triage issues" \
119
119
  --connection github:github.issues.search,github.issues.create
120
120
  tangle agent task sbx_123 "file the report" --connection github:* --allow-writes
121
121
 
122
+ # temporary GPU for an eval; omitted provider picks the cheapest configured cloud
123
+ tangle sandbox gpu run sbx_123 \
124
+ --accelerator-kind nvidia-3090 \
125
+ --accelerator-memory 24000 \
126
+ --max-spend-usd 1 \
127
+ --max-lifetime 900 \
128
+ --idle-timeout 120 \
129
+ -- python eval.py
130
+
122
131
  # state and operations
123
132
  tangle secret list
124
133
  tangle snapshot list sbx_123
@@ -133,7 +142,7 @@ grant modes, `--allow-writes`, and `permissions revert-writes`.
133
142
 
134
143
  ## Provisioning Coverage
135
144
 
136
- `tangle sandbox create` exposes the full SDK provisioning surface, including image/environment, resources (CPU, memory, disk), lifetime and idle timeout, driver and backend selection (`opencode`, `claude-code`, `codex`, `cursor`, `amp`, and other registry backends), SSH and web terminal, env and secret injection, metadata, initial permissions, git clone, tool pre-install, BYOS3 storage, snapshot restore, and outbound network controls. Run `tangle sandbox create --help` for the canonical flag list.
145
+ `tangle sandbox create` exposes the full SDK provisioning surface, including image/environment, resources (CPU, memory, disk), temporary GPU leases, lifetime and idle timeout, driver and backend selection (`opencode`, `claude-code`, `codex`, `cursor`, `amp`, and other registry backends), SSH and web terminal, env and secret injection, metadata, initial permissions, git clone, tool pre-install, BYOS3 storage, snapshot restore, and outbound network controls. Run `tangle sandbox create --help` for the canonical flag list.
137
146
 
138
147
  ## Limitations
139
148
 
package/SKILL.md CHANGED
@@ -67,6 +67,44 @@ tangle sandbox expose <id> --port 3000
67
67
  tangle sandbox urls <id>
68
68
  ```
69
69
 
70
+ ## Temporary GPUs
71
+
72
+ Use a normal sandbox first, then attach a GPU only for the work that needs it.
73
+ Omit `--provider` to use the cheapest configured GPU cloud.
74
+ Always set a spend cap and lifetime.
75
+
76
+ ```bash
77
+ # One-shot eval: attach GPU, run command, always destroy the lease.
78
+ tangle sandbox gpu run <sandbox-id> \
79
+ --accelerator-kind nvidia-3090 \
80
+ --accelerator-memory 24000 \
81
+ --max-spend-usd 1 \
82
+ --max-lifetime 900 \
83
+ --idle-timeout 120 \
84
+ -- python eval.py
85
+
86
+ # Manual lifecycle when the agent needs multiple GPU commands.
87
+ tangle sandbox gpu attach <sandbox-id> \
88
+ --accelerator-kind nvidia-3090 \
89
+ --accelerator-memory 24000 \
90
+ --max-spend-usd 1 \
91
+ --max-lifetime 900 \
92
+ --idle-timeout 120
93
+ tangle sandbox gpu exec <sandbox-id> <gpu-lease-id> -- python eval.py
94
+ tangle sandbox gpu detach <sandbox-id> <gpu-lease-id>
95
+ ```
96
+
97
+ For fleets, put the same GPU lease cap on every worker:
98
+
99
+ ```bash
100
+ tangle fleet create --count 4 \
101
+ --accelerator-kind nvidia-3090 \
102
+ --accelerator-memory 24000 \
103
+ --gpu-max-spend-usd 1 \
104
+ --gpu-max-lifetime 900 \
105
+ --gpu-idle-timeout 120
106
+ ```
107
+
70
108
  ## Hub — Full Workflow
71
109
 
72
110
  Hub lets agents use connected provider tools (GitHub, etc.) through Tangle without seeing provider OAuth tokens.