oh-my-opencode-slim 0.3.4 → 0.3.5

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.
Files changed (2) hide show
  1. package/README.md +128 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -36,7 +36,7 @@
36
36
  - [Quota Tool](#quota-tool)
37
37
  - [Background Tasks](#background-tasks)
38
38
  - [LSP Tools](#lsp-tools)
39
- - [Code Search Tools](#code-search-tools)
39
+ - [Code Search Tools](#code-search-tools)
40
40
  - [🧩 **Skills**](#-skills)
41
41
  - [Playwright Integration](#playwright-integration)
42
42
  - [🔌 **MCP Servers**](#mcp-servers)
@@ -45,6 +45,133 @@
45
45
 
46
46
  ---
47
47
 
48
+ ## Installation
49
+
50
+ ### For Humans
51
+
52
+ Run the interactive installer:
53
+
54
+ ```bash
55
+ bunx oh-my-opencode-slim install
56
+ ```
57
+
58
+ Or use non-interactive mode:
59
+
60
+ ```bash
61
+ bunx oh-my-opencode-slim install --no-tui --antigravity=yes --openai=yes --cerebras=no
62
+ ```
63
+
64
+ **Alternative: Ask any coding agent**
65
+
66
+ Paste this into Claude Code, AmpCode, Cursor, or any coding agent:
67
+
68
+ ```
69
+ Install and configure by following the instructions here:
70
+ https://raw.githubusercontent.com/alvinunreal/oh-my-opencode-slim/refs/heads/master/README.md
71
+ ```
72
+
73
+ ### For LLM Agents
74
+
75
+ <details>
76
+ <summary>Instructions for LLM Agents (click to expand)</summary>
77
+
78
+ If you're an LLM Agent helping set up oh-my-opencode-slim, follow these steps.
79
+
80
+ ---
81
+
82
+ #### Step 1: Check OpenCode Installation
83
+
84
+ ```bash
85
+ opencode --version
86
+ ```
87
+
88
+ If not installed, direct the user to https://opencode.ai/docs first.
89
+
90
+ ---
91
+
92
+ #### Step 2: Ask About Provider Access
93
+
94
+ Ask these questions **one at a time**, waiting for responses:
95
+
96
+ 1. "Do you have an **Antigravity** subscription?" *(Provides Claude + Gemini via `google/` prefix)*
97
+ 2. "Do you have access to **OpenAI** API?" *(Enables `openai/` models)*
98
+ 3. "Do you have access to **Cerebras** API?" *(Enables `cerebras/` for fast exploration)*
99
+
100
+ ---
101
+
102
+ #### Step 3: Run the Installer
103
+
104
+ Based on answers, run:
105
+
106
+ ```bash
107
+ bunx oh-my-opencode-slim install --no-tui --antigravity=<yes|no> --openai=<yes|no> --cerebras=<yes|no>
108
+ ```
109
+
110
+ **Examples:**
111
+ ```bash
112
+ # Antigravity + OpenAI
113
+ bunx oh-my-opencode-slim install --no-tui --antigravity=yes --openai=yes --cerebras=no
114
+
115
+ # OpenAI only
116
+ bunx oh-my-opencode-slim install --no-tui --antigravity=no --openai=yes --cerebras=no
117
+
118
+ # All providers
119
+ bunx oh-my-opencode-slim install --no-tui --antigravity=yes --openai=yes --cerebras=yes
120
+ ```
121
+
122
+ The installer automatically:
123
+ - Adds the plugin to `~/.config/opencode/opencode.json`
124
+ - Adds `opencode-antigravity-auth` plugin (if Antigravity enabled)
125
+ - Configures Google provider with model definitions
126
+ - Generates agent model mappings in `~/.config/opencode/oh-my-opencode-slim.json`
127
+
128
+ ---
129
+
130
+ #### Step 4: Authentication
131
+
132
+ After installation, guide the user:
133
+
134
+ **For Antigravity:**
135
+ ```bash
136
+ opencode auth login
137
+ # Select: Google → OAuth with Google (Antigravity)
138
+ ```
139
+
140
+ **For OpenAI:**
141
+ ```bash
142
+ export OPENAI_API_KEY="sk-..."
143
+ ```
144
+
145
+ **For Cerebras:**
146
+ ```bash
147
+ export CEREBRAS_API_KEY="..."
148
+ ```
149
+
150
+ ---
151
+
152
+ #### Step 5: Verify
153
+
154
+ ```bash
155
+ opencode
156
+ ```
157
+
158
+ ---
159
+
160
+ #### Troubleshooting
161
+
162
+ If the installer fails, check the expected config format:
163
+ ```bash
164
+ bunx oh-my-opencode-slim install --help
165
+ ```
166
+
167
+ Then manually create the config files at:
168
+ - `~/.config/opencode/opencode.json`
169
+ - `~/.config/opencode/oh-my-opencode-slim.json`
170
+
171
+ </details>
172
+
173
+ ---
174
+
48
175
  ## 🏗️ Architecture & Flow
49
176
 
50
177
  The plugin follows a "Hub and Spoke" model:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-opencode-slim",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Lightweight agent orchestration plugin for OpenCode - a slimmed-down fork of oh-my-opencode",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",