@elvatis_com/openclaw-cli-bridge-elvatis 2.0.0 → 2.1.2

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.
@@ -7,7 +7,7 @@ _Last updated: 2026-03-13_
7
7
 
8
8
  | Status | Count |
9
9
  |---------|-------|
10
- | Done | 13 |
10
+ | Done | 16 |
11
11
  | Ready | 0 |
12
12
  | Blocked | 0 |
13
13
  <!-- /SECTION: summary -->
@@ -30,6 +30,9 @@ _No blocked tasks._
30
30
 
31
31
  | Task | Title | Date |
32
32
  |-------|--------------------------------------------------------------------|------------|
33
+ | T-016 | Issue #2: Codex auth auto-import into agent auth store | 2026-03-19 |
34
+ | T-015 | Issue #4: Background session mgmt with workdir isolation | 2026-03-19 |
35
+ | T-014 | Issue #6: Workdir isolation (createIsolatedWorkdir, cleanup, sweep) | 2026-03-19 |
33
36
  | T-013 | Fix cookie expiry tracking — longest-lived auth cookie (all 4) | 2026-03-13 |
34
37
  | T-012 | Persistent browser fallback for Claude/Gemini/ChatGPT (no CDP) | 2026-03-12 |
35
38
  | T-011 | Session-safe staged model switching (/cli-apply, /cli-pending) | 2026-03-11 |
@@ -1,6 +1,6 @@
1
1
  # STATUS — openclaw-cli-bridge-elvatis
2
2
 
3
- ## Current Version: 1.9.2
3
+ ## Current Version: 2.1.0
4
4
 
5
5
  - **npm:** @elvatis_com/openclaw-cli-bridge-elvatis (not yet published to npm)
6
6
  - **ClawHub:** openclaw-cli-bridge-elvatis@1.9.2
@@ -47,6 +47,8 @@ This is by design — CLI tools output plain text only.
47
47
  - /bridge-status shows cookie-based status
48
48
 
49
49
  ## Release History (recent)
50
+ - v2.1.0 (2026-03-19): Issue #6 workdir isolation, Issue #4 session mgmt enhancements, Issue #2 codex auth auto-import
51
+ - v2.0.0: Major version bump
50
52
  - v1.9.2 (2026-03-15): Fix maxTokens/contextWindow for all CLI_MODELS (were 8192, now correct per vendor specs)
51
53
  - v1.9.1: Previous stable
52
54
  - v1.7.3 (2026-03-13): Fix cookie expiry tracking
@@ -0,0 +1,19 @@
1
+ ---
2
+ name: Bug Report
3
+ about: Report a bug to help us improve
4
+ labels: bug
5
+ ---
6
+
7
+ **Describe the bug**
8
+ A clear description of what the bug is.
9
+
10
+ **To Reproduce**
11
+ Steps to reproduce:
12
+ 1. ...
13
+ 2. ...
14
+
15
+ **Expected behavior**
16
+ What you expected to happen.
17
+
18
+ **Additional context**
19
+ Any other context about the problem.
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: Feature Request
3
+ about: Suggest an idea for this project
4
+ labels: enhancement
5
+ ---
6
+
7
+ **Is your feature request related to a problem?**
8
+ Describe the problem.
9
+
10
+ **Describe the solution you'd like**
11
+ What you want to happen.
12
+
13
+ **Additional context**
14
+ Any other context or screenshots.
@@ -0,0 +1,11 @@
1
+ ## Summary
2
+
3
+ Describe the change and why it is needed.
4
+
5
+ Closes #
6
+
7
+ ## Checklist
8
+
9
+ - [ ] Tests pass (if applicable)
10
+ - [ ] Documentation updated if behavior changes
11
+ - [ ] No secrets in the commit history
@@ -0,0 +1,11 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "npm"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ day: "monday"
8
+ open-pull-requests-limit: 5
9
+ labels:
10
+ - "dependencies"
11
+
@@ -0,0 +1,68 @@
1
+ name: Auto-Publish (npm + ClawHub)
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ publish-npm:
12
+ name: Publish to npm
13
+ runs-on: ubuntu-latest
14
+
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+
18
+ - uses: actions/setup-node@v4
19
+ with:
20
+ node-version: 22
21
+ registry-url: "https://registry.npmjs.org"
22
+
23
+ - run: npm ci --ignore-scripts
24
+
25
+ - name: Build (if script exists)
26
+ run: npm run build --if-present || true
27
+
28
+ - name: Verify version matches tag
29
+ run: |
30
+ PKG_VERSION=$(node -p "require('./package.json').version")
31
+ TAG_VERSION="${GITHUB_REF_NAME#v}"
32
+ if [ "$PKG_VERSION" != "$TAG_VERSION" ]; then
33
+ echo "::error::package.json version ($PKG_VERSION) != tag ($TAG_VERSION)"
34
+ exit 1
35
+ fi
36
+
37
+ - name: Publish to npm
38
+ run: npm publish --access public
39
+ env:
40
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
41
+
42
+ publish-clawhub:
43
+ name: Publish to ClawHub
44
+ runs-on: ubuntu-latest
45
+ needs: publish-npm
46
+
47
+ steps:
48
+ - uses: actions/checkout@v4
49
+
50
+ - uses: actions/setup-node@v4
51
+ with:
52
+ node-version: 22
53
+
54
+ - run: npm install -g clawhub
55
+
56
+ - name: Authenticate and publish
57
+ run: |
58
+ SLUG=$(node -p "require('./package.json').name.replace('@elvatis_com/', '')")
59
+ VERSION=$(node -p "require('./package.json').version")
60
+ TMPDIR=$(mktemp -d)/$SLUG
61
+ mkdir -p "$TMPDIR"
62
+ rsync -a --exclude=node_modules --exclude=.git --exclude=dist --exclude=package-lock.json --exclude=.github ./ "$TMPDIR/"
63
+ clawhub login --token "$CLAWHUB_TOKEN" --no-browser
64
+ clawhub publish "$TMPDIR" --slug "$SLUG" --version "$VERSION"
65
+ rm -rf "$(dirname $TMPDIR)"
66
+ env:
67
+ CLAWHUB_TOKEN: ${{ secrets.CLAWHUB_TOKEN }}
68
+
@@ -0,0 +1,40 @@
1
+ name: "CodeQL"
2
+ on:
3
+ push:
4
+ branches: [main, master]
5
+ pull_request:
6
+ branches: [main, master]
7
+ schedule:
8
+ - cron: "0 4 * * 1"
9
+
10
+ jobs:
11
+ analyze:
12
+ name: Analyze
13
+ runs-on: ubuntu-latest
14
+ permissions:
15
+ actions: read
16
+ contents: read
17
+ security-events: write
18
+
19
+ strategy:
20
+ fail-fast: false
21
+ matrix:
22
+ language: ["javascript-typescript"]
23
+
24
+ steps:
25
+ - name: Checkout repository
26
+ uses: actions/checkout@v4
27
+
28
+ - name: Initialize CodeQL
29
+ uses: github/codeql-action/init@v3
30
+ with:
31
+ languages: ${{ matrix.language }}
32
+
33
+ - name: Autobuild
34
+ uses: github/codeql-action/autobuild@v3
35
+
36
+ - name: Perform CodeQL Analysis
37
+ uses: github/codeql-action/analyze@v3
38
+ with:
39
+ category: "/language:${{ matrix.language }}"
40
+
@@ -0,0 +1,38 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to a positive environment:
15
+
16
+ - Using welcoming and inclusive language
17
+ - Being respectful of differing viewpoints and experiences
18
+ - Gracefully accepting constructive criticism
19
+ - Focusing on what is best for the community
20
+ - Showing empathy towards other community members
21
+
22
+ Examples of unacceptable behavior:
23
+
24
+ - The use of sexualized language or imagery and unwelcome sexual attention
25
+ - Trolling, insulting or derogatory comments, and personal or political attacks
26
+ - Public or private harassment
27
+ - Publishing others' private information without explicit permission
28
+
29
+ ## Enforcement
30
+
31
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
32
+ reported to the project team at **conduct@elvatis.com**. All complaints will
33
+ be reviewed and investigated promptly and fairly.
34
+
35
+ ## Attribution
36
+
37
+ This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org),
38
+ version 2.1, available at https://www.contributor-covenant.org/version/2/1/code_of_conduct/
package/CONTRIBUTING.md CHANGED
@@ -1,134 +1,23 @@
1
- # Contributing & Release Checklist
1
+ # Contributing
2
2
 
3
- ## 🚨 Pflicht-Workflow vor jedem Release
3
+ Thanks for your interest in contributing!
4
4
 
5
- **Kein Publish ohne erfolgreichen `/bridge-status` Test!**
5
+ ## Getting Started
6
6
 
7
- ### 1. Lint + Build
7
+ 1. Fork the repository and create a feature branch from `main`.
8
+ 2. Install dependencies (if applicable): `npm ci`
9
+ 3. Run tests (if applicable): `npm test`
10
+ 4. Keep changes focused and small.
8
11
 
9
- ```bash
10
- npm run lint # ESLint — 0 errors required, warnings ok
11
- npm run build # Exit 0 erwartet — TS-Fehler sind ok (--noEmitOnError false), aber Exit != 0 blockiert
12
- ```
12
+ ## Pull Request Process
13
13
 
14
- ### 2. Gateway neu starten
14
+ 1. Open a Pull Request against `main` with a clear description.
15
+ 2. Link any relevant issues.
16
+ 3. Ensure tests pass and documentation is updated.
15
17
 
16
- ```bash
17
- openclaw gateway restart
18
- # oder via Chat: gateway restart
19
- ```
18
+ ## Code Style
20
19
 
21
- ### 3. Smoke Tests (alle müssen grün sein)
20
+ - Follow existing patterns in the codebase.
21
+ - No em dashes in comments or documentation.
22
22
 
23
- ```
24
- /bridge-status → Grok ✅ + Gemini ✅ (beide connected, nicht "not connected")
25
- /cli-test → CLI bridge OK, Latency < 10s
26
- /grok-status → valid (Cookie-Expiry prüfen)
27
- /gemini-status → valid (Cookie-Expiry prüfen)
28
- ```
29
-
30
- **Erst wenn alle Tests grün sind → publishen!**
31
-
32
- ### 4. Publish (Reihenfolge einhalten)
33
-
34
- ```bash
35
- # 1. Version bump in package.json + openclaw.plugin.json (beide!)
36
- # 2. Git commit + tag
37
- git add package.json openclaw.plugin.json
38
- git commit -m "chore: bump to vX.Y.Z — <kurze Beschreibung>"
39
- git tag vX.Y.Z
40
- git push origin main vX.Y.Z
41
-
42
- # 3. GitHub Release erstellen (Tag ≠ Release!)
43
- gh release create vX.Y.Z --title "vX.Y.Z — <Titel>" --notes "<Notes>" --latest
44
-
45
- # 4. npm publish
46
- npm publish --access public
47
-
48
- # 5. ClawHub publish (aus tmp-Dir, nicht direkt aus Repo)
49
- TMPDIR=$(mktemp -d)
50
- rsync -a --exclude='node_modules' --exclude='.git' --exclude='dist' \
51
- --exclude='package-lock.json' --exclude='test' ./ "$TMPDIR/"
52
- clawhub publish "$TMPDIR" --slug openclaw-cli-bridge-elvatis --version X.Y.Z \
53
- --tags "latest" --changelog "<Changelog>"
54
- ```
55
-
56
- > ⚠️ **ClawHub Bug (CLI v0.7.0):** `acceptLicenseTerms: invalid value` — Workaround: `publish.js` vor dem Publish patchen und danach zurücksetzen. Details in AGENTS.md / MEMORY.md des Workspaces.
57
-
58
- ---
59
-
60
- ## 🚨 Doku-Regel (PFLICHT)
61
-
62
- **Wenn ein Feature hinzukommt, geändert oder entfernt wird → SOFORT in ALLEN Doku-Dateien aktualisieren.**
63
-
64
- Gilt für: `README.md`, `SKILL.md`, `CONTRIBUTING.md`, `openclaw.plugin.json`, ClawHub, npm, GitHub.
65
-
66
- **Konkret für Slash Commands:**
67
- - Neuer Command (`/cli-xyz`) → sofort in README Utility-Tabelle + ASCII-Beispielblock eintragen
68
- - Command entfernt → sofort aus README + SKILL.md entfernen, nicht beim nächsten Release
69
- - Command umbenannt → beide Stellen gleichzeitig ändern
70
-
71
- **Tested Badge:**
72
- - Neues Feature getestet → sofort `✅ Tested` Badge in README setzen
73
-
74
- Kein "machen wir beim nächsten Release" — immer sofort, im gleichen Commit.
75
-
76
- ---
77
-
78
- ## Versionsstellen — alle prüfen vor Release
79
-
80
- ```bash
81
- grep -rn "X\.Y\.Z\|version" \
82
- --include="*.md" --include="*.json" \
83
- --exclude-dir=node_modules --exclude-dir=dist --exclude-dir=.git \
84
- | grep -i "version"
85
- ```
86
-
87
- Typische Stellen:
88
- - `package.json` → `"version": "..."` (Hauptquelle — `index.ts` liest automatisch daraus)
89
- - `openclaw.plugin.json` → `"version": "..."`
90
- - `README.md` → `**Current version:** ...` (falls vorhanden)
91
-
92
- > **Seit v1.9.0:** `index.ts` liest die Version automatisch aus `package.json` — kein manuelles Sync mehr nötig für die Runtime-Version.
93
-
94
- ---
95
-
96
- ## Breaking Changes
97
-
98
- Bei Breaking Changes (Major oder entfernte Commands):
99
- - Version-Bump auf nächste **Minor** (z.B. 1.4.x → 1.5.0)
100
- - GitHub Release Notes: `## ⚠️ Breaking Change` Sektion
101
- - README Changelog: Was wurde entfernt + warum
102
- - `/bridge-status` muss die entfernten Provider NICHT mehr zeigen
103
-
104
- ---
105
-
106
- ## TS-Build-Fehler
107
-
108
- Die folgenden TS-Fehler sind bekannt und ignorierbar (kein Runtime-Problem):
109
- - `TS2307: Cannot find module 'openclaw/plugin-sdk'` — Typ-Deklarationen fehlen in npm-Paket
110
- - `TS2339: Property 'handler' does not exist on type 'unknown'` — folgt aus TS2307
111
- - `TS7006: Parameter implicitly has 'any' type` — minor, kein Effekt
112
-
113
- Build läuft mit `--noEmitOnError false` durch. `npm run build` → Exit 0 ist das Kriterium, nicht null TS-Fehler.
114
-
115
- ---
116
-
117
- ## Cookie Expiry Store (seit v1.9.0)
118
-
119
- Cookie-Expiry-Daten werden jetzt in **einer** Datei gespeichert:
120
- - `~/.openclaw/cookie-expiry.json` — enthält alle 4 Provider (grok, gemini, claude, chatgpt)
121
-
122
- Legacy-Dateien (`grok-cookie-expiry.json`, `gemini-cookie-expiry.json`, etc.) werden beim ersten Start automatisch migriert und gelöscht.
123
-
124
- ---
125
-
126
- ## Model Fallback Chain (seit v1.9.0)
127
-
128
- Wenn ein CLI-Modell fehlschlägt (Timeout, Fehler), wird automatisch ein leichteres Modell versucht:
129
- - `gemini-2.5-pro` → `gemini-2.5-flash`
130
- - `gemini-3-pro-preview` → `gemini-3-flash-preview`
131
- - `claude-opus-4-6` → `claude-sonnet-4-6`
132
- - `claude-sonnet-4-6` → `claude-haiku-4-5`
133
-
134
- Die Response enthält das tatsächlich verwendete Modell im `model`-Feld.
23
+ For major changes, open an issue first to discuss design and scope.
package/LICENSE ADDED
@@ -0,0 +1,216 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
203
+
204
+ Copyright 2026 Elvatis - Emre Kohler
205
+
206
+ Licensed under the Apache License, Version 2.0 (the "License");
207
+ you may not use this file except in compliance with the License.
208
+ You may obtain a copy of the License at
209
+
210
+ http://www.apache.org/licenses/LICENSE-2.0
211
+
212
+ Unless required by applicable law or agreed to in writing, software
213
+ distributed under the License is distributed on an "AS IS" BASIS,
214
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
215
+ See the License for the specific language governing permissions and
216
+ limitations under the License.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # openclaw-cli-bridge-elvatis
2
2
 
3
- > OpenClaw plugin that bridges locally installed AI CLIs (Codex, Gemini, Claude Code) as model providers — with slash commands for instant model switching, restore, health testing, and model listing.
3
+ > OpenClaw plugin that bridges locally installed AI CLIs (Codex, Gemini, Claude Code, OpenCode, Pi) as model providers — with slash commands for instant model switching, restore, health testing, and model listing.
4
4
 
5
5
  **Current version:** `1.9.2`
6
6
 
@@ -25,6 +25,8 @@ Starts a local OpenAI-compatible HTTP proxy on `127.0.0.1:31337` and configures
25
25
  | `vllm/cli-claude/claude-sonnet-4-6` | `claude -p --output-format text --model claude-sonnet-4-6` (stdin) | ~2–4s |
26
26
  | `vllm/cli-claude/claude-opus-4-6` | `claude -p --output-format text --model claude-opus-4-6` (stdin) | ~3–5s |
27
27
  | `vllm/cli-claude/claude-haiku-4-5` | `claude -p --output-format text --model claude-haiku-4-5` (stdin) | ~1–3s |
28
+ | `vllm/opencode/default` | `opencode run "prompt"` (CLI arg) | varies |
29
+ | `vllm/pi/default` | `pi -p "prompt"` (CLI arg) | varies |
28
30
 
29
31
  ### Phase 3 — Slash commands
30
32
 
@@ -57,6 +59,18 @@ All commands use gateway-level `commands.allowFrom` for authorization (`requireA
57
59
  | `/cli-codex54` | `openai-codex/gpt-5.4` | May require upgraded OAuth scope |
58
60
  | `/cli-codex-mini` | `openai-codex/gpt-5.1-codex-mini` | ✅ Tested |
59
61
 
62
+ **OpenCode CLI** (via local proxy, prompt as CLI argument):
63
+
64
+ | Command | Model | Notes |
65
+ |---|---|---|
66
+ | `/cli-opencode` | `vllm/opencode/default` | Requires `opencode` CLI installed |
67
+
68
+ **Pi CLI** (via local proxy, prompt as `-p` flag):
69
+
70
+ | Command | Model | Notes |
71
+ |---|---|---|
72
+ | `/cli-pi` | `vllm/pi/default` | Requires `pi` CLI installed |
73
+
60
74
  **BitNet local inference** (via local proxy → llama-server on 127.0.0.1:8082, no API key):
61
75
 
62
76
  | Command | Model | Notes |
@@ -294,15 +308,20 @@ OpenClaw agent
294
308
 
295
309
  └─ vllm/cli-gemini/* ─┐
296
310
  vllm/cli-claude/* ─┤─► localhost:31337 (openclaw-cli-bridge proxy)
297
- ├─ cli-gemini/* → gemini -m <model> -p ""
298
- │ stdin=prompt, cwd=/tmp
311
+ vllm/opencode/* ─┤ ├─ cli-gemini/* → gemini -m <model> -p ""
312
+ vllm/pi/* ─┘ │ stdin=prompt, cwd=/tmp
299
313
  │ │ (neutral cwd prevents agentic mode)
300
- └─ cli-claude/* → claude -p --model <model>
301
- stdin=prompt
314
+ ├─ cli-claude/* → claude -p --model <model>
315
+ stdin=prompt
316
+ │ ├─ opencode/* → opencode run "prompt"
317
+ │ │ prompt as CLI arg
318
+ │ └─ pi/* → pi -p "prompt"
319
+ │ prompt as -p flag
302
320
 
303
321
  Slash commands (requireAuth=false, gateway commands.allowFrom is the auth layer):
304
322
  /cli-sonnet|opus|haiku|gemini|gemini-flash|gemini3|gemini3-flash
305
323
  /cli-codex|codex-spark|codex52|codex54|codex-mini
324
+ /cli-opencode|cli-pi
306
325
  └─► saves current model → ~/.openclaw/cli-bridge-state.json
307
326
  └─► openclaw models set <model>
308
327