oh-my-opencode 2.1.7 → 2.2.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.ja.md +84 -17
- package/README.ko.md +84 -17
- package/README.md +129 -18
- package/dist/agents/utils.d.ts +1 -1
- package/dist/features/claude-code-session-state/index.d.ts +0 -2
- package/dist/features/claude-code-session-state/state.d.ts +0 -9
- package/dist/hooks/keyword-detector/index.d.ts +0 -6
- package/dist/index.js +142 -220
- package/package.json +1 -5
- package/dist/features/claude-code-session-state/detector.d.ts +0 -1
- package/dist/features/claude-code-session-state/types.d.ts +0 -7
- package/dist/features/terminal/index.d.ts +0 -1
- package/dist/features/terminal/title.d.ts +0 -13
package/README.ja.md
CHANGED
|
@@ -150,15 +150,42 @@ Windows から Linux に初めて乗り換えた時のこと、自分の思い
|
|
|
150
150
|
### ステップ 0: セットアップについてユーザーに尋ねる
|
|
151
151
|
|
|
152
152
|
OpenCode は様々なモデルをサポートしており、当プラグインは様々な最先端 LLM の使用を提案しています。そのため、ユーザーに以下の質問をする必要があります:
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
153
|
+
|
|
154
|
+
1. **Claude Pro/Max のサブスクリプションをお持ちですか?** お持ちでない場合、メインオーケストレーターモデルとして 'opencode/big-pickle' (GLM 4.6 として知られる) を使用することになります (非推奨)。
|
|
155
|
+
- ユーザーが**「はい」**と答えた場合、ToDo 追加: "ユーザーの Claude Pro/Max 認証設定"
|
|
156
|
+
- ユーザーが**「いいえ」**と答えた場合、`~/.config/opencode/oh-my-opencode.json` に以下を保存:
|
|
157
|
+
```json
|
|
158
|
+
{
|
|
159
|
+
"agents": {
|
|
160
|
+
"OmO": { "model": "opencode/big-pickle" },
|
|
161
|
+
"librarian": { "model": "opencode/big-pickle" }
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
2. **ChatGPT のサブスクリプションをお持ちですか?** お持ちでない場合、oracle エージェントに 'anthropic/claude-opus-4-5' を使用することになります。
|
|
167
|
+
- ユーザーが**「はい」**と答えた場合、ToDo 追加: "ユーザーの ChatGPT 認証設定"
|
|
168
|
+
- ユーザーが**「いいえ」**と答えた場合、`oh-my-opencode.json` に以下をマージ:
|
|
169
|
+
```json
|
|
170
|
+
{
|
|
171
|
+
"agents": {
|
|
172
|
+
"oracle": { "model": "anthropic/claude-opus-4-5" }
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
3. **Gemini モデルを統合しますか?** 統合しない場合、美しいデザインを享受できません。
|
|
178
|
+
- ユーザーが**「はい」**と答えた場合、ToDo 追加: "Google OAuth 設定"
|
|
179
|
+
- ユーザーが**「いいえ」**と答えた場合、`oh-my-opencode.json` に以下をマージ:
|
|
180
|
+
```json
|
|
181
|
+
{
|
|
182
|
+
"agents": {
|
|
183
|
+
"frontend-ui-ux-engineer": { "model": "anthropic/claude-opus-4-5" },
|
|
184
|
+
"document-writer": { "model": "anthropic/claude-opus-4-5" },
|
|
185
|
+
"multimodal-looker": { "model": "anthropic/claude-opus-4-5" }
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
```
|
|
162
189
|
|
|
163
190
|
### ステップ 1: OpenCode インストール確認
|
|
164
191
|
|
|
@@ -223,25 +250,52 @@ opencode auth login
|
|
|
223
250
|
|
|
224
251
|
#### 4.2 Google Gemini (Antigravity OAuth)
|
|
225
252
|
|
|
226
|
-
|
|
253
|
+
まず、opencode-antigravity-auth プラグインを追加します:
|
|
227
254
|
|
|
228
255
|
```json
|
|
229
256
|
{
|
|
230
|
-
"
|
|
257
|
+
"plugin": [
|
|
258
|
+
"oh-my-opencode",
|
|
259
|
+
"opencode-antigravity-auth@1.1.2"
|
|
260
|
+
]
|
|
231
261
|
}
|
|
232
262
|
```
|
|
233
263
|
|
|
264
|
+
#### 4.2.1 モデル設定
|
|
265
|
+
|
|
266
|
+
`opencode.json` に完全なモデル設定も構成する必要があります。
|
|
267
|
+
[opencode-antigravity-auth ドキュメント](https://github.com/NoeFabris/opencode-antigravity-auth)を読み、README から provider/models 設定をコピーして、ユーザーの既存のセットアップを壊さないよう慎重にマージしてください。
|
|
268
|
+
|
|
269
|
+
#### 4.2.2 oh-my-opencode エージェントモデルのオーバーライド
|
|
270
|
+
|
|
271
|
+
`opencode-antigravity-auth` プラグインは内蔵 Google auth と異なるモデル名を使用します。`oh-my-opencode.json`(または `.opencode/oh-my-opencode.json`)でエージェントモデルをオーバーライドし、内蔵 `google_auth` を無効化してください:
|
|
272
|
+
|
|
273
|
+
```json
|
|
274
|
+
{
|
|
275
|
+
"google_auth": false,
|
|
276
|
+
"agents": {
|
|
277
|
+
"frontend-ui-ux-engineer": { "model": "google/gemini-3-pro-high" },
|
|
278
|
+
"document-writer": { "model": "google/gemini-3-flash" },
|
|
279
|
+
"multimodal-looker": { "model": "google/gemini-2.5-flash" }
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
**利用可能なモデル名**: `google/gemini-3-pro-high`, `google/gemini-3-pro-medium`, `google/gemini-3-pro-low`, `google/gemini-3-flash`, `google/gemini-2.5-flash`, `google/gemini-2.5-flash-lite`, `google/claude-sonnet-4-5`, `google/claude-sonnet-4-5-thinking`, `google/claude-opus-4-5-thinking`, `google/gpt-oss-120b-medium`
|
|
285
|
+
|
|
234
286
|
その後、認証を行います:
|
|
235
287
|
|
|
236
288
|
```bash
|
|
237
289
|
opencode auth login
|
|
238
290
|
# Provider: Google を選択
|
|
239
291
|
# Login method: OAuth with Google (Antigravity) を選択
|
|
240
|
-
#
|
|
241
|
-
#
|
|
292
|
+
# ブラウザでサインイン完了(自動検出)
|
|
293
|
+
# オプション:マルチアカウントロードバランシング用に追加の Google アカウントを登録
|
|
242
294
|
# 成功を確認し、ユーザーに報告
|
|
243
295
|
```
|
|
244
296
|
|
|
297
|
+
**マルチアカウントロードバランシング**: プラグインは最大10個の Google アカウントをサポートします。1つのアカウントがレートリミットに達すると、自動的に次のアカウントに切り替わります。
|
|
298
|
+
|
|
245
299
|
#### 4.3 OpenAI (ChatGPT Plus/Pro)
|
|
246
300
|
|
|
247
301
|
まず、opencode-openai-codex-auth プラグインを追加します:
|
|
@@ -250,7 +304,7 @@ opencode auth login
|
|
|
250
304
|
{
|
|
251
305
|
"plugin": [
|
|
252
306
|
"oh-my-opencode",
|
|
253
|
-
"opencode-openai-codex-auth@4.1.
|
|
307
|
+
"opencode-openai-codex-auth@4.1.1"
|
|
254
308
|
]
|
|
255
309
|
}
|
|
256
310
|
```
|
|
@@ -559,15 +613,28 @@ Oh My OpenCode は以下の場所からフックを読み込んで実行しま
|
|
|
559
613
|
|
|
560
614
|
### Google Auth
|
|
561
615
|
|
|
562
|
-
|
|
616
|
+
**推奨**: 外部の [`opencode-antigravity-auth`](https://github.com/NoeFabris/opencode-antigravity-auth) プラグインを使用してください。マルチアカウントロードバランシング、より多くのモデル(Antigravity 経由の Claude を含む)、活発なメンテナンスを提供します。[インストール > Google Gemini](#42-google-gemini-antigravity-oauth) を参照。
|
|
617
|
+
|
|
618
|
+
`opencode-antigravity-auth` 使用時は内蔵 auth を無効化し、`oh-my-opencode.json` でエージェントモデルをオーバーライドしてください:
|
|
563
619
|
|
|
564
620
|
```json
|
|
565
621
|
{
|
|
566
|
-
"google_auth":
|
|
622
|
+
"google_auth": false,
|
|
623
|
+
"agents": {
|
|
624
|
+
"frontend-ui-ux-engineer": { "model": "google/gemini-3-pro-high" },
|
|
625
|
+
"document-writer": { "model": "google/gemini-3-flash" },
|
|
626
|
+
"multimodal-looker": { "model": "google/gemini-2.5-flash" }
|
|
627
|
+
}
|
|
567
628
|
}
|
|
568
629
|
```
|
|
569
630
|
|
|
570
|
-
|
|
631
|
+
**代替案**: 内蔵 Antigravity OAuth を有効化(単一アカウント、Gemini モデルのみ):
|
|
632
|
+
|
|
633
|
+
```json
|
|
634
|
+
{
|
|
635
|
+
"google_auth": true
|
|
636
|
+
}
|
|
637
|
+
```
|
|
571
638
|
|
|
572
639
|
### Agents
|
|
573
640
|
|
package/README.ko.md
CHANGED
|
@@ -147,15 +147,42 @@ OpenCode 가 낭만이 사라진것같은 오늘날의 시대에, 당신에게
|
|
|
147
147
|
### 0단계: 사용자에게 설정에 대해 물어보세요.
|
|
148
148
|
|
|
149
149
|
OpenCode는 다양한 모델을 지원하며, 이 플러그인은 다양한 프론티어 LLM 사용을 제안합니다. 따라서 사용자에게 다음 질문을 해야 합니다:
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
150
|
+
|
|
151
|
+
1. **Claude Pro/Max 구독이 있으신가요?** 그렇지 않다면 메인 오케스트레이터 모델로 'opencode/big-pickle'(GLM 4.6으로 알려짐)을 사용하게 됩니다 (권장하지 않음).
|
|
152
|
+
- 사용자가 **'예'**라고 답하면, 할 일 추가: "사용자 Claude Pro/Max 인증 설정"
|
|
153
|
+
- 사용자가 **'아니오'**라고 답하면, `~/.config/opencode/oh-my-opencode.json`에 다음을 저장:
|
|
154
|
+
```json
|
|
155
|
+
{
|
|
156
|
+
"agents": {
|
|
157
|
+
"OmO": { "model": "opencode/big-pickle" },
|
|
158
|
+
"librarian": { "model": "opencode/big-pickle" }
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
2. **ChatGPT 구독이 있으신가요?** 그렇지 않다면 oracle 에이전트에 'anthropic/claude-opus-4-5'를 사용하게 됩니다.
|
|
164
|
+
- 사용자가 **'예'**라고 답하면, 할 일 추가: "사용자 ChatGPT 인증 설정"
|
|
165
|
+
- 사용자가 **'아니오'**라고 답하면, `oh-my-opencode.json`에 다음을 병합:
|
|
166
|
+
```json
|
|
167
|
+
{
|
|
168
|
+
"agents": {
|
|
169
|
+
"oracle": { "model": "anthropic/claude-opus-4-5" }
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
3. **Gemini 모델을 통합하시겠습니까?** 그렇지 않다면 아름다운 디자인을 즐길 수 없습니다.
|
|
175
|
+
- 사용자가 **'예'**라고 답하면, 할 일 추가: "Google OAuth 설정"
|
|
176
|
+
- 사용자가 **'아니오'**라고 답하면, `oh-my-opencode.json`에 다음을 병합:
|
|
177
|
+
```json
|
|
178
|
+
{
|
|
179
|
+
"agents": {
|
|
180
|
+
"frontend-ui-ux-engineer": { "model": "anthropic/claude-opus-4-5" },
|
|
181
|
+
"document-writer": { "model": "anthropic/claude-opus-4-5" },
|
|
182
|
+
"multimodal-looker": { "model": "anthropic/claude-opus-4-5" }
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
```
|
|
159
186
|
|
|
160
187
|
### 1단계: OpenCode 설치 확인
|
|
161
188
|
|
|
@@ -220,25 +247,52 @@ opencode auth login
|
|
|
220
247
|
|
|
221
248
|
#### 4.2 Google Gemini (Antigravity OAuth)
|
|
222
249
|
|
|
223
|
-
먼저
|
|
250
|
+
먼저 opencode-antigravity-auth 플러그인 추가:
|
|
224
251
|
|
|
225
252
|
```json
|
|
226
253
|
{
|
|
227
|
-
"
|
|
254
|
+
"plugin": [
|
|
255
|
+
"oh-my-opencode",
|
|
256
|
+
"opencode-antigravity-auth@1.1.2"
|
|
257
|
+
]
|
|
228
258
|
}
|
|
229
259
|
```
|
|
230
260
|
|
|
261
|
+
#### 4.2.1 모델 설정
|
|
262
|
+
|
|
263
|
+
`opencode.json`에 전체 모델 설정도 구성해야 합니다.
|
|
264
|
+
[opencode-antigravity-auth 문서](https://github.com/NoeFabris/opencode-antigravity-auth)를 읽고, README에서 provider/models 설정을 복사하여, 사용자의 기존 셋업에 영향을 주지 않도록 신중하게 통합하세요.
|
|
265
|
+
|
|
266
|
+
#### 4.2.2 oh-my-opencode 에이전트 모델 오버라이드
|
|
267
|
+
|
|
268
|
+
`opencode-antigravity-auth` 플러그인은 내장 Google auth와 다른 모델 이름을 사용합니다. `oh-my-opencode.json` (또는 `.opencode/oh-my-opencode.json`)에서 에이전트 모델을 오버라이드하고, 내장 `google_auth`를 비활성화하세요:
|
|
269
|
+
|
|
270
|
+
```json
|
|
271
|
+
{
|
|
272
|
+
"google_auth": false,
|
|
273
|
+
"agents": {
|
|
274
|
+
"frontend-ui-ux-engineer": { "model": "google/gemini-3-pro-high" },
|
|
275
|
+
"document-writer": { "model": "google/gemini-3-flash" },
|
|
276
|
+
"multimodal-looker": { "model": "google/gemini-2.5-flash" }
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
**사용 가능한 모델 이름**: `google/gemini-3-pro-high`, `google/gemini-3-pro-medium`, `google/gemini-3-pro-low`, `google/gemini-3-flash`, `google/gemini-2.5-flash`, `google/gemini-2.5-flash-lite`, `google/claude-sonnet-4-5`, `google/claude-sonnet-4-5-thinking`, `google/claude-opus-4-5-thinking`, `google/gpt-oss-120b-medium`
|
|
282
|
+
|
|
231
283
|
그 후 인증:
|
|
232
284
|
|
|
233
285
|
```bash
|
|
234
286
|
opencode auth login
|
|
235
287
|
# Provider: Google 선택
|
|
236
288
|
# Login method: OAuth with Google (Antigravity) 선택
|
|
237
|
-
#
|
|
238
|
-
#
|
|
289
|
+
# 브라우저에서 로그인 완료 (자동 감지)
|
|
290
|
+
# 선택사항: 멀티 계정 로드밸런싱을 위해 추가 Google 계정 등록
|
|
239
291
|
# 진짜 완료되었음을 검증하고 사용자에게 안내
|
|
240
292
|
```
|
|
241
293
|
|
|
294
|
+
**멀티 계정 로드밸런싱**: 플러그인은 최대 10개의 Google 계정을 지원합니다. 한 계정이 레이트 리밋에 걸리면 자동으로 다음 계정으로 전환됩니다.
|
|
295
|
+
|
|
242
296
|
#### 4.3 OpenAI (ChatGPT Plus/Pro)
|
|
243
297
|
|
|
244
298
|
먼저 opencode-openai-codex-auth 플러그인 추가:
|
|
@@ -247,7 +301,7 @@ opencode auth login
|
|
|
247
301
|
{
|
|
248
302
|
"plugin": [
|
|
249
303
|
"oh-my-opencode",
|
|
250
|
-
"opencode-openai-codex-auth@4.1.
|
|
304
|
+
"opencode-openai-codex-auth@4.1.1"
|
|
251
305
|
]
|
|
252
306
|
}
|
|
253
307
|
```
|
|
@@ -553,15 +607,28 @@ Schema 자동 완성이 지원됩니다:
|
|
|
553
607
|
|
|
554
608
|
### Google Auth
|
|
555
609
|
|
|
556
|
-
|
|
610
|
+
**권장**: 외부 [`opencode-antigravity-auth`](https://github.com/NoeFabris/opencode-antigravity-auth) 플러그인을 사용하세요. 멀티 계정 로드밸런싱, 더 많은 모델(Antigravity를 통한 Claude 포함), 활발한 유지보수를 제공합니다. [설치 > Google Gemini](#42-google-gemini-antigravity-oauth) 참조.
|
|
611
|
+
|
|
612
|
+
`opencode-antigravity-auth` 사용 시 내장 auth를 비활성화하고 `oh-my-opencode.json`에서 에이전트 모델을 오버라이드하세요:
|
|
557
613
|
|
|
558
614
|
```json
|
|
559
615
|
{
|
|
560
|
-
"google_auth":
|
|
616
|
+
"google_auth": false,
|
|
617
|
+
"agents": {
|
|
618
|
+
"frontend-ui-ux-engineer": { "model": "google/gemini-3-pro-high" },
|
|
619
|
+
"document-writer": { "model": "google/gemini-3-flash" },
|
|
620
|
+
"multimodal-looker": { "model": "google/gemini-2.5-flash" }
|
|
621
|
+
}
|
|
561
622
|
}
|
|
562
623
|
```
|
|
563
624
|
|
|
564
|
-
|
|
625
|
+
**대안**: 내장 Antigravity OAuth 활성화 (단일 계정, Gemini 모델만):
|
|
626
|
+
|
|
627
|
+
```json
|
|
628
|
+
{
|
|
629
|
+
"google_auth": true
|
|
630
|
+
}
|
|
631
|
+
```
|
|
565
632
|
|
|
566
633
|
### Agents
|
|
567
634
|
|
package/README.md
CHANGED
|
@@ -58,6 +58,7 @@ No stupid token consumption massive subagents here. No bloat tools here.
|
|
|
58
58
|
- [Verify the setup](#verify-the-setup)
|
|
59
59
|
- [Say 'Congratulations! 🎉' to the user](#say-congratulations--to-the-user)
|
|
60
60
|
- [Too Complicated?](#too-complicated)
|
|
61
|
+
- [Uninstallation](#uninstallation)
|
|
61
62
|
- [Features](#features)
|
|
62
63
|
- [Agents: Your Teammates](#agents-your-teammates)
|
|
63
64
|
- [Background Agents: Work Like a Team](#background-agents-work-like-a-team)
|
|
@@ -158,7 +159,10 @@ If you don't want all this, as mentioned, you can just pick and choose specific
|
|
|
158
159
|
|
|
159
160
|
### For Humans
|
|
160
161
|
|
|
161
|
-
Let the LLM Agent handle the grunt work. Paste this
|
|
162
|
+
Let the LLM Agent handle the grunt work. Paste this into a fresh opencode session:
|
|
163
|
+
```
|
|
164
|
+
Install and configure by following the instructions here https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/refs/heads/master/README.md
|
|
165
|
+
```
|
|
162
166
|
|
|
163
167
|
### For LLM Agents
|
|
164
168
|
|
|
@@ -172,15 +176,42 @@ follow these steps:
|
|
|
172
176
|
### Step 0: Ask user about the setup.
|
|
173
177
|
|
|
174
178
|
Since OpenCode Supports various models, and our plugin suggests various frontier LLMs. Thus, you must ask user, following questions:
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
179
|
+
|
|
180
|
+
1. **Do you have a Claude Pro/Max Subscription?** Otherwise, we'll use 'opencode/big-pickle' (known for GLM 4.6) as a main orchestrator model (not recommended)
|
|
181
|
+
- If user said **yes**, add ToDo: "Setup user Claude Pro/Max Auth"
|
|
182
|
+
- If user said **no**, merge the following to `~/.config/opencode/oh-my-opencode.json`:
|
|
183
|
+
```json
|
|
184
|
+
{
|
|
185
|
+
"agents": {
|
|
186
|
+
"OmO": { "model": "opencode/big-pickle" },
|
|
187
|
+
"librarian": { "model": "opencode/big-pickle" }
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
2. **Do you have a ChatGPT Subscription?** Otherwise, we'll use 'anthropic/claude-opus-4-5' with 32k thinking option for oracle agent.
|
|
193
|
+
- If user said **yes**, add ToDo: "Setup user ChatGPT Auth"
|
|
194
|
+
- If user said **no**, merge the following to `oh-my-opencode.json`:
|
|
195
|
+
```json
|
|
196
|
+
{
|
|
197
|
+
"agents": {
|
|
198
|
+
"oracle": { "model": "anthropic/claude-opus-4-5" }
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
3. **Will you integrate Gemini models?** Otherwise, you cannot enjoy the beautiful design.
|
|
204
|
+
- If user said **yes**, add ToDo: "Setup Google OAuth"
|
|
205
|
+
- If user said **no**, merge the following to `oh-my-opencode.json`:
|
|
206
|
+
```json
|
|
207
|
+
{
|
|
208
|
+
"agents": {
|
|
209
|
+
"frontend-ui-ux-engineer": { "model": "anthropic/claude-opus-4-5" },
|
|
210
|
+
"document-writer": { "model": "anthropic/claude-opus-4-5" },
|
|
211
|
+
"multimodal-looker": { "model": "anthropic/claude-opus-4-5" }
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
```
|
|
184
215
|
|
|
185
216
|
### Step 1: Install OpenCode, if not
|
|
186
217
|
|
|
@@ -249,17 +280,52 @@ opencode auth login
|
|
|
249
280
|
|
|
250
281
|
#### Google Gemini (Antigravity OAuth)
|
|
251
282
|
|
|
283
|
+
First, add the opencode-antigravity-auth plugin:
|
|
284
|
+
|
|
285
|
+
```json
|
|
286
|
+
{
|
|
287
|
+
"plugin": [
|
|
288
|
+
"oh-my-opencode",
|
|
289
|
+
"opencode-antigravity-auth@1.1.2"
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
##### Model Configuration
|
|
295
|
+
|
|
296
|
+
You'll also need full model settings in `opencode.json`.
|
|
297
|
+
Read the [opencode-antigravity-auth documentation](https://github.com/NoeFabris/opencode-antigravity-auth), copy provider/models config from the README, and merge carefully to avoid breaking the user's existing setup.
|
|
298
|
+
|
|
299
|
+
##### oh-my-opencode Agent Model Override
|
|
300
|
+
|
|
301
|
+
The `opencode-antigravity-auth` plugin uses different model names than the built-in Google auth. Override the agent models in `oh-my-opencode.json` (or `.opencode/oh-my-opencode.json`) and disable the built-in `google_auth`:
|
|
302
|
+
|
|
303
|
+
```json
|
|
304
|
+
{
|
|
305
|
+
"google_auth": false,
|
|
306
|
+
"agents": {
|
|
307
|
+
"frontend-ui-ux-engineer": { "model": "google/gemini-3-pro-high" },
|
|
308
|
+
"document-writer": { "model": "google/gemini-3-flash" },
|
|
309
|
+
"multimodal-looker": { "model": "google/gemini-2.5-flash" }
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
**Available model names**: `google/gemini-3-pro-high`, `google/gemini-3-pro-medium`, `google/gemini-3-pro-low`, `google/gemini-3-flash`, `google/gemini-2.5-flash`, `google/gemini-2.5-flash-lite`, `google/claude-sonnet-4-5`, `google/claude-sonnet-4-5-thinking`, `google/claude-opus-4-5-thinking`, `google/gpt-oss-120b-medium`
|
|
315
|
+
|
|
252
316
|
Then authenticate:
|
|
253
317
|
|
|
254
318
|
```bash
|
|
255
319
|
opencode auth login
|
|
256
|
-
# Interactive Terminal:
|
|
257
|
-
# Interactive Terminal:
|
|
258
|
-
#
|
|
259
|
-
#
|
|
320
|
+
# Interactive Terminal: Provider: Select Google
|
|
321
|
+
# Interactive Terminal: Login method: Select OAuth with Google (Antigravity)
|
|
322
|
+
# Complete sign-in in browser (auto-detected)
|
|
323
|
+
# Optional: Add more Google accounts for multi-account load balancing
|
|
260
324
|
# Verify success and confirm with user
|
|
261
325
|
```
|
|
262
326
|
|
|
327
|
+
**Multi-Account Load Balancing**: The plugin supports up to 10 Google accounts. When one account hits rate limits, it automatically switches to the next available account.
|
|
328
|
+
|
|
263
329
|
#### OpenAI (ChatGPT Plus/Pro)
|
|
264
330
|
|
|
265
331
|
First, add the opencode-openai-codex-auth plugin:
|
|
@@ -268,7 +334,7 @@ First, add the opencode-openai-codex-auth plugin:
|
|
|
268
334
|
{
|
|
269
335
|
"plugin": [
|
|
270
336
|
"oh-my-opencode",
|
|
271
|
-
"opencode-openai-codex-auth@4.1.
|
|
337
|
+
"opencode-openai-codex-auth@4.1.1"
|
|
272
338
|
]
|
|
273
339
|
}
|
|
274
340
|
```
|
|
@@ -338,6 +404,38 @@ That's it. The agent will figure out the rest and handle everything automaticall
|
|
|
338
404
|
|
|
339
405
|
</details>
|
|
340
406
|
|
|
407
|
+
## Uninstallation
|
|
408
|
+
|
|
409
|
+
To remove oh-my-opencode:
|
|
410
|
+
|
|
411
|
+
1. **Remove the plugin from your OpenCode config**
|
|
412
|
+
|
|
413
|
+
Edit `~/.config/opencode/opencode.json` (or `opencode.jsonc`) and remove `"oh-my-opencode"` from the `plugin` array:
|
|
414
|
+
|
|
415
|
+
```bash
|
|
416
|
+
# Using jq
|
|
417
|
+
jq '.plugin = [.plugin[] | select(. != "oh-my-opencode")]' \
|
|
418
|
+
~/.config/opencode/opencode.json > /tmp/oc.json && \
|
|
419
|
+
mv /tmp/oc.json ~/.config/opencode/opencode.json
|
|
420
|
+
```
|
|
421
|
+
|
|
422
|
+
2. **Remove configuration files (optional)**
|
|
423
|
+
|
|
424
|
+
```bash
|
|
425
|
+
# Remove user config
|
|
426
|
+
rm -f ~/.config/opencode/oh-my-opencode.json
|
|
427
|
+
|
|
428
|
+
# Remove project config (if exists)
|
|
429
|
+
rm -f .opencode/oh-my-opencode.json
|
|
430
|
+
```
|
|
431
|
+
|
|
432
|
+
3. **Verify removal**
|
|
433
|
+
|
|
434
|
+
```bash
|
|
435
|
+
opencode --version
|
|
436
|
+
# Plugin should no longer be loaded
|
|
437
|
+
```
|
|
438
|
+
|
|
341
439
|
|
|
342
440
|
## Features
|
|
343
441
|
|
|
@@ -574,15 +672,28 @@ Schema autocomplete supported:
|
|
|
574
672
|
|
|
575
673
|
### Google Auth
|
|
576
674
|
|
|
577
|
-
|
|
675
|
+
**Recommended**: Use the external [`opencode-antigravity-auth`](https://github.com/NoeFabris/opencode-antigravity-auth) plugin. It provides multi-account load balancing, more models (including Claude via Antigravity), and active maintenance. See [Installation > Google Gemini](#google-gemini-antigravity-oauth).
|
|
676
|
+
|
|
677
|
+
When using `opencode-antigravity-auth`, disable the built-in auth and override agent models in `oh-my-opencode.json`:
|
|
578
678
|
|
|
579
679
|
```json
|
|
580
680
|
{
|
|
581
|
-
"google_auth":
|
|
681
|
+
"google_auth": false,
|
|
682
|
+
"agents": {
|
|
683
|
+
"frontend-ui-ux-engineer": { "model": "google/gemini-3-pro-high" },
|
|
684
|
+
"document-writer": { "model": "google/gemini-3-flash" },
|
|
685
|
+
"multimodal-looker": { "model": "google/gemini-2.5-flash" }
|
|
686
|
+
}
|
|
582
687
|
}
|
|
583
688
|
```
|
|
584
689
|
|
|
585
|
-
|
|
690
|
+
**Alternative**: Enable built-in Antigravity OAuth (single account, Gemini models only):
|
|
691
|
+
|
|
692
|
+
```json
|
|
693
|
+
{
|
|
694
|
+
"google_auth": true
|
|
695
|
+
}
|
|
696
|
+
```
|
|
586
697
|
|
|
587
698
|
### Agents
|
|
588
699
|
|
package/dist/agents/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
2
|
import type { BuiltinAgentName, AgentOverrides } from "./types";
|
|
3
3
|
export declare function createEnvContext(directory: string): string;
|
|
4
|
-
export declare function createBuiltinAgents(disabledAgents?: BuiltinAgentName[], agentOverrides?: AgentOverrides, directory?: string): Record<string, AgentConfig>;
|
|
4
|
+
export declare function createBuiltinAgents(disabledAgents?: BuiltinAgentName[], agentOverrides?: AgentOverrides, directory?: string, systemDefaultModel?: string): Record<string, AgentConfig>;
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import type { SessionErrorState, SessionInterruptState } from "./types";
|
|
2
|
-
export declare const sessionErrorState: Map<string, SessionErrorState>;
|
|
3
|
-
export declare const sessionInterruptState: Map<string, SessionInterruptState>;
|
|
4
1
|
export declare const subagentSessions: Set<string>;
|
|
5
|
-
export declare const sessionFirstMessageProcessed: Set<string>;
|
|
6
|
-
export declare let currentSessionID: string | undefined;
|
|
7
|
-
export declare let currentSessionTitle: string | undefined;
|
|
8
2
|
export declare let mainSessionID: string | undefined;
|
|
9
|
-
export declare function setCurrentSession(id: string | undefined, title: string | undefined): void;
|
|
10
3
|
export declare function setMainSession(id: string | undefined): void;
|
|
11
|
-
export declare function getCurrentSessionID(): string | undefined;
|
|
12
|
-
export declare function getCurrentSessionTitle(): string | undefined;
|
|
13
4
|
export declare function getMainSessionID(): string | undefined;
|