opencode-jev-model-router 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 +14 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,17 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
Automatic per-turn model picking for [OpenCode](https://opencode.ai), powered by [Jev](https://typesafe.ai). Built for **[OpenCode Go](https://opencode.ai/docs/go/)**: easy turns burn generous models; hard turns get Luna.
|
|
4
4
|
|
|
5
|
+
[npm](https://www.npmjs.com/package/opencode-jev-model-router) · [GitHub](https://github.com/aaronshaf/opencode-jev-model-router)
|
|
6
|
+
|
|
5
7
|
## Quick start
|
|
6
8
|
|
|
7
9
|
**1. Install the plugin**
|
|
8
10
|
|
|
9
11
|
```bash
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
opencode plugin opencode-jev-model-router -g
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Or add it to `~/.config/opencode/opencode.json`:
|
|
16
|
+
|
|
17
|
+
```json
|
|
18
|
+
{
|
|
19
|
+
"plugin": ["opencode-jev-model-router"]
|
|
20
|
+
}
|
|
14
21
|
```
|
|
15
22
|
|
|
23
|
+
Pin a version if you prefer: `"opencode-jev-model-router@0.1.0"`.
|
|
24
|
+
|
|
16
25
|
**2. Add your Jev key** (OpenCode usually does not see shell `export`s)
|
|
17
26
|
|
|
18
27
|
```bash
|
|
@@ -20,11 +29,7 @@ printf '%s\n' "$JEV_KEY" > ~/.config/opencode/opencode-jev-router.key
|
|
|
20
29
|
chmod 600 ~/.config/opencode/opencode-jev-router.key
|
|
21
30
|
```
|
|
22
31
|
|
|
23
|
-
**3. Optional:** copy defaults
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
cp opencode-jev-router.example.json ~/.config/opencode/opencode-jev-router.json
|
|
27
|
-
```
|
|
32
|
+
**3. Optional:** copy [example config](https://github.com/aaronshaf/opencode-jev-model-router/blob/main/opencode-jev-router.example.json) to `~/.config/opencode/opencode-jev-router.json` (defaults work without this).
|
|
28
33
|
|
|
29
34
|
**4. Restart OpenCode**, then check:
|
|
30
35
|
|