mlclaw 0.5.0 → 0.6.1
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 +16 -0
- package/Dockerfile +1 -1
- package/README.md +34 -0
- package/dist/mlclaw-space-runtime.js +6075 -316
- package/dist/mlclaw.mjs +696 -17
- package/package.json +4 -4
|
@@ -290,6 +290,22 @@ 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 and enables OpenClaw's bundled Codex app-server harness
|
|
302
|
+
for `openai/*` agent models. OpenClaw contacts OpenAI directly, refreshes the
|
|
303
|
+
OAuth credential in its private auth store, and discovers the account-visible
|
|
304
|
+
catalog, including `openai/gpt-5.6-sol` when entitled. ML Claw does not proxy
|
|
305
|
+
model discovery or inference and does not install or invoke a Codex CLI from
|
|
306
|
+
`PATH`. Normal `OPENAI_API_KEY` profiles can coexist with subscription OAuth;
|
|
307
|
+
OpenAI agent turns use the Codex harness with either credential type.
|
|
308
|
+
|
|
293
309
|
## Branding
|
|
294
310
|
|
|
295
311
|
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.1-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,40 @@ 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 and enables OpenClaw's bundled Codex app-server harness for
|
|
393
|
+
`openai/*` agent models. Codex owns the low-level model loop, native thread
|
|
394
|
+
state, tool continuation, and compaction; OpenClaw continues to own channels,
|
|
395
|
+
approvals, dynamic tools, model selection, and the visible transcript mirror.
|
|
396
|
+
OpenClaw manages its compatible app-server binary, so ML Claw still does not
|
|
397
|
+
install or invoke a Codex CLI from `PATH`.
|
|
398
|
+
|
|
399
|
+
OpenClaw contacts OpenAI directly for model discovery, inference, and token
|
|
400
|
+
refresh; ML Claw is not in the inference path. OpenClaw keeps its own model
|
|
401
|
+
names, metadata, transport, and refreshed credential, and a normal
|
|
402
|
+
`OPENAI_API_KEY` profile can coexist with the ChatGPT route. OpenAI agent models
|
|
403
|
+
also use the Codex harness with API-key auth. `status` and `logout` inspect or
|
|
404
|
+
revoke the deployment-scoped login without exposing tokens. Raw OAuth tokens
|
|
405
|
+
are never printed, stored in the Space repository or model configuration, or
|
|
406
|
+
included in workspace files.
|
|
407
|
+
|
|
374
408
|
## How State Works
|
|
375
409
|
|
|
376
410
|
OpenClaw runs against local disk inside the active runtime. In Space gateway
|