mlclaw 0.5.0 → 0.6.0
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/.agents/skills/mlclaw/SKILL.md +14 -0
- package/Dockerfile +1 -1
- package/README.md +26 -0
- package/dist/mlclaw-space-runtime.js +6029 -301
- package/dist/mlclaw.mjs +696 -17
- package/package.json +4 -4
|
@@ -290,6 +290,20 @@ settings to set a Space Secret; do not put the user's broad Hub token into the
|
|
|
290
290
|
Space just so the browser app can mutate secrets. The key must never be logged
|
|
291
291
|
or returned to the browser.
|
|
292
292
|
|
|
293
|
+
Deployment-scoped ChatGPT login uses OpenAI's Codex device-code protocol
|
|
294
|
+
directly and does not require the Codex CLI:
|
|
295
|
+
|
|
296
|
+
```bash
|
|
297
|
+
mlclaw credentials codex login <agent>
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
After login, ML Claw imports the deployment credential into a managed native
|
|
301
|
+
OpenClaw OAuth profile. OpenClaw contacts OpenAI directly, refreshes the OAuth
|
|
302
|
+
credential in its private auth store, and discovers the account-visible catalog
|
|
303
|
+
under `openai/*`, including `openai/gpt-5.6-sol` when entitled. ML Claw does not
|
|
304
|
+
proxy model discovery or inference. Normal `OPENAI_API_KEY` profiles continue
|
|
305
|
+
to use the OpenAI Platform route.
|
|
306
|
+
|
|
293
307
|
## Branding
|
|
294
308
|
|
|
295
309
|
ML Claw white-labels the browser gateway at the proxy layer. App Spaces default
|
package/Dockerfile
CHANGED
|
@@ -2,7 +2,7 @@ ARG OPENCLAW_VERSION=2026.7.1
|
|
|
2
2
|
ARG OPENCLAW_BASE_IMAGE=ghcr.io/openclaw/openclaw:${OPENCLAW_VERSION}
|
|
3
3
|
ARG BROKERKIT_PLUGIN_VERSION=0.4.1
|
|
4
4
|
ARG BROKERKIT_VERSION=hf-broker/v0.6.2
|
|
5
|
-
ARG MLCLAW_RUNTIME_IMAGE=ghcr.io/huggingface/mlclaw:0.
|
|
5
|
+
ARG MLCLAW_RUNTIME_IMAGE=ghcr.io/huggingface/mlclaw:0.6.0-openclaw-2026.7.1
|
|
6
6
|
|
|
7
7
|
FROM golang:1.26.5-bookworm AS hf-broker-build
|
|
8
8
|
ARG BROKERKIT_VERSION
|
package/README.md
CHANGED
|
@@ -371,6 +371,32 @@ never returned to the browser, exposed to the agent except as its intended
|
|
|
371
371
|
OpenAI credential, or stored as plaintext in the state bucket. App Spaces do
|
|
372
372
|
not keep broad Hugging Face authority in the web control process.
|
|
373
373
|
|
|
374
|
+
To connect an OpenAI/ChatGPT account through Codex device login instead of an
|
|
375
|
+
API key, target the specific deployment. ML Claw performs the device-code flow
|
|
376
|
+
directly over HTTPS. It does not install, invoke, or depend on the Codex CLI.
|
|
377
|
+
|
|
378
|
+
```bash
|
|
379
|
+
mlclaw credentials codex login mlclaw
|
|
380
|
+
mlclaw credentials codex status mlclaw
|
|
381
|
+
mlclaw credentials codex logout mlclaw
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
`login` requests a one-time device code from OpenAI, prints the verification
|
|
385
|
+
URL and code, polls for approval, encrypts the OAuth credential into the
|
|
386
|
+
selected deployment's private state bucket, and restarts the deployment.
|
|
387
|
+
OpenClaw then discovers the models visible to that ChatGPT account under its
|
|
388
|
+
native `openai/*` provider. For example, an entitled account may expose
|
|
389
|
+
`openai/gpt-5.6-sol` alongside the other live Codex models.
|
|
390
|
+
|
|
391
|
+
At startup, ML Claw imports the encrypted login into a managed native OpenClaw
|
|
392
|
+
OAuth profile. OpenClaw then contacts OpenAI directly for model discovery,
|
|
393
|
+
Responses requests, and token refresh; ML Claw is not in the inference path.
|
|
394
|
+
OpenClaw keeps its own model names, metadata, transport, and refreshed
|
|
395
|
+
credential, and a normal `OPENAI_API_KEY` profile can coexist with the ChatGPT
|
|
396
|
+
route. `status` and `logout` inspect or revoke the deployment-scoped login
|
|
397
|
+
without exposing tokens. Raw OAuth tokens are never printed, stored in the
|
|
398
|
+
Space repository or model configuration, or included in workspace files.
|
|
399
|
+
|
|
374
400
|
## How State Works
|
|
375
401
|
|
|
376
402
|
OpenClaw runs against local disk inside the active runtime. In Space gateway
|