You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-21Lines changed: 9 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,34 +64,22 @@ Rules:
64
64
Steps:
65
65
1. Validate tools:
66
66
- Run: opencode --version
67
-
68
-
2. Locate OpenCode config:
69
-
- Run: CONFIG=$(find "$HOME/.config" -name "opencode.json*" -type f 2>/dev/null | head -1)
70
-
- Verify: echo "Found config: $CONFIG"
71
-
72
-
3. Update OpenCode config:
73
-
- Read current config: cat "$CONFIG"
74
-
- If "plugin" array doesn't exist, add it after "$schema":
75
-
{"$schema": "...", "plugin": []}
67
+
2. Update OpenCode config:
68
+
- File: ~/.config/opencode/opencode.json or ~/.config/opencode/opencode.jsonc
76
69
- Ensure the plugin array includes: "@itssimplereally/opencode-kimicode-auth@latest"
70
+
- If no plugin array exists, create it under `$schema` key as `"plugin": ["@itssimplereally/opencode-kimicode-auth@latest"]`
77
71
- Preserve all other existing plugin entries.
78
-
- Write updated config back to "$CONFIG"
79
-
80
-
4. Verify OpenCode starts cleanly:
72
+
3. Verify OpenCode starts cleanly:
81
73
- Run: opencode auth list
82
74
- If plugin install/import errors occur, fix the plugin entry first.
83
-
84
-
5. **Do not attempt interactive auth in this session.**
85
-
- Ask the human to run: opencode auth login
86
-
- Ask the human to choose provider "Moonshot AI" and method "OAuth (Kimi Code / kimi-cli)".
75
+
4. **Do not attempt interactive auth in this session.**
76
+
- Ask the human to run, cleanly formatted: `opencode auth login` then select "Moonshot AI" then "OAuth (Kimi Code / kimi-cli)" and they can add multiple accounts for rotation. **Logout in the browser after authorization of each account before adding the next.**
87
77
- Wait for the human to confirm they completed authorization.
88
-
89
-
6. After human confirmation, verify:
78
+
5. After human confirmation, verify:
90
79
- Run: opencode auth list
91
80
- Run: opencode models moonshotai
92
-
- Confirm output includes moonshotai/kimicode-kimi-k2.5 and moonshotai/kimicode-kimi-k2.5-thinking.
93
-
94
-
7. Return a concise report of changes and verification results.
81
+
- Confirm output includes `moonshotai/kimicode-kimi-k2.5` and `moonshotai/kimicode-kimi-k2.5-thinking`.
82
+
6. Return a concise report of changes and verification results.
0 commit comments