zox-code 0.1.0 → 0.1.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/README.md +21 -2
- package/dist/cli.js +139 -139
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -15,10 +15,29 @@ bunx zox-code
|
|
|
15
15
|
Binaries: `zox` and `zox-code` (same entry).
|
|
16
16
|
|
|
17
17
|
```sh
|
|
18
|
-
export
|
|
19
|
-
zox --model
|
|
18
|
+
export OPENROUTER_API_KEY=sk-or-...
|
|
19
|
+
zox --model openrouter/openai/gpt-4.1 --sandbox host
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
+
Or in `.zox/config.json` (the `OPENROUTER_API_KEY` env var is still required):
|
|
23
|
+
|
|
24
|
+
```json
|
|
25
|
+
{
|
|
26
|
+
"model": "openrouter/openai/gpt-4.1",
|
|
27
|
+
"agent": "build",
|
|
28
|
+
"sandbox": { "mode": "host" },
|
|
29
|
+
"providers": {
|
|
30
|
+
"openrouter": {
|
|
31
|
+
"kind": "openai-compatible",
|
|
32
|
+
"baseURL": "https://openrouter.ai/api/v1",
|
|
33
|
+
"apiKeyEnv": "OPENROUTER_API_KEY"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Without `"model"`, Zox defaults to `mock/echo`. `providers` does not select a model by itself.
|
|
40
|
+
|
|
22
41
|
Default sandbox is a git **worktree** under `.zox/worktrees/`. Use `--sandbox host` to edit the current checkout.
|
|
23
42
|
|
|
24
43
|
Full docs: [github.com/JayTheCoder77/Zox](https://github.com/JayTheCoder77/Zox)
|